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