What command is used to sort the lines of data in a file in alphabetical order? A. sort – r B. st C. sh D. sort E. None of the above

sort - r
st
sh
sort E. None of the above

The correct answer is: D. sort

The sort command is used to sort the lines of data in a file in alphabetical order. It can also be used to sort the lines of data in a file in reverse alphabetical order, or by any other order that you specify.

The sort command has a number of options that can be used to control how the data is sorted. For example, the -r option can be used to sort the data in reverse alphabetical order, and the -u option can be used to remove duplicate lines from the output.

To sort the lines of data in a file in alphabetical order, you would use the following command:

sort file

To sort the lines of data in a file in reverse alphabetical order, you would use the following command:

sort -r file

To remove duplicate lines from the output, you would use the following command:

sort -u file

The st command is a shell builtin command that is used to start a new shell. The sh command is a shell interpreter that is used to execute shell scripts.

Neither of these commands are used to sort the lines of data in a file.