How do you sort by the 10th character in the 3rd column?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

How do you sort by the 10th character in the 3rd column?

Explanation:
Sorting by a specific character in a specific field uses sort’s key syntax -k field.character. The third column means the third field (separated by whitespace). Specifying the 10th character in that field is written as 3.10, which tells sort to start the key at the 10th character of the 3rd field. Since no end position is provided, the key extends from that position to the end of the line, effectively sorting by the 10th character (with the rest serving as tie-breakers if needed). The other options don’t target the 10th character in the 3rd field: they either start at a different character, or provide an invalid end position.

Sorting by a specific character in a specific field uses sort’s key syntax -k field.character. The third column means the third field (separated by whitespace). Specifying the 10th character in that field is written as 3.10, which tells sort to start the key at the 10th character of the 3rd field. Since no end position is provided, the key extends from that position to the end of the line, effectively sorting by the 10th character (with the rest serving as tie-breakers if needed). The other options don’t target the 10th character in the 3rd field: they either start at a different character, or provide an invalid end position.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy