Linux common command - display file directory ls

The ls command is used to display the target list, which is a very high command in Linux. The output of the ls command can be highlighted in color to partition files of different types.

Options:

-a,--all do not hide any items starting with "."
-A,--almost--all list any items except "." and ".."
   --author list the author of each file when used with -l
-b,--escape represent non-printable characters in octal overflow sequence
-C Display output in multiple columns. This is the default option
-l Contrary to the "-C" option, all output information is output in single-column format, not multi-column
-F Append the type identifier of the file after each output item, the specific meaning: "*" indicates a normal file with executable permissions, "/" indicates a directory, "@" indicates a symbolic link, "|" indicates a command pipeline FIFO , "=" means sockets socket. When the file is a normal file, no identifier is output
-b Output the unprintable characters in the file as backslash "" plus character encoding
When -c is used in conjunction with the "-lt" option, the contents of the output directory are sorted according to the file status time, and the sorting is based on the ctime field in the inode of the file. When used in conjunction with the "-l" option, the sorted sentence is the state change time of the file
-d Displays only the directory name, not a listing of the contents of the directory. Show the symlink file itself, not a listing of the directories it points to
-f This parameter has the same effect as specifying the "aU" parameter at the same time, and turns off the effect of the "lst" parameter
-i Displays the file inode number (inode). An inode represents a file
--file-type has the same function as the "-F" option, but does not display "*"
-k Display file size in KB (kilobytes)
-l Displays a listing of the contents of the directory in long format. The output information includes the file name, file type, permission mode, number of hard connections, owner, group, file size, and the last modification time of the file from left to right.
-m separate the names of each file and directory with a "," sign
-n Substitute user id and group id for its name
-r sort and output a list of directory contents in reverse order by filename
-s Display the size of files and directories, in blocks
-t sort by change time of files and directories
-L If a file or directory that is a symbolic link is encountered, directly list the original file or directory pointed to by the link
-R Recursive processing, processing all files and subdirectories in the specified directory together
--full-time list full date and time
--color[=WHEN] use different colors to highlight different types of

parameter:

Directory: Specify the directory to display the list, or it can be a specific file.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326003379&siteId=291194637
Recommended