Linux Common Command Collection

Source: Internet
Author: User
Tags clear screen

1 Common commands:2 Exit command: ESC after input: q!3 ls dirname does not go into folder view4LS-LH View file size in M5 ll view file size in K6 7 CD back to the user's root directory8 rm a.txt Deleting files9RM-RF dirname Delete FolderTen vi filename Edit file One vi fname.txt new file AEsc>U is undo - sz Send file (server to send file) compressed file package - RZ Download file (server to receive files) compressed package the MV fname (front) fname2 (after) change file or folder name - Unzip fname unzip the zip file - tar zcvf filaname.tar.gz filename Compressed file -TAR-ZXVF Python-2.7.9. tgz decompression tgz + More fname View some content, press space to continue -Cat fname View all content/It 's not good when there's too much content. +grep Item_scraped_count numsp.log-a 10find the number of rows after the file contents and contents in the file directory ATrue >fname emptying Files at Less fname1 fname2 fname3 { -1. G view the last line directly -2.ctrl +F move forward one screen -3.ctrl +B Move backward one screen -     } - pwd View the path to the current file inFind-name fname Find file path - VI Editor under 3 mode { to1. Just entered is the command mode { +1. Copy the positive line yy -2. Copy the word yw the3. Paste P *4. dd Delete entire row $5. 10DD Delete cursor below 10 linesPanax Notoginseng6. U undo Operation -7.Ctrl +R anti-undo the8. Move Cursor { +1. (The first sentence A2.) End of sentence the3. {Paragraph First +4.} End of paragraph -5.0beginning $6. $ end of line $             } -         } -2. Input i is an input mode the3. Input: Is the last line mode { -1. q! exit does not saveWuyi2. wq! Save Write Exit the         } -     } Wu  -  About Linux Advanced Commands: $PS-EF View Process - PS UXF View Neat process -Ps-ef|grep xxxx View the keyword process - Free to view memory usage A kill PID End Process + top view CPU, Memory usage the q exit top command Press Q -Top-u xxx view specified user $Nohup command line front plus nohup not hang up run/nohup mate &use commands in the middle the su switches to root thesource/etc/profile makes the configuration file effective immediately the Yum Search xxx searches for installation packages theLsof-i | Grep:80 -Netstat-A View all ports inDF-h View disk usage the passwd Change Password the Linux tips: About Clear command line clear screen the& Command after Add &Turn Background Execution the  the Command Description: { + grep full name is the global Regular expression Print, which represents the globally regular expressions matching search - awk is a powerful text analysis tool the}

Linux Common Command Collection

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.