Linux ls command detailed explanation
The ls command in Linux is used to display the contents of the specified working directory, and its content is the specified working directory. Contains files and subdirectories, the usage of this command is "ls [parameter] [directory name]", its common parameters are "-a", "-A", "-l", "-U", "-d" ”, “-1” and so on.
ls Common parameters
-a Display all files, including hidden files
-A Display all files, including hidden files, but not . And..
-l Displayed as long format (long format), list the file type, permissions, number of links, owner, group, size, time, name
-d Do not expand Directory, only displays the directory itself. It is generally used in conjunction with -l to display the attribute information of the directory itself (only the contents of the current directory are displayed)
-1 Number 1, displays the contents in columns
- S Sort by file size, default from large to small
-U Sort by storage order
-X Sort by the first letter of the extension
-t Sort by mtime (display the most recent time first)
-ul Sort by atime (display the most recent time first)
-ct Sort by ctime (display the most recent time first) )
Recommended tutorial: "linux operation and maintenance"
The above is the detailed content of Detailed explanation of Linux ls command. For more information, please follow other related articles on the PHP Chinese website!