tar contents of current folder 1

tar contents of current folder

// go one dir up and tar your folder instead.

cd ..
tar -czf workspace.tar.gz yourFolder

Here is what the above code is Doing:
1. cd .. – change directory to the parent directory
2. tar -czf workspace.tar.gz yourFolder – create a tar.gz file with the contents of yourFolder

Similar Posts