Where to start First steps track · 15 stages
Linux Labs

Bash: text processing and scripts

Quiz: scripts

Question 1 of 9
Leave the quiz

The interpreter and the shebang, the x permission and PATH, variables in quotes, $1, $# and "$@", [ -f ] tests and an exit status with a usage line on stderr. The questions follow the lessons “A script is a file of commands” and “Arguments, quotes and file checks”.

9 questions · threshold 70%

One correct answer

The script starts with #!/bin/bash, its mode is rw-r--r--, and line 5 holds the list files=(todo.txt servers.txt). Which command, run from its directory, gets it through without an error?

A–D or ↵ Sign in to answer
Loading…