LinuxQuestions.org
Help answer threads with 0 replies.
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 09-29-2006, 08:54 PM   #1
JustinMs66
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Copy File


i'm in this directory:

/home/cgi/php/bob.txt

and i need to copy bob.txt into:

/home/justin/www/

so like how do i make a copy command that puts it in that directory?
 
Old 09-29-2006, 08:56 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Code:
cp /home/cgi/php/bob.txt /home/justing/www/
If you man cp you'll see something like command usage cp [target] [destination]
 
Old 09-29-2006, 09:14 PM   #3
JustinMs66
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
ok cool. that worked. but it won't let me overwrite the file
it says "Permission Denied".
and i tried "chmod 777 bob.txt" but it won't even let me do THAT!

help!???
 
Old 09-29-2006, 11:14 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Justin

You apparently do not have permission to change that file. You may have to be root to change that file. Generally files that are in use cannot be changed or overwritten.

Lazlow
 
Old 10-01-2006, 02:15 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
//unrelated to networking. moved.
 
  


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
I can't copy a file. Why? fakie_flip Linux - Software 2 08-25-2006 04:45 AM
copy vid tape to file and burn file to DVD jim mann Linux - Software 4 01-24-2006 10:57 PM
How to copy mysql file into text file lumba General 0 09-26-2005 06:08 AM
Is arrangement of file systems will differ if we copy a file from FAT 32 to ext 3 ? anindyanuri Linux - Software 2 02-20-2005 12:39 PM
File copy bob Linux - Newbie 1 02-06-2001 05:30 PM


All times are GMT -5. The time now is 11:46 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