Professional Documents
Culture Documents
ID: 20521542
Class: CS4323.N11.CTTT.1
OPERATING SYSTEM
LAB X’S REPORT
SUMMARY
Task Status Page
Section 1.5 Task 1 Done 2
Task 2 Done 2,3
Task 3 Done 3,4,5
Task 4 Done 6,7
Task 5 Done 7
Task 6 Done 7
Task 7 Done 7,8
Self-scrores: 9
*Note: Export file to PDF and name the file by following format:
Student ID_LABx.pdf
1
Section 1.5
1. Execute the directory transfer command in the following order:
Switch back to the root directory
- We can perform the command to move the directory to the root directory with the
command “cd /”
2
Fig4: Create a directory
- With the command “mkdir” we can create multiple directories at the same time, as well
as set permissions for both directories when creating.
- Use the -p option to create a directory in between two existing directories
- So, to create a directory tree as shown above, we use the command “mkdir -p
Myweb/{images/{icon,background,animation},databases, scripts,java}
3
Fig7: Check current directory
- We need to turn back to the user directory (we are in “~/Myweb/images”) by using the
command “cd ../..”
- /home/loan-20521542 is the directory we are in by command “pwd”
- To find files with .html extensions in the current file system, we use “find / -name
*.html”
4
Fig9: Find .class file
To copy some file.html into Myweb, we need use the command “cp file.html ~/Myweb
5
Fig13: Move .html files to Myweb/java
We use the command “mv file.html java” to move the .html files in the Myweb directory
to the Myweb/java directory
5. Delete the folder Myweb/scripts
6
- We use “sudo groupadd HDH” to create group HDH
- “cat /etc/group |grep HDH”: for file backup
- “HDH:x:1002:” : the HDH group has been created successfully