Linux file and Directory Operations basic command: LS command

Source: Internet
Author: User
Keywords Linux ls commands Directory operations
Tags aliyun basic basic command directory directory operations display file files

Use the LS command to display the contents of your current directory. The LS command has many options available. To see all the options for the LS command, you can read the instructions page by typing man ls at the shell prompt. The following is a short list of some common options used with LS.

Comma all. Enumerates all the files in the directory, including hidden files (. filehttp://www.aliyun.com/zixun/aggregation/11696.html ">name"). At the beginning of this list. and. In turn, the parent directory and your current directory.

-L-Length (long). Enumerates the details of the contents of the directory, including permissions (schema), owner, group, size, date created, whether the file is a link to other parts of the system, and the link's point.

F file type. Add a symbol after each of the enumerated items. These symbols include:/indicate a directory; @ indicates a symbolic link to another file; * indicates an executable file.

R. Reverse (reverse). Enumerates the contents of a directory from behind.

R. Recursion (Recursive). This option recursively enumerates the contents of all directories (under the current directory).

S size. Sort by file size

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.