- Unix / Linux for Beginners
- Unix / Linux - Home
- Unix / Linux - What is Linux?
- Unix / Linux - Getting Started
- Unix / Linux - File Management
- Unix / Linux - Directories
- Unix / Linux - File Permission
- Unix / Linux - Environment
- Unix / Linux - Basic Utilities
- Unix / Linux - Pipes & Filters
- Unix / Linux - Processes
- Unix / Linux - Communication
- Unix / Linux - The vi Editor
- Unix / Linux Shell Programming
- Unix / Linux - Shell Scripting
- Unix / Linux - What is Shell?
- Unix / Linux - Using Variables
- Unix / Linux - Special Variables
- Unix / Linux - Using Arrays
- Unix / Linux - Basic Operators
- Unix / Linux - Decision Making
- Unix / Linux - Shell Loops
- Unix / Linux - Loop Control
- Unix / Linux - Shell Substitutions
- Unix / Linux - Quoting Mechanisms
- Unix / Linux - IO Redirections
- Unix / Linux - Shell Functions
- Unix / Linux - Manpage Help
- Advanced Unix / Linux
- Unix / Linux - Standard I/O Streams
- Unix / Linux - File Links
- Unix / Linux - Regular Expressions
- Unix / Linux - File System Basics
- Unix / Linux - User Administration
- Unix / Linux - System Performance
- Unix / Linux - System Logging
- Unix / Linux - Signals and Traps
Unix Mock Test
This section presents you various set of Mock Tests related to Unix Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
Unix Mock Test IV
Q 1 - Which command from the following can create a file if doesn’t exist?
Answer : D
Explanation
touch can update access and modification time apart from creating an empty file.
Q 2 - Which switch of rm command is used to remove a directory with all its subdirectories forcibly?
Answer : C
Explanation
–r mean recursively and –f means forcibly.
Q 3 - Which command can be used to display file contents in octal?
Answer : A
Explanation
od full form is octal dump.
Answer : C
Explanation
Q 5 - Which command can be used to make variables of shell to be made available to sub shell?
Answer : B
Explanation
As in the following example
$ var = "tutorialspoint" $ export var $ bash -c "echo $var"
Q 6 - What is the output of the command ‘umask –S’?
A - Shows mask value using symbolic notion.
B - Shows mask value using octal values
Answer : A
Explanation
Q 7 - Identify the command to remove a directory from directory stack.
Answer : B
Explanation
Answer : A
Explanation
Q 9 - On a typical UNIX installation kernel resides in the following directory?
Answer : B
Explanation
Mostly in /boot.
Answer : B
Explanation
Q 11 - In general the working directory of the user root is __
Answer : B
Explanation
This path is editable even after installation of the system.
Q 12 - Superuser can change only the following permissions of a file.
Answer : D
Explanation
Q 13 - __ can talk to the kernel.
Answer : C
Explanation
Answer : C
Explanation
Oracle Corporation took over Sun microsystems
Q 15 - Which of the following command can give documentation of a command?
Answer : A
Explanation
Q 16 - Out of the following which can place in home directory?
Answer : C
Explanation
Answer : B
Explanation
Answer : B
Explanation
PID is given by OS, whereas Job number is the utility program which initiates process.
Q 19 - /proc holds information about ___
Answer : B
Explanation
Answer : A
Explanation
Q 21 - Choose the example for character special file.
Answer : B
Explanation
Q 22 - Choose the example for block special file
Answer : A
Explanation
Answer : B
Explanation
Link count gets increased by creating only hard links.
Answer : D
Explanation
Answer Sheet
Question Number | Answer Key |
---|---|
1 | D |
2 | C |
3 | A |
4 | C |
5 | B |
6 | A |
7 | B |
8 | A |
9 | B |
10 | B |
11 | B |
12 | D |
13 | C |
14 | C |
15 | A |
16 | C |
17 | B |
18 | B |
19 | B |
20 | A |
21 | B |
22 | A |
23 | B |
24 | D |
25 | B |
To Continue Learning Please Login
Login with Google