- 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 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 / Linux Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Unix Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Answer : D
Explanation
Kernel is the core part of the OS and is odd one the rest are popular shells.
Q 2 - Which shell variable holds the first command line argument for a shell script?
Answer : B
Explanation
$0 represent the shell script file name itself. Starting with $1, are actual command line arguments sent to the shell script.
Answer : D
Explanation
rmdir can be used only if the directory is empty. We can remove the directory if non-empty using recursive option with rm, as a directory is even a file for UNIX/Linux.
Q 4 - Following file contains the encrypted password of the users.
Answer : B
Explanation
Q 5 - General purpose UNIX command are found typically in the following directory.
Answer : C
Explanation
Q 6 - Which command can be used to create links for file/directory?
Answer : B
Explanation
ln is the command used to create hard/soft link for a file and hard link for a directory.
Q 7 - Which command can be used to count characters in a text file?
Answer : B
Explanation
wc, apart from counting characters it can also count number of line & words.
Q 8 - 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 9 - Identify the command to remove a directory from directory stack.
Answer : B
Explanation
Answer : D
Explanation