Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-16-2012, 05:51 PM   #16
Registered: Oct 2009
Posts: 34

Rep: Reputation: 0
Nice solution, got it to undo unzip as well

Pardon me for pulling up this old thread. This is still a top result searching 'undo tar'.

I successfully used the command construct posted by Infinity0. Life saver; I had over 3GB of files in my home directory while playing with a NWN install.

I also successfully tested and applied a modified version to undo unzip replacing the first part of the sequence with unzip -t

Be aware that these can take a significant amount of processing power. If you have a number of files to do, consider combining them on one line with a semicolon as I have it below so that they execute in succession.

unzip -t /media/NW_DIAMOND/ | sort -r | xargs rm -f 2>/dev/null;unzip -t /media/NW_DIAMOND/ | sort -r | xargs rmdir 2>/dev/null

Thanks community, thanks all.

Be real, be sober.


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 to extract a "tar.bz2" file? deWin Linux - Newbie 14 08-09-2016 08:49 AM
"You don't have the right permissions to extract archives in the folder " please help redhatman13 Linux - Software 18 10-15-2008 05:52 AM
Dont get "extract here" choice on context menu eroica Mandriva 4 12-20-2005 01:38 PM
Unable to extract "tar.gz" file - please try for me Riddick Linux - Software 6 08-27-2005 04:57 PM
"how do I extract a number from a text file using shell command?" sdandeker Linux - Networking 3 02-12-2004 08:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:34 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