Commands related to linux must be killed. 1. rpm installation and uninstallation package rpm-ivh/root/Desktop/notepad. rpm. If an error message "error: Faild dependencies" appears, it indicates that the software package dependency problem has occurred. The following shows the file to be installed and the file to be installed (google) install it again. You can also add the -- nodeps force installation after the preceding command. Rpm-e notepad: delete rpm Software Package rpm-qa | grep ssh and query the installation package www.2cto.com 2. calculate the wc filename-l 3 file line. view the dynamic log tail-f cantalina. view the last five lines of the file: tail-5 a.txt 4. copy to remote machine: scp/home/work/a.txt 192.168.3.23 :~ /The 'a.txt file is copied to 192.168.3.23 5.ps-ef | grep 'tomcat 'to check whether the process contains the 'tomcat' character. In the process, kill-9 process no. 6. head-n 1000 engine_20120501_1.log> text2.log engine _. copy the first 1000 rows of log to text2.log and view the first 10 rows of data. head-n 10 engine. log 7. list the file tree www.2cto.com find. -print 2>/dev/null | awk '! /\. $/{For (I = 1; I <NF; I ++) {d = length ($ I); if (d <5 & I! = 1) d = 5; printf ("%" d "s", "|")} print "---" $ NF} 'fs = '/'Find. -type d-print 2>/dev/null | awk '! /\. $/{For (I = 1; I <NF; I ++) {d = length ($ I); if (d <5 & I! = 1) d = 5; printf ("%" d "s", "|")} print "---" $ NF} 'fs = '/' 8. filter the row awk' index ($0, "Chinese") of the file containing characters> = 1 {print $0} 'engine_20120103.log awk-F "[] [&]" 'index ($13, "lk =")> = 1 & length ($13)> 3 {print ($0);} 'Log. log // specify the splitting symbol (&) and condition 9. start infobright:/etc/init. d/mysql. d-ib stop | start author ganliang13