Originally Posted by
rjwood
... You could have made the script in your home directory and then moved it to the proper directory, or you could have cd directories first and then opened gedit and done it all there. Either...
I've learnt my lesson, thanks to rjwood. I should have learned this by now!
Code:
username@ubuntu:~$ cd ~/.gnome2/nautilus-scripts
username@ubuntu:~/.gnome2/nautilus-scripts$ gedit
username@ubuntu:~/.gnome2/nautilus-scripts$ ls -a
. .. clamavscan testerTOsaveas
username@ubuntu:~/.gnome2/nautilus-scripts$ rm testerTOsaveas
username@ubuntu:~/.gnome2/nautilus-scripts$ ls -a
. .. clamavscan
username@ubuntu:~/.gnome2/nautilus-scripts$ cd ~
username@ubuntu:~$
To any other newbie out there, as I'd already saved Pectols' script properly as 'clamavscan' in the correct directory this was just a test to do things properly. That's why I deleted empty 'testerTOsaveas' gedit file same folder.
Bookmarks