Page tree
Skip to end of metadata
Go to start of metadata

Tail Command Examples

  1. tail filename
    • This would show you the last 10 lines of the file

  2. tail -f filename
    • This would show you the last 10 lines of the file and as new lines come in it would show you the new lines in the file in realtime

  3. tail -n 1000 filename
    • This would show you the last 1000 lines of the file

  4. tail -n 1000 filename > filename2.pcap
    • This would take the last 1000 lines of filename and put them into a new file called filename2.pcap
  • No labels