Section B: True or False
[10 Marks]
Read each statement below carefully and state whether it is false or true.
1. A shell script is a single shell command placed in a text file.
2. Typical operations performed by shell scripts include file manipulation,
program execution, and printing text.
3. A scripting language is not compiled into an executable.
4. The shell programming language does type-cast its variables.
5. You can create a variable SHELL as a user-defined variable.
6. The cut filter can select columns from files, depending on a delimiter or a
count of bytes.
7. GNU was stablished in 1984 by Richard Stallman.
8. The wc command is used to find out the number of users logged on.
9. Linux, as an operating system kernel, originated in 1981.
10. Shell provides us with an interface to the operating system.
11. Data is stored on a device so you can access the data by going into /dev.
12. Running the gg & command will bring a background job to the foreground.
13. You can delete an individual array element with de! prog[3]
14. To verify whether one package is installed, use rpm -s.
15. A scripting language generally starts from source code and are compiled into
an executable.
Section C
[60 Marks]
Answer all questions in this section.
Section Cl - Command Application
1. Write down the commands to perform the following:
(20 Marks)
(i) Bring interface ethO online and verify IP address.
[3]
(ii) Remove an empty Project directory and its subdirectories.
[2]
(iii) Change permission so only the owner has full access and group/others have write
permission for foo.txt using octal mode.
[2]
(iv) Check reachability ofwww.example.com and view network devices listening on TCP
ports.
[3]