LS command in Linux

Ls Command in Linux

In Linux ,ls command is used to list the file and directory’s information.

To view all options of ls command

$ ls –help

ls -alist all files including hidden file starting with ‘.’
ls –colorcolored list [=always/never/auto]
ls -ilist file’s inode index number
ls -llist with long format – show permissions
ls -lalist long format including hidden files
ls -lhlist long format with readable file size
ls -lslist with long format with file size
ls -rlist in reverse order
ls -Ssort by file size
ls -tsort by time & date

Leave a Comment

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