Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux 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

  3. #3
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    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.

  4. #4
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...