List files and directories in Linux

List files and directories in Linux:

Command Usage
ls List the file names
ls -l Long listing of file name
ls -l filename To see the permissions of a particular file
ls k* Lists all file names starts with k
ls -a list all files including hidden file
ls -la list long format including hidden files
ls -lh list long format with readable file size
ls -ls list with long format with file size
ls -r list in reverse order
ls -R Lists recursively in directory
ls -t Sort by date
ls -s list file size
ls -S sort by file size
ls -x sort by extension name
ls -i list file’s inode index number
ls -F add one char of */=>@| to enteries
You can leave a response, or trackback from your own site.

Leave a Reply

Powered by k2schools
Skip to toolbar