LFCS Exam QuestionsBrowse all questions from this exam

LFCS Exam - Question 120


What output will the following command produce?

seq 1 5 20

Show Answer
Correct Answer:

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

4 comments
Sign in to comment
kuma69
May 13, 2020

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

Borbz
Sep 2, 2021

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

stef_88
Sep 26, 2020

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

selemon
Sep 9, 2020

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

EliteAllen
Jul 4, 2024

$ seq 1 5 20 1 6 11 16