How do you delete files in the location: /usr/local/src?
I tried to move a file into the rubbish bin (because I followed some instructions about installing sage and it involved moving a file to that directory) and it gave me errors saying that I didn't have permission. Even though I'm signed in as an administrator.
Open a terminal with Ctrl-Alt-T
and Use sudo
like this.
cd /usr/local/src
sudo rm ./file-name
If you want to delete the entire content of a folder, you should use -r
switch. like this:
cd /usr/local/src
sudo rm -r ./folder-name
Please, make sure you aren't deleting any system files. Also double check the file and folder name before hitting Enter key.