Skip to content
KALANBLON
Show contents

Chapter 7 of 7 · 10 min

Quiz: combining and automating

Redirections, pipes, filters, permissions and scripts: let's check that you can combine and automate. You need 70% correct answers, and every answer is explained.

Quiz

7 questions · pass mark: 70%

  1. 1.What does the pipe | do?

    One answer

  2. 2.Why put sort before uniq -c?

    One answer

  3. 3.What happens to notes.txt after this command?

    One answer

    sort notes.txt > notes.txt
  4. 4.What permissions does chmod 640 give?

    One answer

  5. 5.In a script, which variable holds the first argument?

    Complete the code

    echo "Bonjour ___"
  6. 6../sauvegarde.sh answers “Permission denied”. Which fixes are appropriate? (several answers)

    Several answers possible

  7. 7.What does this line print if grep does not find sucre?

    One answer

    grep -q sucre stock.txt && echo "OK" || echo "manquant"

Your progress is saved on this device. Create a free account to keep your progress on all your devices.