Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to copy and paste a file called s0.scm from my home directory to another directory, but i am getting an error. Here is the command i write to the terminal:

cp s0.scm /usr/local/bin

I am currently in the home directory and if i write

cd /usr/local/bin

i can go to that directory without any problems. But when i try to copy a file in my home (current) directory to /usr/local/bin by trying that code, i get the following error:

cp: cannot create regular file home/yrazlik/usr/local/bin

yrazlik is my username.

What can i do to achieve this? I appreciate any help.


share|improve this question

migrated from Apr 28 '13 at 0:43

This question came from our site for professional and enthusiast programmers.

You have to be superuser (root) to copy files to /usr/local/bin, try:

sudo cp s0.scm /usr/local/bin

and give your passwd (yrazlik) when prompt.

share|improve this answer
Thanks, but when i tried it, i got the following error: "yrazlik is not in the sudoers file, this incident will be reported" – bigO Apr 27 '13 at 21:50
If you are not the administrator, placing files in /usr/local/bin is forbidden – Srdjan Grubor Apr 27 '13 at 21:51
what distribution are you using? you could try to copy it as root. – Renan Apr 28 '13 at 6:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.