Linux Common environment variables, file types, rights Management

Source: Internet
Author: User


von Neumann system 1 input device -"2 memory (memory)-"3 Operator -"4 controller -"5 output device

Linux Common environment variables:

( same environment variable name for different users but different content )

1. Path command search paths

Export path= $PATH: path to/2016_ program

2. Home user home directory

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/0F/wKiom1c1lkyQ6fijAAAJv3FTFS8555.png "title=" 0.png " alt= "Wkiom1c1lkyq6fijaaajv3ftfs8555.png"/>

3. histsize history command

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/0C/wKioL1c1l2fTSfIGAAALo1C7QB4733.png "title=" Picture 1.png "alt=" Wkiol1c1l2ftsfigaaalo1c7qb4733.png "/>

4. LOGNAME The login name of the current user

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/80/0F/wKiom1c1lpuz4E76AAAN9GN0sOU924.png "title=" Picture 2.png "alt=" Wkiom1c1lpuz4e76aaan9gn0sou924.png "/>

5. HOSTNAME host name

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/80/0F/wKiom1c1lq-A3l-ZAAAO1Wbcy70499.png "title=" Picture 3.png "alt=" Wkiom1c1lq-a3l-zaaao1wbcy70499.png "/>

6. What Shell does the shell use for the current user?

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/0C/wKioL1c1l6TjMdObAAALxBuB05c047.png "title=" Picture 4.png "alt=" Wkiol1c1l6tjmdobaaalxbub05c047.png "/>

7. lang/languge Language-related environment variables

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/0C/wKioL1c1l7Tx31C8AAANPOAW7hY565.png "title=" Picture 5.png "alt=" Wkiol1c1l7tx31c8aaanpoaw7hy565.png "/>

8. MAIL

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/0C/wKioL1c1l8biSs2xAAAKipEQfjA172.png "title=" Picture 6.png "alt=" Wkiol1c1l8biss2xaaakipeqfja172.png "/>

9. PS1

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/0C/wKioL1c1l9_gREI2AAAMj-gpw5o179.png "title=" Picture 7.png "alt=" Wkiol1c1l9_grei2aaamj-gpw5o179.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/0C/wKioL1c1l-qiNcAAAACDaBAWN-4198.png "title=" Picture 8.png "alt=" Wkiol1c1l-qincaaaacdabawn-4198.png "/>

PS2 affiliated prompt >

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/0F/wKiom1c1lyuihfKjAAAKIBi4T74784.png "title=" Picture 9.png "alt=" Wkiom1c1lyuihfkjaaakibi4t74784.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/0C/wKioL1c1mBjDNkIGAAAJeelVa8U497.png "title=" Picture 10.png "alt=" Wkiol1c1mbjdnkigaaajeelva8u497.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/0F/wKiom1c1lz-Rt67PAAAP4nV5UZs328.png "title=" Picture 11.png "alt=" Wkiom1c1lz-rt67paaap4nv5uzs328.png "/>

1 echo

2 Export to set a new environment variable

Export hello= "HELLO" ( yes . quotation marks )

3 env Display all environment variables

4 Set shows locally-defined shell variables

5 unset

6 readonly Setting read-only environment variables

Linux File Types

1 Common Files (regular file) [-]

① Plain Text file (ASCII)

② binary file (binary executable file )

③ Data Format File

2 contents (directory) [d]

3 Connection File (link) [l]

(Soft connection equals shortcut)

( hard Connect )

4 device and device files ( All Files in the computer )

Block device files that store files such as hard disks [b]

Character device file keyboard mouse printer [c]

5 Sockets (sockets) [s]

6 Pipe (FIFO, pipe) [P]

Linux Extensions

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/0C/wKioL1c1mE6QmPBoAABXKgw28so931.png "title=" Picture 12.png "alt=" Wkiol1c1me6qmpboaabxkgw28so931.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/0F/wKiom1c1l4WSW76rAABOJQafFNs319.png "title=" Picture 13.png "alt=" Wkiom1c1l4wsw76raabojqaffns319.png "/>

Linux does not use extensions and extensions just to make it easier for users to differentiate between different types of files

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/80/0C/wKioL1c1mHaR_AAeAABKe8H3YrI505.png "title=" Picture 14.png "alt=" Wkiol1c1mhar_aaeaabke8h3yri505.png "/>

Bin Save Command

Home User name folder

Lost+found Temporary file Delete file

MNT Mount

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/10/wKiom1c1l6bAcUibAAAWmb1XUr8163.png "title=" Picture 15.png "alt=" Wkiom1c1l6bacuibaaawmb1xur8163.png "/>

Proc system Process information CPU Memory-related information

SYS and proc overlap reaction hardware and software information (sys new version must support proc boss for historical reasons)

Dev

Lib Library file

NET Network

SELinux set up the network

var log system Boot information, etc.

Boot kernel startup-related files

Root Super User working directory /root

TMP temp file

How the Shell works

General users cannot directly operate the core (kernel) must communicate through shell shells

Shell : command-line interpreter

1 translate the user's commands to the core (kernel) processing.

2 at the same time, the core processing results are translated to the user.

The shell does not execute the command itself but runs with the child process.

Child process failure does not affect itself because once the shell hangs up, the user cannot communicate with the kernel.

How the shell runs the program

The Shell creates a new process with fork , runs the user-specified program in the new process with the EXECV function cluster, and finally the shell

Wait for the new process to end with the wait command. the Wait system is called at the same time as the kernel gets the eject state or sequence of signals to tell how the child process ended.

Linux Rights Management

1 category (people) of file visitors

the owner of a file and file directory u---user

b user of the group that owns the file and file directory:g---group

C other users o---Others

2 types of file access rights (things properties)

A basic permissions

I- read (R/4)

II write (w/2)

III execution (X/1)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/80/0C/wKioL1c1mKvSiWkFAAApaLoGI8A038.png "title=" Picture 16.png "alt=" Wkiol1c1mkvsiwkfaaapalogi8a038.png "/>



This article is from the "City Hunter" blog, please be sure to keep this source http://alick.blog.51cto.com/10786574/1773117

Linux Common environment variables, file types, rights Management

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.