Shell Scripting Quiz (Set 3)

Shell Scripting (Set 3)

1 / 10

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

2 / 10

Which operator is used for logical AND in a shell script?

3 / 10

What is the purpose of the 'case' statement in a shell script?

4 / 10

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

5 / 10

Which command is used to remove a directory and its contents in a shell script?

6 / 10

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

7 / 10

Which special variable represents the script's filename in a shell script?

8 / 10

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

9 / 10

Which command is used to make a new directory and any necessary parent directories?

10 / 10

What is the purpose of the 'for' loop in a shell script?

Your score is

The average score is 0%

0%