How to display the first word of each line in my file using the linux commands? November 30, 2023 by Tarik You can use awk: awk '{print $1}' your_file This will “print” the first column ($1) in your_file.