Linux LS Command


 

Usage of Linux LS Command:

This command is used to get list of files & folder at a particular path. Suppose there is a folder containing files and you want to know what all files are there in that folder we use this command. We use certain switches to get desired output.

Syntax:

Example1 : List all files in a folder.

pic1

Example2 : Show all the files of a directory, size, modified date and time, file and folder name and owner of file and its permission.

pic2

Example3 : View all hidden files in the folder.

pic3

Example4 : Know all files and directories in a current folder.

pic4

All files which are followed by / are directories and rest are files.

Example5 : List all files in reverse order.

pic5

Example6 : To print all files in reverse order.

pic6

Example7 : Sort the files by files size.

pic7

Example8 : List your home directory.

Example9 : List the home directory of user “Aman”.


 






Leave a Reply

bodrum escort - eskişehir esc - mersin escort - mersin escort bayan - mersin esc