Shell Scripting Quiz (Set 2)

Shell Scripting (Set 2)

1 / 10

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

2 / 10

In a shell script, how do you declare a variable?

3 / 10

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

4 / 10

Which command is used to remove a file in a shell script?

5 / 10

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

6 / 10

Which operator is used for file redirection in a shell script?

7 / 10

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

8 / 10

In a shell script, how do you comment out a single line?

9 / 10

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

10 / 10

Which command is used to list all environment variables in a shell script?

Your score is

The average score is 0%

0%