Compress and Extract files using SSH

Sometimes we need handy lines to be able to compress or extract files in the command line using different extensions, here are some useful lines to achieve it: Compress Files Depending on the file extension and compression technology you have to use a different command line tool. The most commonly used however is the tar.gz format. An example of creating a file with this extension is: tar -zcf filename.tar.gz foldername/ You can also create zip files using:

Continue reading