
UNIX Shell Commands Quiz
Authored by vamsi j
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the cd command do in a UNIX shell?
Changes the directory
Displays the current directory
Copies a file
Deletes a file
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a meta character used for filename substitution?
|
&
*
#
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the > operator do in input/output redirection?
Appends output to a file
Redirects input from a file
Redirects output to a file
Redirects output to another command
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How do you combine the output of two commands into one using a pipe?
command1 > command2
command1 | command2
command1
$(...)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you perform arithmetic operations in Bourne Shell?
expr
calc
math
arith
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the if statement in Bourne Shell?
To define a variable
To perform arithmetic operations
To make decisions based on conditions
To run commands in parallel
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you use quoting to prevent a shell from interpreting special characters?
Use double quotes "
Use single quotes '
Use backticks `
Use angle brackets
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?