- 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.
Q 1 - What does the following command would do
$ cp ../file.
A - Copies the file from current directory to parent directory
B - Copies the file from parent directory to its parent directory
C - Copies the file from parent directory to current directory
Answer : C
Explanation
Dot dot (..) represents parent directory and Dot (.) represents current working directory.
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 - Which is following key moves the cursor to the end of the line in vi editor?
Answer : B
Explanation
Answer : C
Explanation
–d means as delimiter, acts as field separator.
Q 5 - Choose the correct usage of ‘cd’ to move into parent directory.
Answer : D
Explanation
cd ..(space between cd and ..) is correct instead of cd..
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 give first found difference between two file after comparing?
Answer : B
Explanation
cmp command is used in general to find for equal files.
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.
Answer : A
Explanation
Answer : B
Explanation
To Continue Learning Please Login
Login with Google