Feature Description: Lists directory contents.
Syntax: LS
[ -1AABBCCDDFFGGHHIKLLMNNOPQQRRSSTUUVXX]
[-i < template style;]
[-T < skip word;]
[-W < number of characters per column;]
[--block-size=< block size;]
[--color=< use time;]
[--format=< list format;]
[--full-time] [--help]
[--indicator-style=< dimension style;]
[--quoting-style=< quotation mark style;]
[--show-control-chars]
[--sort=< sorting method;]
[--time=< time stamp;]
[--version]
[File or directory ...]
Additional note: The Execute LS command lists the contents of the directory, including the names of files and subdirectories.
Parameters
1 Each column displays only one file or directory name.
All files and directories under-A or--all.
-A or--almost-all displays all files and directories, but does not display the current directory and upper-level directories.
-B or--escape displays the out of character.
-B or--ignore-backups ignores backup files and directories.
-C To change the time sort to display files and directories.
-C Displays the file and directory names in a straight line from left to right, top to bottom.
-D or--directory displays the directory name instead of its contents.
-D or--dired produces a list of files and directories in Emacs mode.
-F The effect of this parameter is the same as specifying the "AU" parameter, and the effect of the "LST" parameter is turned off.
-F or--classify in the execution of files, directories, sockets, symbolic connections, pipe names, respectively, plus "*", "/", "=", "@", "|" No.
The-g parameter ignores non-processing.
-G or--no-group does not display the group name.
-H or--human-readable use "K", "M", "G" to display the size of files and directories.
-h or--si the effect of this parameter is similar to specifying the "-H" parameter, but the unit of calculation is 1000Bytes instead of 1024Bytes.
-I or--inode displays the inode number of the file and directory.
-i< template style > or--ignore=< template style > does not display file or directory names that conform to the template style.
-K or--kilobytes the effect of this parameter is the same as specifying the "block-size=1024" parameter.
-l Use a detailed format list.
-L or--dereference if you encounter a file or directory with a symbolic connection, directly list the original file or directory that the connection points to.
-M uses the "," section to separate the names of each file and directory.
-N or--numeric-uid-gid replaces its name with a user ID and a group identifier.
-N or--literal directly lists file and directory names, including control characters.
-O This parameter has the same effect as specifying the "-L" parameter, but does not list the group name or identification code.
The effect of-p or--file-type this parameter is similar to specifying the "-F" parameter, but does not include the "*" number after the execution file name.
-Q or--hide-control-chars with "?" control characters, listing file and directory names.
-Q or--quote-name the file and directory name with the "" number.
-R or--reverse reverse sort.
-R or--recursive recursively handles all files and subdirectories under the specified directory.
-S or--size displays the size of the file and directory, in chunks.
-S is sorted by file and directory size.
-T is sorted with file and directory change times.
-t< Jump character > or--tabsize=< the number of blank characters for the Jump block > Set the space character for the jump character.
-U sorts the last access time to display files and directories.
-u lists file and directory names without sorting.
The-v File and directory name lists are sorted by version.
-w< number of characters per column > or--width=< per column character > sets the maximum number of characters per column.
-X Displays the file and directory names from left to right, top to bottom, in Heng Lie mode.
-X sorts the last extension of the file and directory.
--block-size=< Chunk Size > Specifies the chunk size to hold the file.
--color=< list format > grow the list format of files and directories.
--full-time lists the full date and time.
--help online Help.
--indicator-style=< Dimension style > label the name of the file and directory, and easily identify the type that the name belongs to.
--quoting-syte=< quotation mark style > label the file and directory names with the specified quotation marks.
--show-control-chars use control characters when you are in a list of files and directories.
--sort=< Sort by > How the configuration file and directory list are sorted.
--time=< Timestamp > replaces the change time with the specified time stamp.
--version Displays version information.
Reprint--
Linux (1) LS command