Linux commands-Directory processing command: LS

Source: Internet
Author: User

LS View current target file

Ls-a View all files in the current directory (--all all files)

With "." The file that starts with is a hidden file.

LS/  view files in root directory

Ls-l   View current directory file (--long long format)

1,-rw-------: Permissions (-(file) file, d (directory) directory, L (link) soft connection)

2, 1: Reference count (used only on hard connections)

3. Root: Owner name (only one owner, can change owner)

4. Root: Name of the owning group

5, 1272: File size

6 February 26: File Last Modified time

7. anaconda-ks.cfg: File name

LS-LH   View current directory file name (-l long format--long,-h file size humanized display,--human)

Permissions Detailed Description:

Display permissions for a directory (d):

Ls-l/

Show permissions for soft connections (L):

Ls-l/etc/grub.conf

Find out more about the/etc directory (--long long format,--directory directory):

Ls-ld/etc

To view a unique number for a file or directory:

Ls-i view unique number of files in the current directory

Linux commands-Directory processing command: LS

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.