0

I was trying to copy a directory to /user/bin (on Ubuntu 12.04). I tells me that I cannot create directory ``/user/local' No such file or directory`. Where did I make a mistake?

sudo cp -r apache-maven /user/local/
cp: cannot create directory `/user/local': No such file or directory
  • 2
    Appears there is a typo. The name of the directory is /usr/local, not /user/local. Can you try the first path name instead? – Gladen Jun 13 '14 at 10:15
  • This is actually a good question, considering that we pronounce "usr" as "user". – Eliah Kagan Jun 13 '14 at 10:50
4

/user/* is not a valid directory within a normal Linux system. It is /usr/. So ...

sudo cp -r apache-maven /usr/local/ 

can be valid. Though I probably would put maven into /opt/ myself.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.