UNIX Shell Commands Quiz

UNIX Shell Commands Quiz

University

25 Qs

quiz-placeholder

Similar activities

Linux Test Prep 1

Linux Test Prep 1

7th Grade - Professional Development

25 Qs

Computer Network - English

Computer Network - English

University

24 Qs

LPF241_Q1

LPF241_Q1

University

25 Qs

Network Security

Network Security

University

20 Qs

OPSY Lecture - 23 March, 2020

OPSY Lecture - 23 March, 2020

University

20 Qs

OPSY Learning unit 2

OPSY Learning unit 2

University

22 Qs

Pig Quiz-1

Pig Quiz-1

University

22 Qs

shell programming

shell programming

University

29 Qs

UNIX Shell Commands Quiz

UNIX Shell Commands Quiz

Assessment

Quiz

Computers

University

Medium

Created by

vamsi j

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?