How to copy files into /usr/local/? (permission denied)

I'm still a little new to Ubuntu and was wondering how I can copy files, in this case Aptana Studio, to /usr/local/ without being denied.

Is there a way to do it in terminal? Or a way to allow myself permission? I should add that I am using 10.10 Desktop edition, not server.

4

2 Answers

There are a couple of different ways

  1. Open Nautilus with sudo by typing sudo -H nautilus in terminal then copy the files as you would normally. Warning: I would close nautilus straight after so you don't accidently use it for moving normal files.

  2. Open terminal and type sudo cp file1 /usr/local/ obviously replacing file1 with aptana

  3. Add open as admin option to nautilus and open the local folder by right clicking and selecting open as administrator.

1

/usr/local is a directory belonging to the user root, so you need to use sudo to achieve your end:

sudo mkdir /usr/local/mydir
sudo cp file.txt /usr/local/mydir

for example.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like