Data Sheet

ADVENTURES IN RASPBERRY PIBC2
Bonus chapter.indd 2 Trim size: 7.375 in × 9.1875 in October 24, 2017 7:20 PM
Command Line Quick Reference Table
Command Description
cat
Displays the contents (catalog) of the text le.
cd
Changes directory. For example, the command cd Desktop moves
you into the Desktop directory.
cd ..
Moves you up the directory tree to the parent directory.
cp
Makes another copy of a le.
clear
Allows you to clear the terminal.
date
Displays the time and date.
ls
Displays a list of les and folders in the current directory.
ls ‐l
Provides a list that includes more detail about the les. The ‐l
parameter is a lowercase L (for long), not the numeral 1.
man
Displays the manual or description le for the command.
mv
Moves a le to a new location.
mkdir
Makes a directory.
nano
Opens the nano text editor. To open a specic text le, add the
lename; for example, nano hello opens the hello text le.
pwd
Prints the working directory (shows which directory you are
currently working in).
rm xxx
Deletes (removes) the le named xxx.
rmdir
Deletes (removes) a directory.
sudo
Gives the user root or super user permissions.
sudo
apt‐get
install xxx
Tells the Raspberry Pi to use the Internet to nd, download and
install the xxx application.
sudo apt‐get
update
Downloads information about any new versions available for
applications on your Raspberry Pi.
sudo apt‐get
upgrade
Installs available upgrades for all applications on your Raspberry Pi.
sudo halt
Shuts down (halts) the power to the Raspberry Pi.
sudo reboot
Shuts down the power to the Raspberry Pi and then restarts it.
Chapter 2