How to display last bytes of a file?

0102

To display the last bytes of a file, you can use the tail command with the -c option. Here’s the syntax:

tail -c N filename

Replace N with the number of bytes you want to display and filename with the name of your file.

For example, to display the last 10 bytes of a file named example.txt, you would use:

tail -c 10 example.txt

This command will show the last 10 bytes of the specified file.

0 Comments

no data
Be the first to share your comment!