Linux learning -03-permissions for files and directories-2

Source: Internet
Author: User

Linux file extension: A Linux file can be executed, and his first column of the 10 attributes, and the file name is not at all related.

Common extensions:

*.sh: script or batch file (scripts), because the batch file is written using the shell, so the extension is compiled. Sh

*z, *.tar, *.tar.gz, *.zip, *.tgz: Packaged compressed files. This is because the compression software is gunzip, tar and so on, due to different compression software, and take its associated extension

*.html, *.php: Web-related files, respectively, representing HTML syntax and PHP syntax of the Web file!. html files can be opened directly using the Web browser, as for. php files, you can use the client side of the browser to find the server side, to get the operation The results of the Web page!


Linux directory configuration 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M00/5D/B5/wKioL1UjmOnDauF_AAqX7hNyKK0481.jpg " title= "illustration. png" alt= "wkiol1ujmondauf_aaqx7hnykk0481.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/B9/wKiom1Ujl73gYZuMAAqX7hNyKK0746.jpg "title=" plot. png "alt=" Wkiom1ujl73gyzumaaqx7hnykk0746.jpg "/>

/(Root, root): Related to the boot system; The following cannot be separated from the root directory.

#/etc: Configuration file

#/bin: Important Execution file

#/dev: Required Device profile

#/lib: function library required to execute the file does not require the core module

#/sbin: Important System Execution files


/usr (Unix software Resource): Related to Software installation/execution;

/var (variable): related to the system operation process.


Absolute path vs. relative path

Absolute path: The name of a file or directory, such as/HOME/DMTSAI/.BASHRC, that is started by the root directory (/).

Relative path: The file name of the relative two current path is spelled. For example./home/dmtsai or. /.. /home/dmtsai/and so on. Anyway, the beginning is not/is the relative path of the wording, the relative path is "Your current path relative position" to represent the


The observation of CentOS

Uname-r

2.6.18-128.el5 <== can see the actual core version

Lsb_release-a

LSB version, distribution version




Linux learning -03-permissions for files and directories-2

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.