Archive

Archive for the ‘file management’ Category

Counting lines from a text document in Ubuntu

April 22nd, 2015 No comments

In order to count lines from a document in the command line, use the following command

wc -l <mytextfile>

Example:

wc -l myfile.txt

Enable network navigation in Lubuntu File Manager

August 10th, 2013 No comments
pcmanfm-lubuntu-network-folders

Fortunately, it is possible to view Samba drives in Lubuntu by installing a couple of missing packages

One of the first shortcomings you will find when you compare the file managers that exist between Ubuntu and Lubuntu is the absence of a way to  browse through network drives that exists in Ubuntu (via Nautilus).

This is because there are a couple of packages that are not activated by default.  All you need to do in order to have network folder functionality in the Lubuntu File Manager (PCManFM) are packages fuse-utils and gvfs-backends.  You can install them as follows:

sudo apt-get update
sudo apt-get install fuse-utils
sudo apt-get install gvfs-backends

After installation, you can then access Windows shares using menu option ‘Go’ -> ‘Network drives’ from the File Manager.

lubuntu-file-manager-network

 

 

 

Sort file list by date in descending order

June 26th, 2013 No comments

I wanted to display a list of files in the current directory in descending chronological order.

The command to achieve this is:

ls -lt

This command returns something like:

-rwxr-xr-x 1 root root 3642 2010-09-10 21:36 bzgrep
-rwxr-xr-x 1 root root 1297 2010-09-10 21:36 bzmore
-rwxr-xr-x 1 root root 1269432 2010-04-22 20:04 busybox
-rwxr-xr-x 1 root root 818232 2010-04-19 01:51 bash