By kimot, 20 January, 2023 If you want to know how many lines does the text file have. You can use this commands. wc -l filename.txtorcat -n filename.txt