Linux ls (List Directory) Command

Chapter: Linux Commands Last Updated: 17-03-2018 11:14:05 UTC

Program:

            /* ............... START ............... */
                
ls > list the directory in linux
ls -lrt > will give the detailed list of directory.
ls -a > Gives the details of hidden files.

                /* ............... END ............... */
        

Notes:

  • In linux ls command is used to list the directory. When we type ls in terminal it will list the name of all folders in the directory. Please find the output section for more details.
  • ls Command Syntax : ls [options] [file|dir]
  • ls -lrt is a commonly used to give the detailed list of folders in the directory, it will display file size, date in which it is modified and ownership of the file and the permission allowed in the folder/file.
  • ls -a command will list all hidden files, all hidden files are starting with '.', when you type the command you can see that file list.
Similar Programs Chapter Last Updated
How To Enable Permission On File Linux Ubuntu Linux Commands 26-08-2023
Linux Command To Give All Permissions To A File Linux Commands 24-08-2023
Important Network Commands In Linux Linux Commands 24-08-2023
Important Commands In Linux Linux Commands 24-08-2023
Grep Command In Linux Example Linux Commands 10-05-2023
Traceroute Command In Ubuntu Linux Commands 10-05-2023
Linux Command To Count Number Of Files In A Directory Linux Commands 18-03-2023
Linux Version Command Linux Commands 01-12-2020
Unzip Command In Linux Linux Commands 20-11-2019
Process Command In Linux Linux Commands 16-11-2019
Linux Command To Create Link Linux Commands 15-11-2019
Linux Command To View File Content Linux Commands 25-10-2019
Linux Command To Check OS Version Linux Commands 25-10-2019
Netstat Command In Linux Linux Commands 13-08-2019
Telnet Command In Linux Linux Commands 13-08-2019
Linux Command To Create A File Linux Commands 23-05-2019
Linux echo Command Linux Commands 05-05-2018
Linux Ping Command Linux Commands 05-05-2018

1