mag_pi_essentials_conquer_the_command_line.pdf
(
9013 KB
)
Pobierz
2
nd
EDITION
ESSENTIALS
CONQUER
The Raspberry Pi
Written by
COMMAND
E
TH
LINE
Richard Smedley
TERMINAL GUIDE
ED
CH
AT
EW
PD
N
R
TER
FO
AP
9!
01
S
2
U
+4
SUBSCRIBE TODAY
FROM ONLY £5
Subscriber Benefits
FREE Delivery
Get it fast and for FREE
Exclusive Offers
Great gifts, offers, and discounts
Great Savings
Save up to 35% compared to stores
Rolling Monthly Subscription
Low Monthly Cost
(from £5)
Cancel at any time
Free delivery to your door
Available worldwide
Subscribe for 12 Months
£55
(UK)
£80
(EU)
£90
(USA)
£95
(Rest of World)
Free Pi Zero W Kit with 12 Month upfront subscription only
(no Pi Zero Kit with Rolling Monthly Subscription)
Subscribe online: magpi.cc/subscribe
JOIN FOR 12 MONTHS AND GET A
FREE Pi Zero W
Starter Kit
WITH YOUR SUBSCRIPTION
Subscribe in print
for 12 months today
and you’ll receive:
Pi Zero W
Pi Zero W case
with three covers
USB and HDMI
converter cables
Camera Module
connector
Offer subject to change or
withdrawal at any time
Buy now: magpi.cc/subscribe
SUBSCRIBE
on
app stores
WELCOME TO
CONQUER THE
COMMAND LINE
creating an easy route into computer use
for many non-technical users. For complex tasks,
though, the interface can become a limitation:
blocking off choices, and leaving a circuitous route
even for only moderately complicated jobs.
(Re-)Enter the command line: the blinking cursor
that many thought had faded away in the 1990s. For
getting instructions from user to computer – in a
clear, quick, and unambiguous form – the command
line is often the best way. It never disappeared on
UNIX systems, and now, thanks to Raspbian on the
Raspberry Pi, a new generation is discovering the
power of the command line to simplify complex
tasks, or instantly carry out simple ones.
If you’re not comfortable when faced with the $
prompt, then don’t panic! In this fully updated book,
we’ll quickly make you feel at home, and able to
find your way around the terminal on the Pi, or any
other GNU/Linux computer: getting things done, and
unlocking the power of the command line.
S
ometimes only words will do. Graphic user
interfaces (GUIs) were a great advance,
FIND US ONLINE
raspberrypi.org/magpi
PUBLISHING
GET IN TOUCH
magpi@raspberrypi.org
Publishing Director:
Russell Barnes
Director of Communications:
Liz Upton
CEO:
Eben Upton
DESIGN
EDITORIAL
Critical Media:
criticalmedia.co.uk
Head of Design:
Lee Allen
Designer:
Mike Kay
In print, this product is made using paper
sourced from sustainable forests and
the printer operates an environmental
[
management system which has been
Chapter One
]
assessed as conforming to ISO 14001.
Editor:
Phil King
Writer:
Richard Smedley
Contributors:
Lucy Hattersley,
Simon Long
This book is published by Raspberry Pi (Trading) Ltd., Maurice Wilkes Building, St. John's Innovation Park,
Cowley Road, Cambridge, CB4 0DS. The publisher, editor and contributors accept no responsibility in respect
of any omissions or errors relating to goods, products or services referred to or advertised in this product.
Except where otherwise noted, content in this book is licensed under a Creative Commons Attribution-
NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0). ISBN: 978-1-912047-66-6
4
[ CONQUER THE COMMAND LINE ]
ESSENTIALS
CONTENTS
06
[
CHAPTER ONE
]
DON’T PANIC
Take a look around
and discover things
31
[
CHAPTER SIX
]
CONNECTING DISKS
Tackle the management
of removable storage
[
RICHARD
SMEDLEY
]
11
[
CHAPTER TWO
]
READ/WRITE TEXT
Get working on files
36
[
CHAPTER SEVEN
]
PREDICTABLE NETWORKING
Give the Pi a permanent network
address of its own
16
[
CHAPTER THREE
]
PERMISSION TO INSTALL
Raspbian’s system for installing
and updating
41
[
CHAPTER EIGHT
]
STOPPING A PROCESS
No need to turn it off and on again:
just kill the process!
21
[
CHAPTER FOUR
]
MANIPULATING TEXT
Connect together multiple
simple commands
46
[
CHAPTER NINE
]
REMOTE PI
Access the Pi with Secure Shell
26
[
CHAPTER FIVE
]
CUSTOMISE
THE COMMAND LINE
Make Raspbian more personal
51
[
CHAPTER TEN
]
DOWNLOADING & INSTALLING
Add software and write to SD cards
56
[
CHAPTER ELEVEN
]
START AND STOP AT
YOUR COMMAND
Manage startup and shutdown
64
[
CHAPTER TWELVE
]
SAVE IT NOW!
Protect your data with backups
74
[
CHAPTER THIRTEEN
]
EASY COMPILATION
Build software from source code
82
[
CHAPTER FOURTEEN
]
COMMANDING THE INTERNET
Get online from the command line
Since soldering
together his first
computer – a ZX81
kit – and gaining
an amateur
radio licence as
GW6PCB, Richard
has fallen in
and out of love
with technology.
Swapping the
ZX81 for a guitar,
and dropping ham
radio for organic
horticulture,
he eventually
returned to the
command line,
beginning with a
computer to run
his own business,
and progressing
to running all the
computers of
an international
sustainability
institution. Now
he writes about
Free Software and
teaches edible
landscaping.
[
Don’t Panic
]
[
Contents
5
Plik z chomika:
Leniek
Inne pliki z tego folderu:
book_of_making_volume_1.pdf
(50153 KB)
book_of_making_volume_2.pdf
(52794 KB)
an_introduction_to_c_and_gui_programming.pdf
(9985 KB)
build_a_4k_digital_media_hub_the_mag_pi_issue_87.pdf
(27554 KB)
build_the_ultimate_magic_mirror_the_mag_pi_issue_90.pdf
(34973 KB)
Inne foldery tego chomika:
advanced_ai_by_morgan_claypool
ai_and_machine_learning_toolkit_by_morgan_and_claypool_publishers
applied_math_and_statistics_toolkit_by_morgan_and_claypool
applied_math_productivity_by_mercury
applied_mathematics_by_mercury
Zgłoś jeśli
naruszono regulamin