- Learn Linux Quickly
- Ahmed AlKabary
- 219字
- 2021-06-11 18:43:50
Knowledge check
For the following exercises, open up your Terminal and try to solve the following tasks:
- Create three files hacker1, hacker2, and hacker3 in your home directory.
- Create three directories Linux, Windows, and Mac in your home directory.
- Create a file named cool inside the Linux directory you created in task 2.
- Create a file named boring inside the Windows directory you created in task 2.
- Create a file named expensive in the Mac directory you created in task 2.
- Copy the two files hacker1 and hacker2 to the /tmp directory.
- Copy the two directories Windows and Mac to the /tmp directory.
- Move the file hacker3 to the /tmp directory.
- Move the directory Linux to the /tmp directory.
- Remove the file expensive from the Mac directory (in your home directory).
- Remove the directory Mac from your home directory.
- Remove the directory Windows from your home directory.
- Remove the file hacker2 from your home directory.
- Rename the file hacker1 to hacker01.
True or false
- The cp command can copy directories without using the recursive option -r.
- You have to use the recursive option -r when moving directories.
- You can use the mv command to rename files or directories.
- You can remove a non-empty directory with the rmdir command.
- You can remove a non-empty directory with the rm -r command.
推薦閱讀
- 新編Premiere Pro CC從入門到精通
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- iPhone應用開發從入門到精通
- Python函數式編程(第2版)
- Scala編程實戰
- C++程序設計教程
- Sails.js Essentials
- Mastering ArcGIS Server Development with JavaScript
- MySQL從入門到精通
- 深入理解MySQL主從原理
- 開發者測試
- 微信公眾平臺服務號開發:揭秘九大高級接口
- LabVIEW案例實戰
- Bioinformatics with Python Cookbook
- 編寫高質量代碼:改善JavaScript程序的188個建議