We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compress
timestamp=`date +%Y-%m-%d` tar -zcvf archive.$timestamp.tar.gz myFolder
tar -zcvf data.tgz *.doc tar -zcvf pics.tar.gz *.jpg *.png tar -jcvf data.tbz2 *.doc ls -l
gzip mydata.doc gzip *.jpg ls -l
bzip2 mydata.doc bzip2 *.jpg ls -l
zip mydata.zip mydata.doc zip data.zip *.doc ls -l
Decompress
tar -zxvf data.tgz tar -zxvf pics.tar.gz *.jpg tar -jxvf data.tbz2
gzip -d mydata.doc.gz gunzip mydata.doc.gz
bzip2 -d mydata.doc.bz2 gunzip mydata.doc.bz2
unzip file.zip unzip data.zip resume.doc
Links
Bash Zip CheatSheet
The text was updated successfully, but these errors were encountered:
Not included for now, in order to keep things simple. Will reconsider if there are more requests. Thanks!
Sorry, something went wrong.
No branches or pull requests
Examples
Compress
gzip mydata.doc gzip *.jpg ls -l
bzip2 mydata.doc bzip2 *.jpg ls -l
zip mydata.zip mydata.doc zip data.zip *.doc ls -l
Decompress
tar -zxvf data.tgz tar -zxvf pics.tar.gz *.jpg tar -jxvf data.tbz2
Links
Bash Zip CheatSheet
The text was updated successfully, but these errors were encountered: