Linux Terminal
Linux has 6 terminal ALT+F1-F6 switch each terminal so there is a benefit, you can use multiple terminals at the same time to do things, a terminal dead, you can also switch to another terminal
CD/root directory
Ls
The Blue Catalogue
White is a file
CD bin LS Many linux commands are stored in the directory
Green executable file
Blue Symbolic Link
Etc directory important configuration files especially. conf files
Proc Directory virtual directory dummy directories. The files and subdirectories inside are automatically generated by the system during operation. Main storage System Information. Through this directory, you can understand the operation of the system. For example, to see the system CPU can see the Cpuinfo file
Sbin inside is also an order. It is primarily system-level and underlying commands. such as shutdown, formatting and so on. Must be root to run
The home directory is primarily the user's main working directory. When you create a new user, a child working directory is created. In general, a user's child working directory other users do not have permission to view, unless it is root
Libraries are primarily library files. Help documentation and the like
[Email protected] bin]# useradd ABCD //Add user [[email protected] bin]# passwd [email protected]#@# / /New User Password
Root is the current user www hostname bin represents the current directory #表示当前处于超级用户 other users are $
su //su means to log in as a different user//su switch to root user//exit exit back to the previous level
Basic commands
Soft change One:the following : CST
Mans Date // View Date Help document press Q to exit F and turn B before flipping
Mans //
Mans //View calendar cal-y Almanac
uname -a // View machine information 2.6. -642. el6.x86_64 #1: x86 _64 x86_64 x86_64 gnu/linux// system Linux host core time machine bits
View System Load
Top-11:46:50 Current time up, 16:51 system enabled 53 days , 1 user current 1 users , load average:0.00, 0.01, 0.05 load average, the general load is relatively minor words are generally 0.0 level 0.1 a few 0. A few such a number. Represents the average number of processes waiting in the queued queue. If it is 4,5, the system load is relatively large
Tasks:123 Total Running process , 1 running one in run , 122 sleeping How many in sleep , 0 stopped stop , 0 Zombie Zombie State, indicating some sort of runaway
Cpu (s): 0.0%us User State , 0.0%sy System State , 0.0%ni, 100.0%id idle , 0.0%wa wait , 0.0%hi, 0. 0%si, 0.0%st
mem:1914288k Total 1.9G memory , 1560028k used used , 354260k free idle , 207632k buffers
Swap Swap partition usage 2097148k total, 0k used, 2097148k free, 616104k cached
PID USER PR NI VIRT RES SHR S%cpu%MEM time+ COMMAND
Generally active will be on the top
9647 root 0 15032 1228 936 r 0.3 0.1 0:00.06 top &NB Sp , &NB Sp , &NB Sp , &NB Sp  
1 root 0 19352 1460 1140 s 0.0 0.1 0:01.52 init & nbsp , &NB Sp , &NB Sp , &NB Sp
2 root 0 0 0 0 s 0.0 0. 0 0:00.01 kthreadd &NBSP ; , &NB Sp , &NB Sp
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 Root 0 0 0 0 S 0.0 0.0 0:04.57 ksoftirqd/0
W.H.O. // See who's online W // See who's online WhoAmI // View current login status // wait until the logged-in person exits before it shuts down, shutdown now shuts down. // Restart // logout exit current login status clear// Clear Screen
Linux Common basic Commands 1