Faculty of Computing & IT
School of Computer Application
Bachelor of Computer Application
INTRODUCTION TO LINUIX - QUESTION BANK
Brief History of Linux
1. List the basic components in Unix
2. Describe the main categories of files in Unix.
3. What are wildcards in Unix? Show examples.
4. Differentiate between absolute and relative pathname.
5. Explain the silent features of unix and types of shell.
6. Explain the commands cmp, diff, and comm are used for file comparison in Unix.
7. Explain the wc and who commands with examples.
8. Demonstrate the use of basic Unix commands – uname and echo with examples.
9. The difference between pwd and cd commands.
10. Explain the role of mkdir and rmdir commands in directory management.
11. Compare the date and cal commands in Unix.
12. Outline the purpose of the cat command.
13. Show the difference between the more, head and tail commands.
File Attributes and Permissions
1. Apply the chmod command to grant read, write, and execute permissions to the user of
a file.
2. What does the tee command do in Unix?
3. Demonstrate how to change both the owner and group of a file using chown.
4. Apply the tr command to transform a file by removing all digits.
5. Build the role of | in combining commands in Linux. Provide a suitable example.
6. Organize the data alphabetically and numerically using sort and uniq commands.
7. Develop a command to display file attributes in a long listing format using ls
8. Make use of the umask command by setting a default directory creation mode.
9. Organize commands to redirect standard input, output, and error to different files.
The Vi editor
1. List the modes of operation in the vi editor.
2. Discover how regular expressions are used in grep for pattern matching.
3. List the steps to configure the vi environment for optimal use.
4. Classify cursor movement commands in vi and their functions any three.
5. Categorize the grep family of commands and their use cases.
6. Simplify the steps to copy and moving text in vi.
7. Analyze the purpose of the sed command with an example.
8. Dissect the differences between grep, egrep, and fgrep.
Shell Programming
1. Evaluate the use of shell variables in controlling the behaviour of shell scripts.
2. Justify the role of the read command in making shell script.
3. Explain the role of the expr command in shell scripts.
4. Determine the use of if, if-else and case statements in shell scripting with example.
5. Explain the while loop and the for loop in shell scripting.
6. Assess the importance of the ‘$?’ variable in handling errors and conditional logic in
shell scripts
7. Explain the purpose and usage of the here document (<<) with examples.
8. Test for the usage of eval and exec commands.
9. Implement advanced arithmetic operations using shell scripting.
10. Elaborate the importance of debugging techniques for error-free scripting.
11. Develop a shell script that swaps two numbers without using a temporary variable by
applying arithmetic operations.
12. Explain the role of the expr command in shell scripts.
13. Discuss the role of the script command.