How do I read the first line of a file using cat? October 3, 2022 by Tarik You don’t need cat. head -1 file will work fine.