官术网_书友最值得收藏!

  • 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:

  1. Create three files hacker1, hacker2, and hacker3 in your home directory.
  2. Create three directories Linux, Windows, and Mac in your home directory.
  3. Create a file named cool inside the Linux directory you created in task 2.
  4. Create a file named boring inside the Windows directory you created in task 2.
  5. Create a file named expensive in the Mac directory you created in task 2.
  6. Copy the two files hacker1 and hacker2 to the /tmp directory.
  7. Copy the two directories Windows and Mac to the /tmp directory.
  8. Move the file hacker3 to the /tmp directory.
  9. Move the directory Linux to the /tmp directory.
  10. Remove the file expensive from the Mac directory (in your home directory).
  11. Remove the directory Mac from your home directory.
  12. Remove the directory Windows from your home directory.
  13. Remove the file hacker2 from your home directory.
  14. Rename the file hacker1 to hacker01.

True or false

  1. The cp command can copy directories without using the recursive option -r.
  2. You have to use the recursive option -r when moving directories.
  3. You can use the mv command to rename files or directories.
  4. You can remove a non-empty directory with the rmdir command.
  5. You can remove a non-empty directory with the rm -r command.
主站蜘蛛池模板: 南汇区| 安庆市| 新乡市| 洛川县| 澜沧| 苍溪县| 灯塔市| 泉州市| 临漳县| 板桥市| 肇庆市| 吉林市| 清水河县| 隆林| 杭州市| 宜昌市| 德令哈市| 枣庄市| 河津市| 绵竹市| 镇宁| 平原县| 东兰县| 长垣县| 广州市| 沙洋县| 常德市| 河源市| 沐川县| 阿拉尔市| 新平| 天全县| 乐山市| 子洲县| 石泉县| 尖扎县| 赤壁市| 多伦县| 堆龙德庆县| 远安县| 郑州市|