Questions tagged [extract]

Extracting is a term used in archive-management which means uncompressing the files and folders from the compressed format.

143 questions
1050
votes
8 answers

What command do I need to unzip/extract a .tar.gz file?

I received a huge .tar.gz file from a client that contains about 800 mb of image files (when uncompressed.) Our hosting company's ftp is seriously slow, so extracting all the files locally and sending them up via ftp isn't practical. I was able to…
EmmyS
  • 14,720
  • 13
  • 39
  • 51
132
votes
4 answers

Extract part of a video with a one-line command

If I have a video, normally avi, but could be any, and I want to create another one in the same format but just a part, the position i seconds to f seconds into the video, what is the one-line command to do this?
Strapakowsky
  • 11,194
  • 15
  • 35
  • 39
68
votes
2 answers

How do I extract a password protected .7z file?

Can someone tell me how can I extract a password protected .7z file in Ubuntu server? (I know the password, I just need a program to do so and an example of how to use said program...)
Wolfy
  • 7,560
  • 12
  • 34
  • 42
42
votes
4 answers

How do I extract a RPM file?

I've RPM file of which I want to examine its file contents. For .deb packages, I can use dpkg -x file.deb to extract it. What is the equivalent command for a .rpm file? I'm looking for a command-line application.
Lekensteyn
  • 166,455
  • 64
  • 304
  • 395
41
votes
2 answers

How do I gunzip all files recursively in a target directory?

I'd like to know what is the command to use to gunzip all files in a target directory recursively? I tried to use the unzip command but it didn't work. I tried the command from Unzip all zip files in a target folder?
user2028856
  • 1,081
  • 4
  • 13
  • 16
39
votes
1 answer

Combining .rar extraction

I've recently downloaded 7 .rar files which needs to get extracted and to output only one file. How do I to make them extract only one output and to do not extract 7 files, please? Thanks in advance!
Amurayu Yukiko
  • 469
  • 1
  • 4
  • 7
36
votes
8 answers

How can I extract audio track from video file and save it as MP3?

What is the easiest way to extract an audio track from a video file and save it as an MP3 file?
Robert Zelník
  • 841
  • 1
  • 9
  • 11
33
votes
9 answers

How to extract and join files xxx.zip, xxx.z01 and xxx.z02

I have these three files: 1.zip, 1.z01 and 1.z02. I would like to extract and join them into a single file, by right clicking 1.zip and selecting Extract Here. But then there comes an error: 7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov …
Tim
  • 23,549
  • 61
  • 145
  • 239
24
votes
1 answer

Compressing a folder (tar) without its containing directory in the folder name

I am trying to compress a folder with the tar command. When I am trying to compress it, it works fine. The problem is with the file name. Source path: /data/file/ Destination path: /data/repo/temp/file.tar.gz tar zcvf $srcpath $destinationpath I…
Seetha Raman
  • 255
  • 1
  • 2
  • 6
15
votes
5 answers

How would I extract a .img file

I am trying to extract a .img file (hard disk image with with Chromium OS on it). I have not been able to find any way to do this other than mounting it but that is not usable because it shows up as multiple drives so I cannot repack it.
TurboWafflz
  • 171
  • 1
  • 1
  • 5
11
votes
2 answers

Extracting zip file fails giving error need PK compat. v5.1

I have a password protected zip file which was created in Windows. When I am trying to extract the same file under Ubuntu I get the error need PK compat. v5.1 (can do v4.6). Any idea how to proceed?
topless
  • 7,005
  • 9
  • 36
  • 43
11
votes
1 answer

Restoring a Unix Tar File with Ubuntu

I have all of these old DDS3 and DDS4 tapes that I need to restore the files off of. The only information that I really know is that they were put on the tapes about 10 to 20 years ago using Digital Unix. They are in a Tar file format. I have…
tofer41
  • 111
  • 3
11
votes
3 answers

tar: A lone zero block at 343398

while trying to extract a tar.gz file in ubuntu terminal an error happened int he last sentence here it is : tar: A lone zero block at 343398 what is the solution for this problem???
wael
  • 111
  • 1
  • 1
  • 3
9
votes
1 answer

initrd.lz lzma extract error

i am trying to extract the initrd.lz from the casper folder lzma -dc -S .lz initrd.lz | cpio -imvd --no-absolute-filenames and i get this message: lzma: Decoder error cpio: premature end of archive i am using ubuntu 10.10, is there another command…
aki
  • 1,994
  • 5
  • 21
  • 34
9
votes
2 answers

Extract only the contents of an archived directory from within an archive

The Situation I am extracting a CMS from drupal-7.15.tar.gz to /var/www. When extracted normally (with tar -xvzf filename.tar.gz) the files end up in /var/www/drupal-7.15/ The Goal I want the contents from the archived drupal-7.15/ directory to…
bitfed
  • 213
  • 2
  • 7
1
2 3
9 10