- 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.
推薦閱讀
- Progressive Web Apps with React
- GraphQL學(xué)習(xí)指南
- OpenCV實(shí)例精解
- CouchDB and PHP Web Development Beginner’s Guide
- Hands-On Swift 5 Microservices Development
- Windows內(nèi)核編程
- AIRIOT物聯(lián)網(wǎng)平臺(tái)開發(fā)框架應(yīng)用與實(shí)戰(zhàn)
- Mastering Akka
- OpenCV with Python By Example
- JSP程序設(shè)計(jì)實(shí)例教程(第2版)
- 從零學(xué)Java設(shè)計(jì)模式
- Puppet:Mastering Infrastructure Automation
- Hands-On Dependency Injection in Go
- 一步一步學(xué)Spring Boot:微服務(wù)項(xiàng)目實(shí)戰(zhàn)(第2版)
- Improving your Penetration Testing Skills