Section B: True or False
[10 Marks]
Read each statement below carefully and state whether it is false or true.
1. The kernel is the program acting as chief of operations.
2. User mode is the privileged mode in which the operating system's kernel
operates.
3. Only one unprivileged user may be logged into a Linux system at any given time.
4. Running the gg & command will bring a background job to the foreground.
5. You can install one or more applications by appending their name behind apt-
get install.
6. Nano is an environment in which we can run our commands.
7. You can view file and directory permissions by typing ls -la
8. o=r: Sets others' permissions to read-only.
9. The -B option tells the command to descend recursively through the directory
tree.
10. There are three modes in which vi works.
Section C
Answer all the questions in this section.
Section Cl - Command Application
[55 Marks]
(20 Marks)
1. Write down the commands to perform the following:
I. Securely copy a file named report.txt from your local machine to a remote host
at 192.168.1.20 under the /home/admin/ directory.
[2]
II. Extract the first and fourth columns from the /etc/passwd file using the cut
command.
[2]
Ill. Remove Project directory and its subdirectories.
[2]
IV. Change the permission so that only the user (owner) has full access, while group
and others have only read permissions to a file called foo.txt.
[2]
2. Explain the following commands:
I. sudo ufw allow 22/tcp
[2]
II. cp chgrp developers file2
[2]
III. chmod go-w file.txt
[2]
IV. cp -R dir3 /opt/python/
[2]
3. What is the difference between> and>> ?
[2]