LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2013, 08:33 AM   #1
beliya
LQ Newbie
 
Registered: Feb 2011
Posts: 20

Rep: Reputation: 0
Question p7zip extracts files without directories


Hello.

I have a problem with p7zip. I want to extract one archive that I made earlier and use the following command for the purpose:

7z e -oEXTRACT archive.7z

The extraction process start and archive's content is extracted to the directory named EXTRACT. The problem is that 7z is extracting only the files and not the directories they are in.
This causes big issues as I've got some files with identical names and extensions located in directories with different names. When extracting the archive, the program asks what to do (replace or rename), and I just can't figure out how to extract both the files and the directories.

Thanks in advance for helping me out with this.

Last edited by beliya; 10-06-2013 at 08:36 AM.
 
Old 10-06-2013, 09:04 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Have you tried the x command instead of e?
 
Old 10-06-2013, 10:23 AM   #3
beliya
LQ Newbie
 
Registered: Feb 2011
Posts: 20

Original Poster
Rep: Reputation: 0
Well.. I feel silly now. Thanks mate. I must have overlooked that in the manual.
It extracts fine now with the exception of some sub errors (around 200). I don't know why is that but everything seems to be extracted properly.
 
  


Reply



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 store files/directories in different different directories!! anishkumarv Linux - Newbie 7 03-23-2011 05:26 PM
Creating a .deb file that extracts files to pre-determined directories Jeff91 Linux - Software 1 11-17-2010 12:02 PM
Copying files and sub-directories of a directory except the directories named ".abc" sri1025 Linux - General 2 08-24-2010 08:53 AM
ftp video files - cron job extracts video info & posts to web page? muskiediver Linux - General 6 11-23-2006 08:41 AM
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:00 PM.

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