[syntax]: LS [-RADCXMLNOGRTUCPFBQISF1] [directory or file ...]
[description]: The LS command lists the files under the specified directory, the default directory is the current directory./, the default output order is in alphabetical order by character.
-R recursively lists the contents of each subdirectory
-A lists all files, including the first character "." The Hidden file
-D If the following parameter is a directory, only the directory name is listed and not the directory content, often with the-l option to display the directory status.
-C Multi-column display when output
-X Landscape by character order
-m output is arranged horizontally in streaming format, separated by commas (,) between filenames
-L long list output showing file details, one file per line, from left to right: File access mode, number of links, file user, filegroup, file bytes, last modified time
The-n is the same as the-l option, except that the main file is displayed with a number (that is, the UID), and the filegroup is represented by a number
-O is the same as-l option, except that filegroups are not displayed
-G is the same as the-l option except that the file user is not displayed
-R Reverse Order
-T in chronological order rather than by name
-U use last access time instead of last modified time when displaying time
-C display time using last modified I node time instead of last modified time
-P If the listed file is a directory file, then a slash (/) is displayed thereafter
-F add '/' after the directory file, add ' * ' after the executable file
-B If there are nonprinting characters in the file name, the character is displayed in octal
-Q print characters in file name with '? ' Said
-I display node number
-s use block length instead of byte length when displaying file lengths
-F interprets the following parameters as directories and lists each of them
-1 column only one item per line
[Example]:
LS lists the files in the current directory
Ls-al/bin lists all files under directory/bin, including hidden files, as a long list
UNIX ls command