Linux Command (2): ls command, linux Command ls

Source: Internet
Author: User

Linux Command (2): ls command, linux Command ls

1. Role: List the contents of a directory;

2. Format: Ls [Option] [file]

[Option] specifies the file-related content to be viewed. If no file is specified, all files in the current directory are viewed by default;

3. Common Parameters:

4. Use instances:

[Yourname @ www/] $ ls-l (can be abbreviated as ll)

Total 220

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

Drwxr-xr-x 3 root 4096 Apr 3 2005 boot

-Rw-r -- 1 root 0 Apr 24 2002 test. run

...

This instance is used to view all files in the current directory, and the detailed information is displayed through the option "-l.

The display format is described as follows: file type and permission (hard) number of links the name of the time when the file size of the main file group is modified.

To display all files starting with ".", you can use-a, which is often used in embedded development.

Note:

In Linux, the executable file is not identified by the file extension like in Windows, but by setting the corresponding executable attribute of the file.

 


Linux ls command

-Rwxr-xr-x File Permission (I will not explain it. This is the most basic knowledge of linux. man chmod or learn it online)
1. The number of hard links is generally considered as the number of sub-directories (for common files, it is always 1. For a directory, the number of sub-directories under the directory is + 2 (+ 2 is because. and .. ))
Root is the file owner (owner) and group (group), which is also the most basic knowledge of linux. man chown can learn about the following)
702160 File Size
Is generally the last modification time
Bash file name.

Linux ls command

I am sorry to tell you that your environment variable is wrong.
Environment variables have not been obtained. Can you use ls?

PATH = "$ PATH:/root"
Your above error;
The introduction of PATH is directly wrong. You can use it after modification.
PATH = "/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin: /usr/bin:/root/bin"

Related Article

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.