How do I get the last 50 lines in Linux?
Answer
head -15 /etc/passwd
To look at the last few lines of a file, use
the tail command
. tail works the same way as head: type tail and the filename to see the last 10 lines of that file, or type tail -number filename to see the last number lines of the file.
Answer
head -15 /etc/passwd
To look at the last few lines of a file, use
the tail command
. tail works the same way as head: type tail and the filename to see the last 10 lines of that file, or type tail -number filename to see the last number lines of the file.