Multiple choice technology operating systems

What is the output of the following command? $ awk '{print "'\''"}' /etc/passwd|head -1

  1. a single quote

  2. a double quote

  3. syntax error

  4. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The awk command uses complex quoting to print a single quote. The outer single quotes contain double-escaped single quotes, resulting in a literal single quote being printed for each line in /etc/passwd. The head -1 shows the first result.