Linux useful commands: “ls” command

Hi people, every wednesday I bring here quick tips to make your life easy in managing Linux environments. Today I choosed the the most used command on Linux enviroments, in my opinion.

The command “ls”

We use this command every time when working with command prompt. You can see some useful tips to work better with it:

1) Listing all files (including hidden) with directory, size, modified date and time, file or folder name and owner of file and it’s permission in human readable format.

$ ls -lsahF

2) Reversing the order

$ ls -lsahFr

3) Including sub-directories recursively

$ ls -lsahFR

4) Sorting by File Size

$ ls -lsahFS