Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux command: tar
(view source)
Revision as of 21:16, 14 April 2019
213 bytes added
,
21:16, 14 April 2019
m
→Extraction
Line 44:
Line 44:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
tar -jtvf file.tar.bz2
tar -jtvf file.tar.bz2
+
</syntaxhighlight>
+
+
=== Extract all files in subdirectories ===
+
<syntaxhighlight lang="bash">
+
DEST=<Destination Folder>
+
SRC=<Src Folder>
+
find $SRC -name "*.tar.gz" -or -name "*.tgz" -exec tar xzvvf -C $DEST {} \;
</syntaxhighlight>Note: .gz files are decompressed with <nowiki>gunzip file.gz</nowiki>
</syntaxhighlight>Note: .gz files are decompressed with <nowiki>gunzip file.gz</nowiki>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version