How to display the last 10 lines?

0136

To display the last 10 lines of a file in Bash, you can use the tail command. Here’s how you can do it:

tail -n 10 500-worst-passwords.txt
  • tail: This command is used to display the end of a file.
  • -n 10: This option specifies that you want to display the last 10 lines of the file.
  • 500-worst-passwords.txt: This is the name of the file from which you want to read the last 10 lines.

Running this command will show you the last 10 lines of the specified file. If you have any more questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!