Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #tar a directory
- tar -cvf projects.tar /usr/local/bin
- #extract all files
- tar -xf projects.tar
- #tar and compress a directory
- tar -czvf projects.tar.gz /usr/local/bin
- #list content
- tar -tvf projects.tar.gz
- #search for files
- tar -tvf projects.tar.gz --wildcards '*yt*'
- #extract a single file
- tar -zxvf <tar filename> <file you want to extract>
- tar -zxvf projects.tar.gz "usr/local/bin/ytplay"
- #extract multiple files with wildcards
- tar -zxvf projects.tar.gz --wildcards "*ytplay*"
Add Comment
Please, Sign In to add comment