BAIT3113 Pre Assessment Question-202405
BAIT3113 Pre Assessment Question-202405
Instructions:
Answer ALL questions.
c. copy a file
b. find a directory
d. edit a file
(4 marks)
b. Use a command to get the calendar for the month of July in the year 2232.
c. Write a command to show the date and time using each of the following formats:
i. Friday, November 21, 2008
ii. Hours : 08 Minutes : 22 Seconds : 24
d. Use the who command and redirect the result to a file called file1.
f.
(a) Refer to the directory tree structure as above, if your current working directory is heroes,
write a single command to reach the chars directory using absolute path.
Answer: (Absolute path):
(b) Refer to the directory tree structure as above, if your current working directory is heroes,
write a single command to reach the chars directory using relative path.
Answer: (Relative path):
(10 marks)
c. Change your default mask so that the default file permission is 664. What is the default
permission for directories after you make this change?
e. Create a directory called chapter_4/session_II under the home directory (without moving from
your home directory)
f. Remove the x permission for the user (all users) from session_II directory
g. Move to the session_II directory. Identify the problem and fix it.
2
BAIT3113 Systems Administration
h. Create a file name hw_4 under this directory and check the permission of this file.
i. Can users in your group copy this file? Can they change this file?
j. Change the permissions of this file so that every user can read, modify, but not execute this file.
(15 marks)