Moderate

What command is used to sort the lines of data in a file in alphabetical order ?

Correct answer: D. sort

  • A. sort - r
  • B. st
  • C. sh
  • D. sort

Explanation

`sort` orders lines lexicographically, which normally produces alphabetical order for ordinary text. The `-r` option reverses the order rather than giving the standard alphabetical result.

Last updated

Practise Software Development Lifecycle

423 free Software Development Lifecycle MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions