Linux commands (2): ls command

Source: Internet
Author: User

1, Function : List The contents of the directory;

2. Format : LS [options] [file]

[option] To specify that you want to view the file-related content, if the file is not specified by default view all files in the current directory;

3. Common parameters :

4, use example :

[[email protected]/]$ ls–l (can be shortened to LL)

Total 220

Drwxr-xr-x 2 root root 4096 Mar 2005 bin

Drwxr-xr-x 3 root root 4096 APR 3 2005 Boot

-rw-r--r--1 root root 0 APR 2002 Test.run

...

This instance looks at all the files in the current directory and displays the details through the option "-L".

The display format description is as follows: File type and permissions (hard) Link number file is the primary file of the group file size modified time name.

If you want to show all the "." The beginning of the file, you can use-a, which is commonly used in embedded development.

Attention:

Executable files in Linux are not identified by file extensions like Windows, but are implemented by setting the corresponding executable properties of the file.

Linux commands (2): 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.