![]() |
|
#1
|
||||
|
||||
|
How do you usually untar ? Say you saved a tar.gz to Desktop and now want to untar it to
another directory, what is your usual method and do you use the command line ? I know how with the command line but it's a bit cumbersome. ( I think most folks simply r/click extract and then proceed to move the extracted folder to where they want it).
__________________
|
|
#2
|
||||
|
||||
|
Quote:
![]()
__________________
One can't be too rich, too thin, or too secure |
|
#3
|
||||
|
||||
|
Quote:
Eg. [ocky@localhost General Help]$ tar -C /home/ocky/Desktop -xvzf "/home/ocky/Documents/General Help/rkhunter.tar.gz" rkhunter/ rkhunter/rkhunter SL6 warnings rkhunter/README.txt rkhunter/Lucid rkhunter warnings rkhunter/rkhunter warnings recd.txt rkhunter/rkhunter script.mht rkhunter/rkhunter_scan.sh rkhunter/rkhunter.mht rkhunter/rkhunter [ocky@localhost General Help]$ (for extracting rkhunter.tar.gz to Desktop) I didn't know this until recently i.e. was always stumped when trying to do it via the command line and thus noob depression set in. ![]()
__________________
|
|
#4
|
|||
|
|||
|
tar zxvf <archive> -C <dir>
I find this much more intuitive than the GUI. For gz, use xzvf. For bz2, use -xjvf. -v is optional. Cheers, Mrk
__________________
http://www.dedoimedo.com All your base are belong to us Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA |
|
#5
|
||||
|
||||
|
Quote:
~ Removed Off Topic Comments ~
__________________
Last edited by JRViejo : April 8th, 2012 at 11:26 PM. Reason: Off Topic Remarks Removed - JRViejo |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
Removed Off Topic Post.
__________________
JR "You don't have to win every argument. Agree to disagree." Regina Brett |
|
#8
|
||||
|
||||
|
Open archive with fileroller (rather than right click/extract) and the use extract option which brings a dialog, part of which allows you choose a destination folder.
If I happen to be in the command line I will extract my tarball from there. |
|
#9
|
||||
|
||||
|
Quote:
great stuff http://www.computerhope.com/unix/utar.htm http://www.thegeekstuff.com/2010/04/...mand-examples/
__________________
Scientific Linux 6.2, xubuntu 11.10 *2x, Linux mint 10, Linux mint 12, opensuse 11.4, windows vista, ubuntu 10.04 and windows xp |
|
#10
|
|||
|
|||
|
Despite some linux nerds protestations there are particular functions that are more quickly carried out in gui rather than the command line. IMO extracting archives is one of them. Therefore I right click and "extract to"
|
| « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|
|