LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-06-2004, 05:24 AM   #1
stupidloser
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Rep: Reputation: 0
[solved]moving a file from a cd-rom to root dir


n/m...i just figured it out

Thanks anyhow

Last edited by stupidloser; 08-06-2004 at 05:32 AM.
 
Old 08-06-2004, 05:32 AM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Technically, you can't "move" any file from a CD (unless it's a CD-RW... ).

You can either navigate to the source or target directory to copy a file.

From source directory:
cd /path/to/file/to/copy
cp filename /path/to/destination

From destination directory:
cd /path/to/destination
cp /path/to/file/filename .

And do you mean moving from one directory to another, or from/to users' home directories? The tilde "~" represents the current user's home directory. For root, this is the /root directory. For a user, it's the /home/user directory
 
Old 08-06-2004, 05:35 AM   #3
stupidloser
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
werd! That's was basically what I came up with (tho you explained it way better). Credit to you man....thanks
 
Old 08-06-2004, 07:18 AM   #4
orangeh
LQ Newbie
 
Registered: Aug 2004
Distribution: Deli Linux
Posts: 18

Rep: Reputation: 0
hehe im glad you figured it out but i havent

Im trying to move a file from cdrom to my home directory (which i assume is the standard place to stick stuff)

i went into the cdrom and typed

cp filename ~

and it said "cp: cannot create regular file '/home/jason/filename': Permission denied"

I did "su" and typed the same thing and it went into my root directory instead of in the directory of the user i was logged in as. Anyone know why I dont have permission? Thanks for any help

edit: i cant do anything with my username! I tried to untar the file and it said cannot create file no directory exists or something like that. I then did su and put in my root pw and it did it with no problems

Last edited by orangeh; 08-06-2004 at 07:24 AM.
 
Old 08-06-2004, 09:04 AM   #5
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
You might want to check the permissions of your homedir, and perhaps what group your user is in.
On a side note, I would always "su -" instead of "su".
 
  


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
checking for dir then moving on rharris72 Programming 2 11-22-2005 03:31 PM
What happens when root dir fills up? leiavoia Debian 5 11-14-2004 08:14 PM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 11:31 AM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 04:06 PM
WHY DOES /dev/cdrom KEEP CHANGING?? CD ROM DRIVE DEVICE KEEPS MOVING?? falcon56215 Linux - General 0 01-23-2002 03:57 PM


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