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

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.


/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.