How To Tar A Directory In Linux With A Shell Command
Posted On Fri Dec 26, 2008 By wallpaperama In Linux Forums And Topics Discussions For Wallpaper Websites Running On Linux Servers Forums
tar -pczf www-2008-oct-13.tar.gz www/
lets say i want to compress the /var/www directory this is what i would do, i would cd to the /var directory:
cd /var
then i can compress the www/ direcotry and im going to call it backup.tar.gz
tar -pczf backup.tar.gz www/
how how do i untar it? once i have tar it, i can untar it with this command:
tar xvfz backup.tar.gz
hope this helps
ashwin2011 Mon May 21, 2012
wow if i had to back this directory lolz..
nice command..
nice command..
Typonazi Thu Feb 02, 2012
"then i can compress the www/ direcotry and im going to call it backup.tar.gz "
directory
Feel free to delete this message after correction.
directory
Feel free to delete this message after correction.
wally Sat Nov 12, 2011
Very usefull commands!!!!
Thanks a lot man!!!
Thanks a lot man!!!
Warsi Sun Oct 16, 2011
Excellent work. I was looking for this command. Its really helpful. cheers.
someone Tue Aug 23, 2011
Tamo: you din't die with that flake huh ? LoL
doodle Fri Mar 25, 2011
cheers moite
Dj400 Sun Feb 06, 2011
Coool! I love you ;) ♥
Rajgopal Tue Aug 17, 2010
I have forgotten "p" I got it Thanks.
I suggest all the users to add "v" so that it will display what it is doing.
Example: tar -pczvf example.tar.gz /example
I suggest all the users to add "v" so that it will display what it is doing.
Example: tar -pczvf example.tar.gz /example
asaminew Mon Jul 05, 2010
thanks a lot
very helpful command
byyyyyyyyyyyyyyy
very helpful command
byyyyyyyyyyyyyyy
sonali Sun Apr 11, 2010
Thanks a lot
byeeeeeeeeeeeeeeeeeeeeeee
byeeeeeeeeeeeeeeeeeeeeeee
crispee Fri Mar 19, 2010
LOL - at - Tamo's comment, nearly fell off my chair.
Navina Thu Jan 07, 2010
superb!!!!!!!
Ankur Sat Aug 01, 2009
the above commands proved to be very helpful
Related Content
Information
Forums »
Linux Forums And Topics Discussions For Wallpaper Websites Running On Linux Servers »
How To Tar A Directory In Linux With A Shell Command
Linux Forums And Topics Discussions For Wallpaper Websites Running On Linux Servers »
How To Tar A Directory In Linux With A Shell Command
Title: How To Tar A Directory In Linux With A Shell Command
Description: How To Tar A Directory In Linux With A Shell Command
Tags: how ,to ,tar ,a ,directory ,in ,linux ,with ,a ,shell ,command
Info: This Post Has Been Viewed 0 Times Since
Date: Fri Dec 26, 2008
Author wallpaperama Received 13 Replies #3046
Date: Fri Dec 26, 2008
Author wallpaperama Received 13 Replies #3046
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5