FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

This is a nice reference for common tar commands - including working with tar.gz files. · GitHub

Instantly share code, notes, and snippets.

Created January 28, 2011 21:39
Show Gist options
  • Select an option

    Clone this repository at <script src="https://gist.github.com/allthingscode/801026.js"></script>
  • Save allthingscode/801026 to your computer and use it in GitHub Desktop.

Select an option

Clone this repository at <script src="https://gist.github.com/allthingscode/801026.js"></script>
Save allthingscode/801026 to your computer and use it in GitHub Desktop.
This is a nice reference for common tar commands - including working with tar.gz files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
#!/bin/bash
#
# Create/Upack Tar File
tar -cvf dir.tar dir/
tar -xvf dir.tar
# Create/Uncompress Tar.gz File
tar -cvzf dirs.tar.gz ./dir1 ./dir2
tar -xzf dirs.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Back | FazBrowse Home | New Git URL