- 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.
推薦閱讀
- Azure IoT Development Cookbook
- Vue.js快跑:構建觸手可及的高性能Web應用
- Animate CC二維動畫設計與制作(微課版)
- Android 7編程入門經典:使用Android Studio 2(第4版)
- Cassandra Design Patterns(Second Edition)
- Python 3網絡爬蟲實戰
- C語言程序設計案例式教程
- Java深入解析:透析Java本質的36個話題
- Getting Started with Laravel 4
- Java面向對象程序設計
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- Raspberry Pi Robotic Blueprints
- 現代C:概念剖析和編程實踐
- Go語言入門經典
- Hack與HHVM權威指南