EasyManua.ls Logo

Element 14 Raspberry Pi - Remote Working and Wildcards

Element 14 Raspberry Pi
36 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Remote working
ssh Log in to a remote computer using Secure SHell (SSH
protocol). ssh pi@192.168.1.2 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 pi@192.168.1.2 :/home/pi will
copy a file to the directory home/pi on the machine with
192.168.1.2. scp pi@192.168.1.2:/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