Hardware Reference
In-Depth Information
For example, suppose you have written a topic report on Hamlet and you want your
Raspberry Pi to delete it. You might try typing the following command at the prompt:
Delete the file hamlet.doc
If you do this, the ile won't be deleted, but you'll get this error message:
-bash: Delete: command not found
his is because you can't just type any command and expect the Raspberry Pi to under-
stand it! It will only respond to a command when it is composed of a particular set of
deined words that it already understands. hese commands can be very speciic and
often need to be typed in a certain order to work. To delete your report, you must use
a command that Raspberry Pi understands. In this case, you need to use the rm
(remove) command:
rm hamlet.doc
If you learn these commands, you won't be limited to using a GUI and you'll be able to
navigate ile systems and program the computer by using simple text commands. his
can sometimes be faster and more convenient than doing the same tasks in a GUI.
Many of the projects and tutorials in this topic use some text commands, so this chap-
ter introduces you to some basic commands that will help you save some time.
Exploring the Terminal
In this section, you'll become familiar with some common Linux text commands by
using the graphical LXTerminal within the desktop environment, as shown in Figure
2-2. You can open this terminal in one of three ways:
Log in and type the command startx to enter the desktop environment, as you
did in Adventure 1.
Open the LXTerminal from the desktop by double-clicking the icon with your
mouse.
Select LXTerminal from Accessories in the main menu.
To see a video about using the LXTerminal and the other tasks in this adventure,
visit the companion website at www.wiley.com/go/adventuresinrp and
select CommandLine.
Search WWH ::




Custom Search