Linux commands (1)-ls
File Location:Ls:/bin/ls/usr/share/man/man1/ls.1.gz
Name:Ls = list directory contents
Usage:Ls [OPTION]... [FILE]...
Description:List Files in the directory (the current directory by default ). If the-cftuvSUX or-sort parameter is not specified, it is sorted by the first letter by default.
-A, -- allThe result set will contain files starting.
-A, -- almost-allHidden ..
-- AuthorThe author of the displayed file (as though it may be different only in GNU/Hurd) needs to be used with-l
-B, -- escapeDisplay the octal Escape Character for invisible characters
-- Block-size = SIZEThe query results are displayed in KB 1000, K 1024, MB 1000*1000, M 1024*1024, G, T, P, E, Z, Y.
-B, -- ignore-backupsDo not show ~ End file (backup file)
-CUse with-lt: display and use ctime () sorting result and-l together: display and use name sorting result
-CDisplay Results by Column
-- Color [= WHEN]Different colors can be displayed for different types of results.
-D, -- directoryShow the directory itself rather than the file inside, and will not parse the link reference: http://superuser.com/questions/344877/ls-d-is-not-displaying-directories-is-there-a-way-to-get-ls-to-only-display-di
-D, -- diredGeneration to Emacs's dired mode output reference: http://unix.stackexchange.com/questions/238638/what-does-ls-dired-l-or-ls-d-l-actually-print
-FUnordered, enable-aU, disable-ls-color
-F, -- classifyAfter the result is displayed (*/=> @ |), one of the IDS is displayed.
-- File-typeSame as above, but does not display '*'
-- Format = WORDType of the specified format: Running SS-x, commas-m, horizontal-x, long-l, single-column-1, verbose-l, vertical-C
-- Full-timeEquivalent to-l -- time-style = full-iso
-GEquivalent to-l, but not listing owners
-- Group-directories-firstGroup folders and display them at the top of the result set. You can use the -- sort parameter for sorting, but use -- sort = none (-U) disable grouping vcmllcy1maXJzdA = "class =" alignnone size-full wp-image-245 "height =" 474 "src =" http://www.bkjia.com/uploads/allimg/160412/0405521328-15.png "width =" 1050 "/>
-G, -- no-groupSame as-l, but no file group name is displayed
-H, -- human-readableUsed with-l to print the file size in readable format (for example, 1 K 234 M 2G)
-- SiSame as above, but in 1024 rather than 1000
-H, -- dereference-command-line reference: http://superuser.com/questions/593196/cp-h-vs-cp-l-what-is-a-command-line-symbolic-link
-- Dereference-command-line-symlink-to-dirReference: http://superuser.com/questions/593196/cp-h-vs-cp-l-what-is-a-command-line-symbolic-link
-- Hide = PATTERNHides the result of matching the shell PATTERN. If-a or-A is used, the result is invalid.
-- Indicator-style = WORDAccording to the WORD type, the following indicators are displayed after the result: none (default), slash (-p), file-type (-- file-type), classify (-F)
-I, -- inodePrint the index number of the file (inode number)
-I, -- ignore = PATTERNDo not display results that match PATTERN
-KEquivalent to -- block-size = 1 K
-LDisplay Results in long format
-L, -- dereferencIf it is a Link file, you can use this parameter to display the Referenced File Information instead of the Link file itself.
-MResult set use, separated
-N, -- numeric-uid-gidSimilar to-l, but the user and file group are displayed in numbers
-N, -- literalThe original file name is displayed without parsing control characters
-OSimilar to-l, but does not display file group information
-P, -- indicator-style = slashAdd/after the folder/
-Q, -- hide-control-charsInvisible characters? Display
-- Show-control-charsShow invisible characters
-Q, -- quote-namePut the result in "" to display
-- Quoting-style = WORDREFERENCE The result set in the following formats: literal, locale, shell, shell-always, c, and escape.
-R, -- reverseReverse sorting result
-R, -- recursiveRecursively display subfolders
-S, -- sizeDisplay the file size in block units
-SSort by file size
-- Sort = WORDSort by WORD content: none-U, extension-X, size-S, time-t, version-v
-- Time = WORDUsed with-l, display time according to the WORD content: atime-u, access-u, use-u, ctime-c, or status-c and if the -- sort = time parameter is used, this type of time is used for sorting.
-- Time-style = STYLESet time-style
-TSort by file modification time.
-T, -- tabsize = COLSSpecify the TAB size to replace the default size of 8
-UUse with-lt: Display and sort with the last access time and use with-l: display the last access time, sort by file name; other cases: sort by access time
-U unordered
-VThe numbers in the file name are sorted by numbers instead of characters.
-W, -- width = COLSAssume that the screen width is COLS.
-XDisplay Results by Column
-XSort by file extension in alphabetical order
-1Display a result in one row
SELinux options:
-- LcontextDisplay security context
-Z, -- contextThe security context is displayed. only mode, user, group, security context, and file name are displayed.
-- ScontextOnly display security context and file name
-- HelpShow Help Information
-- VersionShow version information
Common combination: ls-ltr