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

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

The correct answer is: A. 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 sh command is the Bourne shell. It is a command-line interpreter that allows you to run programs and scripts.

The st command is the stat command. It is used to get information about files and directories.

The sort -r command is used to sort the lines of data in a file in reverse alphabetical order.

Therefore, the correct answer is: A. sort