LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-11-2002, 06:03 PM   #1
duncan36
LQ Newbie
 
Registered: Jan 2002
Posts: 6

Rep: Reputation: 0
How do I direct Gzipped files from a floppy to a folder?


The help function gives no indication and its obviously pretty different than how its done in dos.

So I do tar -zxvf gxp20.tar.gz

But how do I send it to a location the most logical method doesnt work:

tar -zxvf gxp20.tar.gz /usr/tmp

nada, how do you do it? Its got to be fairly straightforward right?

 
Old 02-11-2002, 07:31 PM   #2
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
If the floppy is at /dev/fd0, try this:

cd /usr/tmp
tar -zxvf /dev/fd0/gxp20.tar.gz

tar puts files into the current working directory.
 
Old 02-11-2002, 08:35 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I don't know if it will allow you to extract directly from a block device, which is /dev/fd0, if you're still unable to extract files from floppy, then mount it first
mount /dev/fd0 /mnt/floppy
of course you should have /mnt/floppy folder on your system, if not then look at /etc/fstab file where is the mount point for floppy, and substitute /mnt/foppy with appropriate entry from your /etc/fstab. And then
cd /directory/where/you/want/to/extract
tar xvfz /mnt/floppy/file.tar.gz

Last edited by neo77777; 02-11-2002 at 08:37 PM.
 
Old 02-11-2002, 10:32 PM   #4
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Ok, so I forgot the mount. My bad...
 
  


Reply


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
gzipped log backups: clean up phats_O Debian 4 05-14-2005 01:39 AM
Apache/php4 - disabling direct viewing of text files Paiway Linux - Networking 1 02-21-2005 11:09 PM
Recover deleted files on CDUDF (Direct CD) Vincent_Vega Linux - General 2 12-30-2004 12:08 AM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 06:52 AM
Best way to ALOT of files in a direct to other direct? packman Linux - General 2 10-21-2002 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration