Naming rules for Linux directories and files, LS operations

Source: Internet
Author: User

Linux naming:

1 No more than 255 characters

2 Strict case sensitivity

3 except/Outside, the other characters are legal

NOTE: 1) Avoid the first character of the file name using +-. (Avoid and hide file confusion)

2) Avoid file names using spaces, tabs, and @#$%[] () * etc. (to prevent misunderstandings and confusion when using regularization commands later)

4 try to name it with meaningful names

LS operation

1 LS lists the contents of the current directory

2 ls/list root directory

3 ls-a List of hidden file directories

4 ls-l Show Details (in order: permissions, Quantity, owner, group, size, create (Modify) time file name)

5 LS-LD Displays the properties of the directory itself (finally, the. refers to the current directory)

The other:

LS-LH display the file size as a KB MB

LS--help Display Help information

ls-la/file name to open the specified files

Naming rules for Linux directories and files, LS operations

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.