Look inside a gzipped MySQL backup file

Was cleaning up some old files on a server this week and saw a rather large compressed file, there was not a lot of room so I wanted to see inside to see what it was, to see if I could keep it.

For this I used the less command, so it was : 

less largefile.gz

Then I could see it was just a really old MySQL backup and I could delete it safely.  So if you ever have a large file, don't want to uncompress it to view it then perhaps just use less.

I am always interested in feedback so please feel free to add any comments, or you can mail me  here.  If you would like to submit a quick tip  with full credit and links back to your site then also feel free to contact me.

Related Posts Plugin for WordPress, Blogger...

How charged is your Apple Pencil?

mysql: [ERROR] unknown variable 'wait_timeout=128000'