Results 1 to 3 of 3
Hi-
I am taking a linux class at my university and need some help.
I am trying to copy a file from my desktop to the /opt directory and keep ...
- 10-01-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 2
cp command in fedora-PLEASE HELP
Hi-
I am taking a linux class at my university and need some help.
I am trying to copy a file from my desktop to the /opt directory and keep getting "missing destination file operand". I know this is probably really easy but I can't get the syntax of these commands right.
i've tried:
cp a/home/tamal/xampp-linux-1.6.2.tar.tar/opt
cp a/opt/xampp-linux-1.6.2.tar.tar
and a host of others
- 10-01-2007 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,095
We don't give answers to homework/classwork questions, but you can try adding the current and new directory locations, such as:
You have to have root permissions to write to the the /opt directory.Code:cp /home/current-directory/filename /opt
If cp doesn't work, try using /sbin/cp as your command.
Check out man cp for details.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 10-01-2007 #3Just Joined!
- Join Date
- Aug 2007
- Posts
- 2
First you check your system /opt directory is mounter or not
Then try following command.
cp -r a/home/tamal/xampp-linux-1.6.2.tar.tar /opt
I hope this is helpful to you.
Regards,
Sansan


Reply With Quote