Ls Command (Linux)

Options which I find most useful, and use often.

[1] -l : long format, displaying Unix file types, permissions, number of hard links, owner, group, size, last-modified date and filename

[2] -a : lists all files in the given directory, including those whose names start with “.” (which are hidden files in Unix). By default, these files are excluded from the list.

[3] -R : recursively lists subdirectories. The command ls -R / would therefore list all files

[4] -h : print sizes in human readable format. (e.g., 1K, 234M, 2G, etc.) This option is not part of the POSIX standard, although implemented in several systems, e.g., GNU coreutils in 1997,[1] FreeBSD 4.5 in 2002,[2] and Solaris 9 in 2002.[3]



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s