Introduction to Linux File Extensions

Source: Internet
Author: User
Article Title: Introduction to the meaning of the Linux system file extension. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories. Generally, linux files do not have an extension. Whether a linux file can be executed depends on the 10 attributes in the first column of the file, and does not have any relationship with the file name. In windows, the file extension is very important, and the execution file extension is usually. Exe \. com \. bat, etc. In linux, as long as there is x in the attribute, this file can be executed.

However, the execution can be different from the execution success. Whether the file can be successfully executed depends on the specific content of the file.

Although the extension does not actually help in linux, we can understand the file content through the extension. Therefore, linux usually uses the appropriate extension to indicate the file type, the following lists several common file extensions:

*. Sh -- batch file (scripts, script), because the batch file is written in shell, so the extension is. Sh;

*. Z ,*. Tar ,*. Tar.gz ,*. Zip ,*. Tgz --: compress the compressed files in the package, and obtain the related extension based on different compression software;

*. Html ,*. Php --: webpage-related files.

Generally, the file name in linux is only used to facilitate understanding the possible usage of the file. Whether the file is executed or not still requires attribute specifications! If the execution attribute of an executable file is removed, the file cannot be executed. When copying or downloading a file, the attributes of the file may change. In actual use, pay attention to the attributes of the file.

In linux, the name of each file or directory can contain a maximum of 255 characters, and the full path can contain a maximum of 4096 characters. The file name is quite long. Many files have long names to show users the purpose of the file. For those who are used to windows systems, it may not be a habit at the beginning, you can use the [TAB] command and file name fill key to reduce keyboard input and input errors.

Linux File naming restrictions

When naming a linux file, it is best to avoid the following special characters :*? <> ;&! [] | \ '"() {}

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.