User Guide

38
To open Leafpad, either:
• Click the Raspbian Menu button, point to
Accessories, and then click Text Editor; or
• On the command line, type the following command
and then press Enter:
leafpad
If you open Leafpad from the command line, you can specify the
file that you want to edit.
• Type the leafpad command, followed by a space, and
then the file path and file name. For example:
leafpad /home/pi/Desktop/test.txt
If you want to edit system files with Leafpad, you may need to
open it as a supervisor. To do this from the command line:
• Type the following command and then press Enter:
sudo leafpad
You can access all of Leafpad’s features using the mouse and the
menu, or by pressing keyboard shortcuts.
To Do This
Start a new file Press Ctrl + N.
Open an existing file Press Ctrl + O.
Save your work Press Ctrl + S.
Save your file with a new name Press Ctrl + Shift + S.
Copy text into memory Select the text using the mouse,
and then press Ctrl + C.
Paste the text in memory into a file Press Ctrl + V.
Cut text (remove it from the file and
copy it into memory)
Select the text using the mouse,
and then press Ctrl + X.
Select all of the text in the file Press Ctrl + A.