LPI Linux Essentials

Shell Scripting

12 free questions here, all 60 in the app

Easy 20 8 of them here Medium 20 2 of them here Hard 20 2 of them here

Easy

8 of 20 questions

Script basics

  1. Which first line makes a script run with Bash?
  2. What is the character sequence #! at the start of a script called?
  3. Which command makes script.sh executable for its owner?
  4. How do you start the executable script backup.sh located in the current directory?
  5. How do you assign the value Anna to the variable name?
  6. How do you print the content of the variable name?
  7. Which forms print the content of the variable file?
  8. Are $Name and $name the same variable in Bash?

Practise all 20 Easy questions in the app →

Medium

2 of 20 questions

Script basics

  1. What happens with bash script.sh if script.sh has no execute permission?
  2. tool.sh is executable and starts with #!/bin/bash. The current directory is not in PATH. Which calls start the script?

Practise all 20 Medium questions in the app →

Hard

2 of 20 questions

Script basics

  1. A script saved on Windows reports /bin/bash^M: bad interpreter on start. Which commands fix this?
  2. Which statements about the shebang line are true?

Practise all 20 Hard questions in the app →

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications