Created
March 10, 2023 17:18
-
-
Save spensireli/801ef8ced46a394a417ee1504d38c596 to your computer and use it in GitHub Desktop.
Tar and Move Directory in One Line
This file contains 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
mkdir /target/directory | |
cd /source/directory | |
tar -cvf - . | (cd /target/directory && tar xvf -) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment