Linux operation instructions
Ctrl+alt+f3 into the text interface
CTRL+ALT+F1 into the Desktop interface
mkdir Create File command
VI Edit File command
CD Switch Directory command
Cd.. Return to Parent Directory
LS View folder under File command
Wq Save
q! Cancel
Setup Enter settings (Turn off firewall settings IP address)
Reboot restart System
Poweroff-n shutting down the system
Vi/etc/selinux/config Enter the file (firewall off)
Change selinux=disabled
Cat View Commands
Move File command
Mv
Move file: MV file name move destination file name
Rename file: MV FileName modified file name
Example: MV Oldfilename NewFileName (Oldfilename is the old file name, NewFileName is the new filename)
Delete command
Rm
-R No matter how many levels of directory, delete
-F Force Delete
-RF Super Force Delete
View process Commands
Ps
-a displays the processes under the current terminal, including other users ' programs
-U Displays program status in a user-oriented format
-X displays so the program, not the terminal to distinguish
Ps-aux
Ps-ef
Querying the specified thread
Ps-ef | grep #查询指定线程
End Process Command
Kill
Example: Kill-9 324
Network card settings
Vi/etc/sysconfig/network-scripts/ifcfg-eth0 Network Port settings
Onboot=yes (cannot use NIC if not changed to Yes)
Bootproto=static Change to static IP
Ifconfig Viewing network card information
Service Network restart restart NIC
Query System version number command
Uname-a
Getconf Long_bit
Delete File command
Linux Delete directory is very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command.
Direct RM is available, but add two parameters-rf that is: RM-RF directory name
-R is recursive down, no matter how many levels of directory, delete
-F is directly forcibly deleted, without any hint of meaning
The system executes the Linux script
chmod +x./test.sh #使脚本具有执行权限
./test.sh #执行脚本
Unzip command
TAR-ZXVF #解压缩命令
Linux operation instructions