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

clipboardpermissions

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.

Best Answer

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.

Related Question