Commands related to linux

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.