Results 1 to 4 of 4
cold:~$ cp /bin/mv orange ~/fruits
cp: cannot stat `orange': No such file or directory
What am I doing wrong? orange is just the new name for the file, all the ...
- 12-30-2010 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 66
Simple cp command
cold:~$ cp /bin/mv orange ~/fruits
cp: cannot stat `orange': No such file or directory
What am I doing wrong? orange is just the new name for the file, all the directories definitely do exist.
- 12-30-2010 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Code:man cp
Code:DESCRIPTION Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.Code:cp source source source source ... directory
- 12-30-2010 #3
Your syntax is incorrect. Is it /bin/mv/orange you're trying to copy to ~/fruits? If so, it should be "cp /bin/mv/orange ~/fruits". You have a space between /bin/mv and fruits, which means you want to copy /bin/mv somewhere, but are giving incorrect parameters. If you can tell us exactly what you're trying to do, and exactly where the files are, we can give you more exact instructions.
- 01-02-2011 #4Just Joined!
- Join Date
- Jan 2011
- Posts
- 2
Its unclear what exactly you are trying to do as /bin/mv is another executable and you are trying to run cp and mv both commands simultaniously for moving file from one place to other .
only mv command is need to be used to move the file from one place to other with changing name of that file
eg : mv oldfilename /home/newfile


Reply With Quote