![UNIX Tutorial](/unix/images/unix-mini-logo.jpg)
- 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 / 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.
![Questions and Answers](/images/questions_and_answers.png)
Q 1 - What is the option to create symbolic link for a file?
Answer : A
Explanation
-s is the option to create a symbolic/soft link and applicable for only files.
Q 2 - Which of the following is correct to create an alias name for 'ls' as 'list'?
Answer : A
Explanation
Syntax is alias alias-name=”command”.
Q 3 - Choose the command to list only the file “error.txt”
Answer : D
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 - Which option can be used with ‘chmod’ to apply permission bits recursively on all the files.
Answer : B
Explanation
Q 6 - Which character can be used to delete a character at the cursor position in vi?
Answer : C
Explanation
In the command mode of vi editor ‘x’ removes the character at cursor position.
Answer : B
Explanation
ftp is the utility available in many platforms which gives the provision of copying files across different system.
Q 8 - 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 9 - On a typical UNIX installation kernel resides in the following directory?
Answer : B
Explanation
Mostly in /boot.
Q 10 - Choose the example for character special file.
Answer : B
Explanation