Editing a File

The easy way to edit a file on the Raspberry Pi 3 is to mount that directory in Linux. Windoze users can use Notepad++ (google for that info).

sudo sshfs -o allow_other,default_permissions pi@IPaddress:/directory_on_pi /mnt/local_directory

Example, be sure to change the IP address and directories to match your setup.

sudo sshfs -o allow_other,default_permissions pi@ /mnt/rpibin

In the above example your mounting /home/pi/bin into /mnt/rpibin to find the files open File System and go to /mnt then rpibin.

Now you can open the files in the directory on the RPi from Linux and directly edit them.