MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command is used to arrange lines of text alphabetically or numerically?
A
sort
B
psort
C
asort
D
series
Explanation: 

Detailed explanation-1: -The sort command arranges data alphabetically or numerically in ascending or descending order.

Detailed explanation-2: -The sort command sorts the contents of a file, in numeric or alphabetic order, and prints the results to standard output (usually the terminal screen).

Detailed explanation-3: -The sort command is a command line utility for sorting lines of text files. It supports sorting alphabetically, in reverse order, by number, by month and can also remove duplicates.

Detailed explanation-4: -The sort command is a tool for sorting file contents and printing the result in standard output.

Detailed explanation-5: -Sort a File Numerically To sort a file containing numeric data, use the-n flag with the command. By default, sort will arrange the data in ascending order. If you want to sort in descending order, reverse the arrangement using the-r option along with the-n flag in the command.

There is 1 question to complete.