1. Other commonly used commands
grep string to find qualified string
pwd Displays the current working directory
wget wget to download data path resources
2. vi and vim editor (comprehension to understand)
Edit common file
three modes: the command line, insert the bottom line mode.
(1) to switch to the command mode: Press Esc;
(2) Insert mode: Press i, o, a bond;
I lifetime is inserted at the current position
I first inserted in the current line
a is inserted after the current position of
A in the current end of the line is inserted
o insert a row after the current row
by O line above the current row
(3) in the end line mode switch: press :( colon);
3. Pipeline | ★
Important concept, its role is to the output of one command as input to another command
such as:
Find 192.168 string of results in ifconfig
ifconfig | grep 192.168
later used
to find and java related processes
ps -ef | grep java
Find 3306 and related information
ps -ef | grep 3306
4. System Management Commands
date Display or set the system time
date displays the current system time
date -s "2014-01-01 10:10:10" to set the system time to
clear clear screen
ctrl + l
status of a process running ps
ps -ef view all processes
★ PS -ef | grep SSH Find a process
kill kill a process
kill 2868 kill 2868 numbered process
★ kill -9 2868 forced to kill the process
5. Network Management
ifconfig: View all the network settings
ifconfig NIC Name Down : Disable network card
ifconfig NIC name up : Enable the NIC
ping: in the same window and
canceled by + c Ctrl
netstat view the network port.
netstat -an | grep 3306 Query 3306 port occupancy