Common Linux Commands

Source: Internet
Author: User

1. mkdir set up directory $ mkdir TestDir

2, LS list content under the directory Ls-al TestDir

3. CD replacement current working directory CD TestDir

4. PWD Displays the current working directory PWD

5. CP copy file or directory CP test.txt Test.bak

6. MV Rename (move) file mv TestDir Testdirbak

7. RM Delete files or directories RM-RF TestDir

8. Cat

displaying file contents cat filename

Create a new file cat > Fllename end with EOF or stop

Connecting multiple files output to a file cat file1 file2 >file3

9. more/less View File contents more/less filename more: Press space to continue less: up and down Arrows press Q to end the view

10, Head/tail View the file head/tail content TAIL-F log monitoring logs information;

11. PS View process Ps-aef|grep ' name '

12. Kill Process Kill-9 Number

13. Jobs View the serial number of the commands being executed in the background jobs

14, BG/FG designated Jobid in the background/front-end operation Crtr+z BG Jobid; FG Jobid

15, DU/DF View the disk space consumption of the file system DU/DF

Common Linux Commands

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.