The correct answer is A. SORT filename.
The SORT command is used to sort lines of text in a file. The syntax for the SORT command is:
SORT [options] filename
The options for the SORT command are:
- -b: Sorts lines by byte value.
- -c: Sorts lines by character value.
- -d: Sorts lines by decimal value.
- -f: Sorts lines by field.
- -k: Sorts lines by key.
- -n: Sorts lines in numeric order.
- -r: Sorts lines in reverse order.
- -t: Sorts lines by tab character.
- -u: Sorts lines by unique values.
The filename is the name of the file that you want to sort.
For example, to sort the file “myfile.txt” in ascending order, you would use the following command:
SORT myfile.txt
To sort the file “myfile.txt” in descending order, you would use the following command:
SORT -r myfile.txt
To sort the file “myfile.txt” by field, you would use the following command:
SORT -f 2 myfile.txt
To sort the file “myfile.txt” by key, you would use the following command:
SORT -k 1 myfile.txt
To sort the file “myfile.txt” in numeric order, you would
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"> Subscribe on YouTube