QUESTION 1
Copy file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator.
Will the following command sort the file on the group name field?
sort -t! -k3 sortfile
Yes
No
QUESTION 2
Copy the file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator.
The following command will reverse sort the the file numerically on the uid.
sort -t! -k2rn sortfile
True
False
QUESTION 3
Create a sort command string that will numerically sort the file called /etc/group on the GID field (3rd field).
Complete the command string below to meet the above statement.
sort -t: -### /etc/group
Replace the ## with the correct characters to complete the commmand string.
Provide ONLY the characters that replace the ## in your answer.
QUESTION 4
cd to my home directory.
Execute the command: ls -l | sort -k5n
This command will sort the ouput of the ls command by the file size and list the largest file last.
True
False