How to copy files into /usr/local/? (permission denied)
There are a couple of different ways
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.Open terminal and type
sudo cp file1 /usr/local/
obviously replacingfile1
withaptana
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.