nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #279

LFCS Question #279: Real Exam Question with Answer & Explanation

The correct answer is A: 1. The seq 1 5 20 command generates a sequence of numbers starting at 1, incrementing by 5, and stopping before exceeding 20.

Submitted by satoshi_tk· Apr 18, 2026Essential Commands

Question

Which of the following outputs will the below command produce? seq 1 5 20

Options

  • A1
  • B1
  • C1
  • D2
  • E5

Explanation

The seq 1 5 20 command generates a sequence of numbers starting at 1, incrementing by 5, and stopping before exceeding 20.

Common mistakes.

  • B. The output includes more numbers than just '1', but '1' is the correct starting point.
  • C. The output includes more numbers than just '1', but '1' is the correct starting point.
  • D. The number 2 is not generated by this command; the sequence starts at 1 and increments by 5.
  • E. The number 5 is not generated by this command; the sequence starts at 1 and increments by 5.

Concept tested. seq command usage

Reference. https://man7.org/linux/man-pages/man1/seq.1.html

Topics

#seq command#sequence generation#shell utilities#command line basics

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions