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.
Tags
Linux ls command, List directory command in Linux