command Format
ls option parameter
Options
-A: Displays all files and directories (ls default file name or directory name is ".") not listed);-A: Displays the shadow file "." and ".." A list of all files other than the; C: multiple columns display the output results. This is the default option;-L: In contrast to the "-C" option, all output information is output in a single-column format, not output as multiple columns;-f: Appends the type identifier of the file after each output item, meaning: "*" means a normal file with executable permissions, "/" for the Directory, "@" for symbolic links, Represents a command pipeline FIFO, and "=" represents a sockets socket. When the file is a normal file, do not output any identifiers;-B: Outputs the non-output characters in the file with the backslash "" and the character encoding;-C: When combined with the "-lt" option, the output directory content is sorted according to the file status time, sorted by the CTime field in the index node of the file. When in conjunction with the "-l" option, the ordered sentence is the time of the file's state change;-D: Displays only the directory name, not the table of contents. Displays the symbolic link file itself without displaying the list of directories it points to;-F: The effect of this parameter is the same as specifying the "AU" parameter, and the effect of the "LST" parameter is turned off;-I: Displays the file index node number (inode). An index node represents a file;--file-Type: The function is the same as the "-f" option, but does not display "*"; K: Displays the file size in kilobytes (Kbytes);-L: Displays a list of contents in a long format. The output information includes file name, file type, permission mode, number of hard connections, owner, group, file size and last modification time of the file, etc.-m: the name of each file and directory separated by the "," area;-N: Replace the name with a user ID and a group identifier ;-r: Sorts and outputs the directory contents list in reverse order of the file name;-S: Displays the size of files and directories, in chunks, and-t: sort the files and directories by the change time;-L: If you encounter a file or directory with a symbolic link, directly list the original file or directory that the link points to;-R: Recursion All files and subdirectories under the specified directory are processed together;--full-time: Lists the full dates and times;--color[=when]: Highlight different types with different colors.
Parameters
Directory or file
Other
A command has several options that can be written as: Ls-lash equivalent to: ls-l-a-s-H
If the option is a word, it should be written as: LS--help. Note: Two dashes before the word. If it is a dash, the system will consider it to be a multi-parameter.
Linux Basic-ls command