How to get the last line of a file using cat command April 7, 2023 by Tarik Don’t use cat. tail was meant for this usecase exactly: $ tail -1 ./test.properties