UNIX ls command

Source: Internet
Author: User
Tags filegroup

[syntax]: LS [-RADCXMLNOGRTUCPFBQISF1] [directory or file ...]

[description]: The LS command lists the files under the specified directory, the default directory is the current directory./, the default output order is in alphabetical order by character.
-R recursively lists the contents of each subdirectory
-A lists all files, including the first character "." The Hidden file
-D If the following parameter is a directory, only the directory name is listed and not the directory content, often with the-l option to display the directory status.
-C Multi-column display when output
-X Landscape by character order
-m output is arranged horizontally in streaming format, separated by commas (,) between filenames
-L long list output showing file details, one file per line, from left to right: File access mode, number of links, file user, filegroup, file bytes, last modified time
The-n is the same as the-l option, except that the main file is displayed with a number (that is, the UID), and the filegroup is represented by a number
-O is the same as-l option, except that filegroups are not displayed
-G is the same as the-l option except that the file user is not displayed

-R Reverse Order
-T in chronological order rather than by name
-U use last access time instead of last modified time when displaying time
-C display time using last modified I node time instead of last modified time
-P If the listed file is a directory file, then a slash (/) is displayed thereafter
-F add '/' after the directory file, add ' * ' after the executable file
-B If there are nonprinting characters in the file name, the character is displayed in octal
-Q print characters in file name with '? ' Said
-I display node number
-s use block length instead of byte length when displaying file lengths
-F interprets the following parameters as directories and lists each of them
-1 column only one item per line

[Example]:
LS lists the files in the current directory
Ls-al/bin lists all files under directory/bin, including hidden files, as a long list

UNIX ls command

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.