Process to List files and directories in Linux

Hello linux user in this example i will discuss about ls command. In linux when we first login, our current working directory is your home directory. In unix and linux ls command lists the contents of your current working directory.

See the image to understand clearly


This command will only show the files not hidden file. If you want to show all the files including hidden file then type the below command and run. Remember in linux all the hidden file start with (.) dot.

ls -a


If you see the file with details of the file like date of creation and permission etc then run below command

ls -l


Then you will see the below output.


Hope it can help you.