Shell Scripting Quiz (Set 4)

Shell Scripting (Set 4)

1 / 10

In a shell script, how do you check if a directory exists?

2 / 10

What is the purpose of the 'shift' command in a shell script?

3 / 10

Which operator is used for logical OR in a shell script

4 / 10

What is the purpose of the 'getopts' command in a shell script?

5 / 10

In a shell script, how do you compare two strings for equality?

6 / 10

What is the purpose of the 'cut' command in a shell script?

7 / 10

Which variable is used to access the arguments passed to a shell script?

8 / 10

What is the purpose of the 'dirname' command in a shell script?

9 / 10

In a shell script, how do you append text to a file?

10 / 10

What is the purpose of the 'unset' command in a shell script?

Your score is

The average score is 0%

0%