How to Get the First N Bytes of a File

There comes a time when you just need to take a little off the top of a file, see what you are working with. That is where knowing how to use a utility like head can help. Just running: $ head filename.txt Will get you Print the first 10 lines of each FILE to standard …