Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks

share|improve this question

migrated from stackoverflow.com Apr 28 '13 at 0:43

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

1 Answer 1

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
3  
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

 
discard

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