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.
42 Answers
There are a couple of different ways
Open Nautilus with sudo by typing
sudo -H nautilusin 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 replacingfile1withaptanaAdd 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/mydirfor example.
3