Multiple choice technology operating systems

Which command is used to get the entire line using awk?

  1. $1
  2. $0
  3. $*
  4. $#
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In awk, $0 represents the entire input line, while $1, $2, etc. represent individual fields. Option B correctly identifies $0 as the way to access the complete line. Options A, C, and D are incorrect awk syntax for this purpose.