Remote working
ssh
Log in to a remote computer using Secure SHell (SSH
protocol).
will log in as user pi on the
computer at the IP address
192.168.1.2
. Note, this will only
work if the remote computer has an SSH server running.
scp
Secure copy.
scp file [email protected] :/home/pi
will
copy a file to the directory
home/pi
on the machine with
192.168.1.2
.
scp [email protected]:/home/pi/file
. will
copy
/home/pi/file
from the machine
192.168.1.2
to
the current directory. Note, this will only work if the remote
machine has an SCP server running.
Wildcards
*
Matches any string of characters, or no characters.
?
Matches any single character.
[abc]
Matches a, b or c.
[!abc]
Matches any character except a, b or c.
[A-Z]
Matches any character in the range A–Z
(that is, any upper-case letter).
[A-z]
Matches any character in the range A–z
(that is, any upper- or lower-case letter).
[one, two]
Matches the words one and two.
Information about the computer
top
Displays the programs that are currently using the most CPU
time and memory.
uname
Displays information about the kernel.
uname -m
outputs the
architecture it’s running on.
lscpu
Lists information about the CPU.
dmesg
Displays the kernel messages (can be useful for finding
problems with hardware).
Command Line reference
34
Raspberry Pi User Guide.indd 34
08/07/2014 14:44