2
votes
1answer
123 views

How to unzip .tgz file from /media directory using terminal?

I've downloaded mongodb-linux-x86_64-2.6.3.tgz file using windows 7 and kept it on D:\Amra\Software\Developing Soft location. When I right click this .tgz file using Ubuntu and see property it shows ...
0
votes
2answers
75 views

How to extract this package archive

I am trying to extract a certain file in the downloads folder and instructions given to me are as follows: Type the following in terminal and it will be done tar -xvJf ...
0
votes
1answer
37 views

Tar Gzip Every n Files in a Directory

I have a folder with 7,491 files in it. I'd like to tar gzip these in batches of 100, e.g. first 100 files > archive1.tar.gz files 101-200 > archive2.tar.gz files 201-300 > archive3.tar.gz ...
3
votes
3answers
374 views

Open pdf in tar.gz without extracting

I have a tar.gz which have pdfs in it I want to open a specific pdf without extracting it Is this possible using terminal through some command (I know we can do it using GUI but I want to use ...
6
votes
3answers
1k views

What does tar's -p (preserve permissions) flag actually preserve?

What does the -p flag actually preserve when creating and extracting a tarball? Is it the rwx permissions it preserves? When I created a htdocs/ tarball owned by root, extracting it to my local ...
3
votes
1answer
55 views

what happens if i delete a file while tar is processing it?

I am attempting to backup my filesystem with the following command: tar -cvjf /fs.bz2 --exclude=/fs.bz2 --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys / This command has been ...
2
votes
0answers
28 views

tar delete progress not shown?

I was trying to use tar command , --delete option and met some problems. There are two things I don't understand: when using --verbose option with combination of --delete option, nothing shows as ...
0
votes
1answer
241 views

tar command can't find file or directory [closed]

I'm new user of Ubuntu 12.04, and I don't know what should I do. I had download tor-browser and in instruction it said I should use this command for extracting tar file: tar -xvJf ...
3
votes
1answer
59 views

Move GZ archives with specific content

After a restoration of my HDD with PhotoRec I have a folder with 36,500 GZ archives. Of those, around 200 are very important for me. Each of these archives contains exactly one TAR archive. These TAR ...
1
vote
1answer
1k views

my tar command line is not working it won't unzip files

when I try using tar -xvj [file name] then hit enter it just hangs and does not unzip file.. I've tried zipping just a really small text file and it zipped into a .tar.bz file then when I tried to ...
0
votes
1answer
42 views

tar inexplicably trying to open a non-existent directory

I was trying to set up a script to download and untar some sources in a build script, but for some maddening reason tar seems to have gone insane, where it constantly attempts to do something with ...
1
vote
2answers
516 views

How to quickly extract all kinds of archived files from command-line?

Many times I need to extract different kinds of archived files using commad-line. But not all the time I remember the exact command for any type of file archive. So, I have to waste time and search ...
11
votes
1answer
380 views

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 ...
2
votes
1answer
207 views

Cannot delete a tar.bz2 file from pendrive

I want to delete a tar.bz2 file from my pendrive. I tried shift+delete, but nothing happened. Then in terminal I tried sudo rm command, I got the following error - rm: cannot remove `avi.tar.bz2': ...
1
vote
1answer
4k views

How to download a .tar.gz file from a redirected link in terminal?

I want to download the file at http://www.snort.org/downloads/1806 as a .tar.gz file using terminal but the problem is that when I use: sudo wget http://www.snort.org/downloads/1806 It downloads a ...
0
votes
2answers
11k views

Error with 'tar' commad, “Cannot open: No such file or directory” [closed]

I am trying to connect my Xbox with my laptop using uShare. For that I am following exactly what I have to do according to Installation of uShare on Ubuntu documentation. Unfortunately, at step 3 ...
3
votes
3answers
3k views

Installing software without Ubuntu Software Center

I have a file downloaded from the Internet. To be specific I downloaded Code::Blocks from its official site. The file name is codeblocks.tar.bz2. If I don't have Internet connection and also ...
1
vote
1answer
268 views

Directly compress stdout

can someone tell me if is possible to directly compress stdout? I would like to do this in one step without creating temporary file files.txt... Example: cat file* > files.txt tar -czf files.tar ...
7
votes
2answers
343 views

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 ...
0
votes
1answer
1k views

Can't install tar.bz2 file due to “no such file or directory” error

I've been trying compile mdk3-v6 but I run into errors. Started off by trying sudo apt-get install that didn't work. Downloaded from another source and tried tar -xjf mdk3-v6.tar.bz2 Keep getting ...
9
votes
1answer
14k views

How do I extract a specific file from a tar archive?

Hi is possible to restore a single file from the .tar backup ? I dont want to restore total backup . i just want to restore one single file from the backup .
2
votes
0answers
257 views

How can I tweak this split-tar-gz-archive script?

I came across this shell script that can be used to split an entire directory across multiple compressed files. I am interested in making a minor tweak to this script. Lets say I have n GB of files ...
1
vote
1answer
13k views

tar -cvfz command results in error message unless I omit the hyphen before 'cvfz' [duplicate]

Possible Duplicate: sudo tar cvpzf exiting with failure due to previous error When I run the command tar -cvfz backup.tar.gz somedirectory I get the following sterr tar: Exiting with ...
1
vote
1answer
194 views

Is there any ncurses archiver interface available?

I am looking for a way to create archives on the commandline with some minimal ASCII interface. Could be for tar, zip or rar files, but should provide miniml ncurses (or other) "fake" graphical ...