ls command
Recommended Command Group Unity
Ls-alht
Sorted by file modification time, most recently modified first displayed
Recommended Combo Commands 2
LS-ALHS Displays the largest first display based on file size
To facilitate the use of combination commands, you can use the alias command
Example: Alias lm= ' LS-ALHS '
LM is equivalent to combining commands
LS parameter description:
-a Lists all files under the directory, including the. The implied file at the beginning.
-B lists the characters that are not output in the file name in the form of a backslash and character number (as in C).
-C The modified time of the I node of the output file, sorted by this.
-D Displays the directory as if it were a file, rather than displaying the file below it. The
-e output time is all information, not the output of the brief information. The
-f-u does not sort the output files.
-G is useless. The index information for the I node of the
-I output file.
-K represents the size of the file in the form of a byte.
-L lists the file details.
-M to output the file name horizontally, and to "," as a separator.
-N replaces the name with the uid,gid of the number.
-O Displays details of the file in addition to the group information.
-p-f a character after each file name to indicate the type of the file, "*" for the executable normal
file; "/" for the Directory; "@" for the symbolic link; "|" Represents FIFOs; "=" represents a set of
Sockets (sockets).
-Q replaces non-output characters.
-R sorts the directory backwards.
-S prints the size of the file after each file name.
-T is sorted by time.
-U is sorted by the time the file was last accessed.
-X is sorted horizontally by column output.
-A displays the except "." and ".." All files outside the file.
-B does not output a backup file ending with "~".
-C is sorted vertically by column output.
-G Output The group information for the file.
-L lists the link file name instead of the file that is linked to.
-n does not limit file length.
-Q encloses the file name of the output in double quotation marks.
-R lists the files under all subdirectories.
-S is sorted by file size.
-X is sorted by the file's extension (the last character after the.).
-11 lines output only one file.
--color=no do not display color file names
The--HELP displays help information on the standard output.
The--version outputs the version information on the standard output and exits.
Display a list of color catalogs
Open/ETC/BASHRC and add the following line:
Alias ls= "LS--color"
The next time you start bash, a list of colored catalogs is displayed, with the meanings of colors as follows:
1. Blue---Directory
2. Green---executable file
3. Red--Compress files
4. Light blue--linked files
5. Gray--Other files
< Span style= "font-family: Song body; font-size:16px; Color: #000000; " >ls common parameters &NBSP ; , &NB Sp , &NB Sp , &NB Sp , &NB Sp
LS-LH File size XXKB format display
Ls-ls Sort by file size (s capital)
Ls-lt Sort by file modification time order
Linux------ls