How Use Ls Command in Unix?
Contents Ls–Lists the Names of Files in a Particular Unix Directory. If You Type the Ls Command with No Parameters or Qualifiers, the Command Displays the...
Contents
ls–Lists the names of files in a particular Unix directory. If you type the ls command with no parameters or qualifiers, the command displays the files listed in your current working directory. When you give the ls command, you can add one or more modifiers to get additional information.
What is ls command in UNIX with examples?
Linux ls command options
| ls option | Description |
|---|---|
| ls -p | It is used to identify the directory easily by marking the directories with a slash (/) line sign. |
| ls -r | It is used to print the list in reverse order. |
| ls -R | It will display the content of the sub-directories also. |
Must Read
What is LS LRT command in Unix?
ls -r lists the files in the reverse of the order that they would otherwise have been listed in. Thus, ls -lrt will give a long listing, oldest first, which is handy for seeing which files in a large directory have recently been changed.