Shell Scripting Quiz

Shell Scripting Quiz

University

10 Qs

quiz-placeholder

Similar activities

Technical Quiz - Round 2

Technical Quiz - Round 2

University

15 Qs

Matlab Quiz!

Matlab Quiz!

University

8 Qs

Collaborative Working using Git - Week 11

Collaborative Working using Git - Week 11

University

12 Qs

SO-750

SO-750

University

10 Qs

scratch quiz

scratch quiz

1st Grade - University

10 Qs

PHP File Handling

PHP File Handling

University

12 Qs

Command Prompt Quiz

Command Prompt Quiz

University

10 Qs

Introduction to Django Framework Quiz

Introduction to Django Framework Quiz

University

15 Qs

Shell Scripting Quiz

Shell Scripting Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Denisha 2539

Used 11+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the command "chmod +x script.sh" do?

Makes the script.sh file executable

Changes the ownership of script.sh

Renames the script.sh file

Deletes the script.sh file

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to redirect standard output in a command line interface?

<

>

|

&

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a computer science class, what does the command "echo $PATH" display?

Current directory

User's home directory

List of directories searched for executables

System environment variables

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display the contents of a file in shell scripting?

cat

ls

grep

chmod

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "&&" operator do in a real-world scenario?

Terminates the current process

Represents "or" condition

Represents "and" condition

Skips the next step

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default shell in most Linux distributions?

Bash

Zsh

Ksh

Csh

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to pause the execution of a script until user input is provided?

sleep

pause

read

wait

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?