LPIC-1 Exam 102 v5 (Linux Administrator) — Question 63
What output does the command seq 10 produce?
Answer options
- A. A continuous stream of numbers increasing in increments of 10 until the command is stopped.
- B. It creates no output because a second parameter is missing.
- C. The number 0 through 9 with one number per line.
- D. The number 10 to standard output.
- E. The numbers 1 through 10 with one number per line.
Correct answer: E
Explanation
The correct answer E is accurate because the seq command generates a sequence of numbers starting from 1 up to the specified number, which is 10 in this case. Option A is incorrect as seq does not produce a continuous stream with increments of 10, and option B is wrong since seq only requires one parameter to function correctly. Options C and D also misrepresent the output of the command.