LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 06-03-2005, 11:27 PM   #1
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
unable to untar a directory


I'm trying to untar a directory. specifically, the tarred directory is the /proc/bus/usb directory.

the command line tells me that I need to "specify one of the '-Acdrtux' options". I've looked in the man pages and google, but I can't seem to get anywhere.

I have tried
"tar -xvf"
"tar -C -xvf"
"tar -CDS -xvf"
and so on...

could someone teach me how this is done? The tar file is named usb2_tar
 
Old 06-03-2005, 11:54 PM   #2
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
run

file usb2_tar post what it says im thinking its compressed and the file name is not in .tar.bz2 or .tar.gz. you can name a file anything in linux it doesn't use extensions like windows
 
Old 06-04-2005, 12:12 AM   #3
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
# file usb2_tar
Code:
usb2_tar: POSIX tar archive
 
Old 06-04-2005, 01:38 AM   #4
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
I see now. All I had to do was RENAME the file and replace the _underscore with a .period
 
Old 06-04-2005, 01:59 AM   #5
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
"cannot create directory: ...no such file or directory"

I'm the root user, but for somereason, I am not allowed to make the directory /proc/bus/usb.

I have a copy of the directory (I e-mailed to myself) in my /home direcory. If I try copying or moving it to /proc/bus/usb, I'm told that I cannot create the directory because it doesn't exist.

that makes no sense to me.

could someone teach me how to get around this.

-I currently have no "usb" directory in /proc/bus
-There is a full "usb" direcory in my /home directory, named "usb2"
-I want to copy or move "usb2" to "/proc/bus/usb"
-I have tried cp -rpf usb2 /proc/bus/usb
 
Old 06-04-2005, 02:18 AM   #6
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
/proc does not have write permission even under root...
dr-xr-xr-x 86 root root 0 Jun 3 12:11 proc/

KC
 
Old 06-04-2005, 02:22 AM   #7
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
oh darn..

Last edited by trickykid; 06-04-2005 at 11:08 AM.
 
Old 06-04-2005, 11:08 AM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
I also merged your threads together since your discussing and asking about /proc directory.. so the discussion is all in one place and not scattered about.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 02:19 AM
Useful article: "Linux File & Directory Permission Mistakes" sundialsvcs Linux - Security 1 08-15-2005 12:50 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 07:05 AM
open webmail error "Can't create your user directory! 7/mail (No such file or directo ko_zlynn Linux - Networking 1 12-21-2003 05:00 AM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 07:19 PM


All times are GMT -5. The time now is 11:50 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration