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

References:

http://www.tecmint.com/15-basic-ls-command-examples-in-linux/

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *