Text filters · Question 6 of 12
Which command prints only the first field of /etc/passwd, that is, the user names?
1 answer is correct. Easy Created with AI
Show answer
Answer
- C cut -d: -f1 /etc/passwd
Explanation
-d sets the delimiter, -f the field number. cut -c1 would only cut out the first character of each line.