Multiple choice technology operating systems

Command to view the beginning of multiple files ?

  1. top|more

  2. begin|more

  3. head|multiple

  4. head|more

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

The head command displays the beginning (first lines by default) of files. When viewing multiple files, head can process them sequentially (e.g., 'head file1 file2 file3'). Piping to more (head|more) allows pagination when the combined output is lengthy, enabling controlled viewing through multiple files' contents. The pipe to more provides scrollable output.

AI explanation

The head command prints the first lines of one or more files, and when it's piped into more, output is shown one screen at a time — a handy way to preview the start of multiple files without it scrolling past. top and begin aren't real commands for this purpose, and multiple isn't a valid pager utility.