O'Reilly logo

Make: Sensors by Ville Valtokari, Kimmo Karvinen, Tero Karvinen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Raspberry Pi Linux Quick Reference

Table A-1 shows some useful and common Linux commands. Table A-2 shows the directories you’ll be working in much of the time.

Table A-1. Some Linux commands
CommandMeaning

pwd

Prints your working directory

ls

Lists files in working directory

cd Desktop

Changes directory to the Desktop directory immediately under your current directory

cd ~/Desktop

Changes directory to the Desktop directory immediately under your home directory

cd ~

Changes to your home directory

nano foo.txt

Edits the text file foo.txt. Use Control-X, then type y followed by Enter or Return to save the file.

passwd

Change your password (asks for the old one first, but doesn’t echo what you type to the screen)

startx

Launch the graphical desktop from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required