-   Linux - Newbie (
-   -   moving a file from a cd-rom to root dir (

stupidloser 08-06-2004 04:24 AM

[solved]moving a file from a cd-rom to root dir
n/m...i just figured it out :)

Thanks anyhow

Poetics 08-06-2004 04:32 AM

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

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

stupidloser 08-06-2004 04:35 AM

werd! That's was basically what I came up with (tho you explained it way better). Credit to you man....thanks :)

orangeh 08-06-2004 06:18 AM

hehe im glad you figured it out but i havent :o

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 :(

ReefShark 08-06-2004 08:04 AM

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".

All times are GMT -5. The time now is 03:44 PM.