Linux file Naming conventions

Source: Internet
Author: User

File naming rules

(1) All characters are legal except/

(2) Special characters such as @, #, ¥, &, () 、-、 spaces, etc. best not to use, when the use of space as a file name, the execution of the command error;

(3) Avoid using "." As the first character of the file name, because the "." is used in the Linux system. The file representing the beginning is hidden and the system is automatically hidden to "." The file to begin with;

(4) The Linux system is case-sensitive, so file naming is also case-sensitive;

(5) The Linux file suffix is meaningless, but for the convenience of identifying the suffix (. txt,. PHP, etc.), the suffix can be defined in most cases by separating the file from the directory;

(6) The file location is best set in the Linux dedicated directory, such as configuration files are mostly placed in/etc directory

(7) The naming of folders and files as far as possible together with its specific meaning.

(8) Three special directories, "." : Represents the current directory, "..." : Represents the previous level of directory, "/": Represents the root directory.


This article is from the "Lonely No Color" blog, please be sure to keep this source http://tenderness.blog.51cto.com/8855468/1960842

Linux file Naming conventions

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.