- 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.
Q 1 - What is the file descriptor number which represents the STDOUT?
Answer : B
Explanation
0-STDIN, 1-STDOUT & 2-STDERR
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.
Q 3 - Which is following key moves the cursor to the end of the line in vi editor?
Answer : B
Explanation
Q 4 - Choose the correct option to replace all the occurrences of pattern1 with pattern2 using vi editor.
Answer : A
Explanation
g indicate to replace globally.
Q 5 - Per user configuration setting are found in the following file of users home directory.
Answer : B
Explanation
Aliases, imported environment variables, etc are part of the configuration settings.
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 - What are the options used to list the contents of a .tar file?
Answer : B
Explanation
t to list out, v is verbose mode & f for target file.
Answer : B
Explanation
Answer : B
Explanation
PID is given by OS, whereas Job number is the utility program which initiates process.