Exam LFCS All QuestionsBrowse all questions from this exam
Question 120

What output will the following command produce?

seq 1 5 20

    Correct Answer: A

    The command 'seq 1 5 20' generates a sequence of numbers starting from 1, incrementing by 5, and stopping before surpassing 20. Therefore, the output would be 1, 6, 11, and 16, but none of the provided options correctly match this output.

Discussion
stef_88Option: A

xxx@Ubuntu-VirtualBox:~$ seq 1 5 20 1 6 11 16

kuma69

output is 1 6 11 16 - none of these answers!

Borbz

the output will be vertical like Stef_88 commented. for the output to be in row, use the parameter seq -s " " 1 5 20

EliteAllenOption: A

$ seq 1 5 20 1 6 11 16

selemonOption: B

what is the exactly answer b/c A, B and C are the same its 1