Detailed description of Linux ll command parameters

Source: Internet
Author: User
Tags control characters locale posix

Usage: LS [option] ... [File] ...
Lists the FILE information (default is the current directory).
If you do not specify the-cftuvsux or--sort option, sort by letter size.


The long option must use parameters that are also required for short options.
-A,--all does not hide anything. Start of Project
-A,--almost-all list except. And: Any item other than
--author and-L lists the author of each file when used simultaneously
-B,--escape characters that are not printable in an octal overflow sequence
--block-size= size block in bytes of the specified size
-B,--ignore-backups does not list any items that end with the "~" character
-C mate-lt: Sorts and displays ctime based on CTime (file
Time the state was last changed)
Mate-L: Show CTime but sort by name other things: Sort by ctime
-c list items from top to bottom of each column
--color[=when] Controls whether to use color-resolved files. When it can be
"Never" (default), "Always" or "auto" one of them
-D,--directory lists the directory itself instead of files within the directory when the directory is encountered
-D,--dired produces the results of the dired pattern used for Emacs
-F not sorted,-au option is active,-lst option is invalid
-F,--classify plus an indicator of the file type (*/[email protected]| one)
--format= keyword Interleaved-x, comma separated-m, horizontal-X, long-L,
Single column-1, verbose-L, vertical-C
--full-time i.e.-l--time-style=full-iso
-g similar to-l, but does not list owner
--group-directories-first
Groups the directory before the file. This option can be used with--sort,
However, grouping is disabled once you use--sort=none (-u)
-G,--no-group in the form of a long list, does not output group name
-H,--human-readable with-l output file size in an easy-to-read format
(e.g. 1K 234M 2G)
--si similar to above, but uses 1000 as the base instead of 1024
-H,--dereference-command-line
A symbolic link that follows a command row
--dereference-command-line-symlink-to-dir
A symbolic link to a directory that follows a command row
--hide=pattern hiding items that match pattern mode
(-A or-a will override this option)
The--indicator-style= method specifies how to add an indicator to each project name:
None (default), classify (-f), File-type (-P)
-I,--inode displays the inode number of each file
-I,--ignore=pattern does not display any items that match the specified shell PATTERN
-K is--block-size=1k
-l list information in a longer format
-L,--dereference displays the symbolic link indicating when the file information for the symbolic link is displayed
Object instead of the symbolic link itself information
-m all items are separated by commas and fill the entire row width
-N,--numeric-uid-gid similar to-L, but lists UID and GID number
-N,--literal output unprocessed project name (if control characters are not specifically handled)
-O is similar to-l, but does not list information about groups
-p,--indicator-style=slash add notation "/" to the Directory
-Q,--hide-control-chars with "?" Characters in place of characters that cannot be printed
--show-control-chars directly displays characters that cannot be printed (this is the default, unless you call
The program name is "LS" and is the result of the terminal output)
-Q,--quote-name enclose the entry name in double quotation marks
The--quoting-style= method displays the name of the entry using the specified quoting method:
Literal, locale, Shell, Shell-always, C, escape
-R,--reverse order when sorting
-R,--recursive recursively display subdirectories
-S,--size displays the size of each file allocation as a block number
-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
--time=word and-L display the time that WORD represents instead of when it is modified
Room: atime, Access, use, ctime, or status; plus
The--sort=time option takes the specified time as the sort key
--time-style=style and-l display time in the same format as the style represents:
Full-iso, ISO, Locale, Posix-iso, +format.
Format is the time form used for "date";
It's format1<. &GT;FORMAT2,FORMAT1 for older
Files and FORMAT2 for newer files; if the style
Starting with "posix-", the style is only outside the POSIX language family
Effect.
-T Sort by modified time
-T,--tabsize= width Specifies the width of tab (tab), not 8 characters
-T Sort by modified time
-T,--tabsize=cols specifies the width of the tab (tab) instead of 8 characters
-U with-lt: sorted by access time and displayed
Use with-L: Show access time and sort by file name
Other: Sort by access time
-U is not sorted; list items in catalog order
-V Natural ordering of numbers (versions) in text
-W,--width=cols assume screen width instead of the current value
-x list entries by lines instead of by columns
-x sort alphabetically by entry extension
-1 List one file per line


SELinux options:


--lcontext Display security context. Enable-l. Lines
Would probably is too wide for most displays.
-Z,--context Display security context so it fits on most
Displays. Displays only mode, user, group,
Security context and file name.
--scontext Display only security context and file name.
--HELP Display this help message and exit
--version display version information and exit


The SIZE can be an optional integer followed by one of the following units:
KB 1000,k 1024,mb 1000*1000,m 1024*1024, also G, T, P, E, Z, Y.


The ability to use color to differentiate file types has been disabled, and the default settings and--color=never are disabled at the same time.
With the--color=auto option, LS generates a color code only when the standard output is connected to the terminal.
The ls_colors environment variable can change this setting and can be set using the Dircolors command.




Exit Status:
0 Normal
1 General Issues (example: unable to access subfolders)
2 Serious problems (example: cannot use command-line arguments)



Detailed description of Linux ll command parameters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.