LPIC-1 Exam 102 (Linux Administrator) — Question 1
What output will the following command produce?
seq 1 5 20
Answer options
- A. 1
- B. 1
- C. 1
- D. 2
- E. 5
Correct answer: A
Explanation
The command seq 1 5 20 generates a sequence of numbers starting from 1, incrementing by 5, and stopping once it reaches or exceeds 20. Therefore, the only output produced is 1 before it exceeds the limit, making option A correct. Options B, C, D, and E do not represent the output of this command.