Search Header Logo

unix shell commands

Authored by Akhilesh singh

Computers

University

Used 120+ times

unix shell commands
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a shell script?

group of commands

a file containing special symbols

a file containing a series of commands

group of functions

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Shell scripts need to be saved with an extension .sh .

True

False

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The first line in any shell script begins with a _____

a) &

b) !

c) $

d) #

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

To run the script, we should make it executable first by using _____

a) chmod +x

b) chmod +r

c) chmod +w

d) chmod +rwx

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which command is used for making the scripts interactive?

a) ip

b) input

c) read

d) write

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The first argument is read by the shell into the parameter ___

a) 1$

b) $3

c) $$

d) $1

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The complete set of positional parameters is stored in ______ as a single string.

a) $n

b) $#

c) $*

d) $$

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?