LS
Jump to navigation
Jump to search
Contents
Description
The ls command is used to list the contents of a directory.
Structure
ls <options> <path/file>
Options
Option | Description |
---|---|
-a | List all files including hidden. |
-d | List directories, but omit contents. |
-h | Human readable format. |
-l | Long listing format. |
-R | List all files in directories recursively. |
-t | Sort by time of file in numerical order. |
Examples