7
7
Assessment Type
Logbook: 7
Semester:3
2023/24 Autumn
I confirm that I understand my coursework needs to be submitted online via Google Classroom under the
relevant module page before the deadline in order for my assignment to be accepted and marked. I am
fully aware that late submissions will be treated as non-submission and a mark of zero will be awarded.
Rahul Shrestha 1
Network Operating System
Workshop: Week 7
Task 1: Create the directory structure presented in the figure below.
Use mkdir command and relative pathnames from your home directory. Try both: no
option and – p option, for the command.
Rahul Shrestha 2
Network Operating System
Task 4: Change to 1level3 and create a text file Use any tool (e.g., by cat or cal like last
tutorial).
Task 5: Copy this text file from 1level3 to 1level3 (with the name file1), 2level3, and to
3level3 changing its name. Show that there are these files in corresponding directories.
Rahul Shrestha 3
Network Operating System
Task 6: Move this file to 4level3. Show that there is this file in 4level3 and there is not in
1level3.
Task 7: Print the following texts each in one echo or printf command:
Hello! I can do it.
5 > (20: 8) < (30 * 2)
Line 1 Line 2
a-b, A-B, –, +, , #, $, %, &.
Task 8: Give the ls command (without options and with a, d, g, l, R options) in home
directory, w7, w7-1, and 1level3 directories. Explain for yourself the results received.
Rahul Shrestha 4
Network Operating System
Rahul Shrestha 5
Network Operating System
Rahul Shrestha 6
Network Operating System
Rahul Shrestha 7
Network Operating System
Task 9: Change to the W7 directory. Show use of -i Remove the directory files w7-2,
3level-3, 4level3 and all ordinary files in them. Use the option –i of the rm and rmdir
commands. Show that there are not these ordinary and directory files in your file
structure.
Rahul Shrestha 8
Network Operating System
6. Try to write into this file using any utility (e.g., cat with the sign >> – append).
Rahul Shrestha 9
Network Operating System
7. Add read and write access permissions for yourself for this file.
Rahul Shrestha 10
Network Operating System
7. Add read, write, and execute access permissions for yourself for the 1level3 directory.
Rahul Shrestha 11
Network Operating System
11. Try to search in 1level3 using any command (e.g., the ls command).
Rahul Shrestha 12