Linux Utility Commands
1, More Page page to view ( down one ' space ', prev 'b', exit 'q' ) Example:moreSend.log
2, less page to view ( the next page ' space ', the previous page ' B ', exit ' Q ', go up one line '?') , down one line '?')
3, tail-10 send.log last ten lines
4, tail-f send.log Real-time printing, often used for real-time monitoring
5, tail-f nohp.log Real-time printing, change the file can also print new
6, rpm-qa | grep mysql view mysql installation file
7. service iptables status View firewall state
8, service iptables start to open the firewall
9. service iptables stop shutting down the firewall
chkconfig iptables--list See if the firewall is booting
One,chkconfig iptables on/off firewall boot / no boot
iptables-l-n--line--number View firewall rules (--number plus line number)
Vim Utility
1, yy Copy the current line, 5yy Copy the cursor 5 lines at a time
2, p Paste
3, v Enter the character selection mode, after the selection is complete. Press y to copy,p to paste
4, control/ctrl+v into the block selection mode, after the selection is complete. Press y to copy,p to paste
5, shift+v Enter the line selection mode, after the selection is complete. Press y to copy,p to paste
6, find and replace (in the bottom command mode input)
7, %s/aa/bb. All AA replacements for BB
8, a after the cursor one begins to insert
Ten, A in the last insert of a row
One, I Insert at the front of the row
gg jumps directly to the first line of the file
G jump directly to the last line of the file
dd Delete Row, 5dd Delete the cursor 5 lines at a time
Sweep
Focus on Java High Master
Summary of Linux Utility commands