Bash Test

Exam Type: Bash MCQ Skill Test
Questions Type: Multiple Choice Questions
Total Questions: 19
Time Limit: 30 Minutes
Last Update July, 2025

Pass Bash Exam

75%
Total time

1 minute 2 seconds

Total time

1 correct answers

Total time

6 incorrect answers

Total time

6 not attempted

Start

Bash Quiz

Question 1 of 19
30:00

To run a copy command in a subshell, which syntax would you use?

To permanently remove empty lines from a file called textfile, which command could you use?

What happens if you use set -e in a Bash script?

The _____ keyword pauses the script to get input from standard input.

How does the SUID or setuid affect executable commands?

In order to extract text from the first column of file called textfile, which command would you use?

Which arithmetic expression will give the most precise answer?

What is the result of this script? - TODO add script

In order for a Bash script to be executed like an OS command, it should start with a shebang line. What does this look like?

Suppose your current working directory is your home directory. How could you run the script demo.sh that is located in your home directory? Find three correct answers. A. /home/demo.sh B. ./demo.sh C. ~/demo.sh D. bash /home/demo.sh E. bash demo.sh

What do you use in a case statement to tell Bash that you're done with a specific test?

What Bash script will correctly create these files?

Which variable would you check to verify that the last command executed successfully?

How can you gather history together for multiple terminals?

What is the difference between the $@ and $* variables?

Which file allows you to save modifications to the shell environment across sessions?

How would you find the last copy command run in your history?

When executing a command and passing the output of that command to another command, which character allows you to chain these commands together?

Which statement checks whether the variable num is greater than five?

Bash Test Explained

© 2025 Skill Test Answer. All Rights Reserved