Linux LS and ll use distribution, basic differences

Source: Internet
Author: User

How to use the LS and ll for Linux:

LL: lists the details of the current file or directory, including information such as time, read and write permissions, size, time, and more, like Windows displays. LL is an alias for "Ls-l". Equivalent to a shortcut in Windows. Can be understood as the function of ll and ls-l is the same, ll is the alias of ls-l .

ls: lists only the current file name or directory name as a list of files in Windows.

First,ll is ls-l 's alias View method, use: (alias) to view the alias situation.

Thels command can be said to be one of the most commonly used commands under Linux.

ls [-parameter]

   -ALists all files under the directory, including the.the implied file at the beginning.  -A Display except "." and "."All files outside. -  k  represents the size of the file in the form of K bytes. - L List The details of the file. -  s  prints the size of the file after each file name. -  T  is sorted by time. -You   Sort by the time the file was last accessed. - S is sorted by file size. -  R  lists the files under all subdirectories. - P - FAppend a character to each file name to indicate the type of the file. "*": indicates an executable plain file ; /":represents a directory"@":represents symbolic Links"|":represents FIFOs"= ": represents a socket (sockets). - xWith the file's extension (the last one.)after the character is sorted. 
 -m the horizontal output file name, and", "as a separator. 
-b the characters that are not output in the file name are listed in the form of a backslash and character number (as in the C language).
-c the modified time of the I node of the output file and sorts it. The
-d Displays the directory like a file, rather than displaying the file under it.
- e Output the full information of the time, not the output of the brief information.
-F- U does not order output files.
-g useless. -i output file. -N replaces the name with the number Uid,gid. -o displays details of the file in addition to the group information. -Q? -r the directory in reverse order.  -x   output by column, sorted horizontally. -B does not output a backup file ending with "~". -c output in columns, sorted vertically. -g the output file. -l lists the link file name instead of the file that is linked to. -n does not limit file length. -q enclose the file name of the output in double quotation marks. -1   --color=no    1. Blue ---Directory
2. Green --executable file

3. Red --Compress files
4. light blue --linked files
5. Gray --Other files
--Help displays helpful information on the standard output. the--version outputs the version information on the standard output and exits.

Distribution of LS and ll for Linux, basic differences

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.