Linux Basic Bash command

Source: Internet
Author: User

1. View file size, memory size, CPU information, hard disk space
    • command to display all file sizes for the current directory: LS-LHT

    • Memory space, CPU information, hard disk space: Htop, Top (Htop detailed reference: http://blog.csdn.net/skh2015java/article/details/53173896)

2, check the current running program situation, the remaining memory, kill program
    • Check the current operation of the program: Top, Htop

    • View memory Usage: free, free-m

    • Kill program: Kill, Kill-9 PID (forced kill process) Reference: http://www.cnblogs.com/wangcp-2014/p/5146343.html

3. sed command, grep command, awk command
    • Reference (http://www.cnblogs.com/52fhy/p/5836429.html)

4. Linux Vim split screen
    • Linux opens multiple files at the same time, vim file1 file2

      Display on a screen: new File1 or:new file2

      Multiple file switches Ctrl + W

      or with Vi-o file1 file2 file3 .... Open multiple files at the same time using the split screen window. (uppercase) or with Vi-o file1 file2 file3 .... Open multiple files at the same time using the split screen window. lowercase

      You can use CTRL + two times to press W or CTRL + W and then press the up and down keys to toggle between the upper and lower windows

      Ctrl+w s split-screen display of current document content

      CTRL+W Q Close the screen

      Ctrl+w o display only current split-screen content

      Ctrl+w J k up and down select split screen

5. Liux Process
    • Linux to input files into text, redirect command 1> result redirect 2> error redirect

    • CTRL + Z hangs a running process

    • Jobs view the pending process

    • BG process number Background running process

    • FG process number foreground running process

    • Kill process number kills process

Linux Basic Bash command

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.