Lab Work 1
Lab Work 1
LAB WORK 1
INSTRUCTIONS:
▪ Answer ALL questions.
▪ This is an open-book lab work.
▪ Login as a regular/normal user to your fedora system.
▪ Record every command/job you used in order to answer these questions
▪ Your work log must be submitted online via VLE by 08/11/2022 , 11:55pm.
▪ Any late submission will not be entertained.
1. Using shell commands, create the following file/folder structure in your home directory:
hr employ.txt … = Directory
… = File
exp purc.txt
finance
income taxes.sh
corp
marketing plan.txt
orders.sh
sales pos
cstmr.txt
Record all the commands you used and put them in the answer sheet.
(20 marks)
2. Using the file cstmr.txt in the file structure above, write at least 5 different student names (full
names) in the file. Write one name in a single line. Capitalize the first letter of each word in the
list. Record the command/steps you used and put them in the corresponding space in your
answer sheet.
(8 marks)
3. Using the file employ.txt in the file structure above, write at least 4 different lecturer names in
the file. Write one name in a single line. Record the command/steps you used and put them in
the corresponding space in your answer sheet.
(6 marks)
September 2022
IKB21103- OPERATING SYSTEM SECURITY Page 2 of 2
(20 marks)
Owner Owner
Files Directory
User Group User Group
purc.txt userA fingrp marketing userC
taxex.sh userB sales salesgrp
orders.sh userE salesgrp income userB fingrp
cstmr.txt userE
plan.txt mrktgrp
(20 marks)
(20 marks)
Remember: Keep a record of the commands and take screenshots of their outputs and put them all
in the answer sheet provided.
September 2022