Extract portions of each line.
Section: Viewing and Text Basics
Select fields from lines
bash
bash
cut -d: -f1 /etc/passwdExplanation
A staple for colon-, comma-, or tab-delimited data.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Viewing and Text Basics