Linux Common Command Exercises

Source: Internet
Author: User

This machine is ubuntu16.0.4lts:

1. Create folder: mkdir name

2. Create file: Touch a.txt

3, use gedit edit A.tx:gedt a.txt

Press Ctrl+s to save or point in the upper right corner of Save

4. Use Vim to edit A.txt:vi A.txt, press I to enter the INSERT, enter edit mode, enter the content, press ESC, and then enter: Wq and press ENTER to save and exit vim

5. Copy the a.txt inside the practice file to the Word folder: CP practice/a.txt word/

6, delete the practice file inside the A.txt file: Rm-i practice/a.txt

Command format: RM [fir] File or directory
Parameter description:
-F: Force delete
-I: Interactive mode, asking the user whether to operate before deleting
-R: Recursive delete, commonly used in directory deletion

7. Return to the directory command:

Cd.. Back to the top level directory

CD ~ Back to home directory

CD-Back to a directory

8. Exit Terminal: Exit

Linux Common Command Exercises

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.