Visit the LQ Articles and Editorials section
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, 11: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, 12:39 PM   #2
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
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, 02:37 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,641

Rep: Reputation: Disabled
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 04:21 AM.
1 members found this post helpful.
Old 03-17-2013, 01:42 AM   #4
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 2,647

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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
[SOLVED] tar -tf down.tar.How to avoid listing subfolders is down.tar e3399 Linux - Newbie 2 11-25-2010 10:28 PM
"Invalid tar magic" error msg. when I try to tar ldmud *.tar file in DSL pixxi451 Linux - Newbie 4 07-04-2010 09:32 AM
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 10 02-23-2008 06:40 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM

All times are GMT -5. The time now is 08:46 AM.

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