Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


  Search this Thread
Old 03-16-2013, 10:57 AM   #1
LQ Newbie
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
How to undo a tar

Recently while trying to install a tar file I tried something like the foll command:
tar cvf apache-ant-1.9.0-bin.tar.gz /opt

Now I have all the file space allocated to /opt directory completely filled up.

How can I untar or free my space.
Old 03-16-2013, 11:39 AM   #2
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
You can move the files to where there is more space or just delete the files, to move the files use the command mv, to delete use the command rm.

Old 03-16-2013, 01:37 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,170

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
if you have a desktop GUI installed ( Gnome2,KDE4,xfce,lxde,...)
just r-click it ( just the same way you do on a windows or apple computer)
and extract the archive from the options on the "r-click" menu

if this is a TEXT ONLY install - no graphics - terminal only ( NO graphics -- as in you can not use firefox ) , or a text only login to a remote machine

that file is a tar.gz
a "g" zipped TAR archive -- "gz"
-- very basic commands --
gzip -d apache-ant-1.9.0-bin.tar.gz
tar -x apache-ant-1.9.0-bin.tar
for more options read
gzip --help
--- and ---
man gzip
-- and --
tar --help
--- and ---
man tar

Last edited by John VV; 03-17-2013 at 03:21 AM.
1 members found this post helpful.
Old 03-17-2013, 12:42 AM   #4
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,240

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Undoing tar is not possible, but deleting the files is quite possible.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
[SOLVED] tar -tf down.tar.How to avoid listing subfolders is down.tar e3399 Linux - Newbie 2 11-25-2010 09:28 PM
"Invalid tar magic" error msg. when I try to tar ldmud *.tar file in DSL pixxi451 Linux - Newbie 4 07-04-2010 08:32 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration