1. ls command:
List abbreviations, viewing files in a directory
ls [options] [directory name]
DOS command: dir
2. Common parameters:
-a,–all lists all files under the directory, including the. The implied file at the beginning
-A with-a, but not listed "." (represents the current directory) and ".." (Represents the parent directory of the current directory).
-C mate-lt: Sort and display CTime according to CTime (the last time the file status changed) mate-L: Show CTime but sort by name otherwise: Sort by ctime
-c list items from top to bottom of each column
–color[=when] Controls whether to use color-resolved files. When can be ' never ', ' always ' or ' auto ' one of them
-d,–directory Displays the directory as a file, rather than displaying the file below it.
-d,–dired results in the use of dired patterns for Emacs
-F does not sort the output files, the-au option is active, the-LST option is invalid
-g similar to-l, but does not list owner
-g,–no-group does not list any information about the group
-h,–human-readable list file sizes in an easy-to-understand format (e.g. 1K 234M 2G)
–si is similar to-H, but the file size takes 1000 times instead of 1024
-h,–dereference-command-line the true destination indicated by using symbolic links in the command column
The –indicator-style= method specifies that after each project name is followed by the indicator < >:none (default), classify (-f), File-type (-P)
-i,–inode Prints the inode number of each file
-i,–ignore= style does not print any items that match the shell character < style >
-K is the –block-size=1k that represents the size of the file in K-byte form.
-l lists the permissions, owner, file size, and so on, in addition to the file name.
-l,–dereference when displaying the file information for a symbolic link, displays the object indicated by the symbolic link instead of the information of the symbolic link itself
-m all items are separated by commas and fill the entire row width
-O is similar to-L, showing details of the file in addition to the group information.
-r,–reverse in reverse order.
-r,–recursive listing all subdirectory tiers at the same time
-s,–size to list the size of all files in block size
-s sort by file size
–sort=word The following are optional WORD and the corresponding options they represent:
Extension-x status-c
None-u time-t
Size-s Atime-u
Time-t Access-u
Version-v Use-u
-T sorted by file modification time
-U mate-lt: Show access time and sort by access time
Mate-L: Show access time but sort by name
Otherwise: Sort by access time
-U does not sort, lists items according to the original order of the file system
-V Sort by version
-W,–WIDTH=COLS Specifies the screen width without using the current value
-X list items line by row instead of columns by column
-x Sort by extension
-1 list only one file per line
Help display this help message and leave
–version display version information and leave
Linux command: LS