Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-06-2004, 04:24 AM   #1
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 04:32 AM.
Old 08-06-2004, 04:32 AM   #2
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, 04:35 AM   #3
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, 06:18 AM   #4
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 06:24 AM.
Old 08-06-2004, 08:04 AM   #5
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".


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

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration