Ubuntu / Linux File compression and encryption

gpg -c file – encrypt file
gpg file.gpg – Decrypt file.gpg
tar -cf file.tar file1 file2 – Create file.tar from file1 and file2
tar -xf file.tar – Extract all from file.tar
tar -czf file.tar.gz file1 file2 – Create file.tar.gz from file1 file2
tar -xzf file.tar.gz – Extract file.tar.gz with Gzip
tar -cjf file.tar.bz2 file1 file2 – Create file.tar.bz2 from file1 file2
tar -xjf file.tar.bz2 – Extract all from file.tar.bz2
gzip file1 – Compress file1 to file1.gz
gzip -d file1.gz – Decompress file file1.gz

7100cookie-checkUbuntu / Linux File compression and encryptionUbuntu / Linux File compression and encryption

Related posts

Leave a Comment