Terminal
WLAN Pi / Linux terminal commands and a few concepts thrown in for good measure.
Lab Objective
Gain experience and confidence using the Terminal to interact with your WLAN Pi.
You do not need to learn these commands, nor do you need to become a wizard with the command line to make good use of your WLAN Pi. But we do want you to become familiar and comfortable executing commands from the terminal.
Basic Cursor Navigation
Use the following shortcuts to quickly move the cursor around the current line while typing a command.
Ctrl+A
or Home
: Go to the beginning of the line
Ctrl+E
or End
: Go to the end of the line
Ctrl+xx
: Move between the beginning of the line and the current position of the cursor. This allows you to press Ctrl+xx
to return to the start of the line, change something, and then press Ctrl+xx
to go back to your original cursor position.
To use this shortcut, hold the Ctrl key and tap the X key twice.
Windows:
Ctrl+ <-
: Go left (back) one word
Ctrl+ ->
: Go right (forward) one word
macOS:
Esc+B
/ Esc+ <-
/ Alt+ <-
: Go left (back) one word
Esc+F
/ Esc+ ->
/ Alt+ ->
: Go right (forward) one word
Check operating system version
Check the WLAN Pi OS version and many other stats, internet reachability, current mode, and more.
Let's execute a script created by the WLAN Pi team. A script is a series of commands bundled together into one file. Many tools are just scripts. Scripts can be run with the bash interpreter or other scripting language interpreters such as Python.
Go ahead and try this one:
Unlike Windows, Linux is case sensitive. That means WLPC is different than wlpc, which is different from wLpC. Each of these would represent a different file. If you get a message that says something like "file not found" and you are sure that it does exist, you probably need to check the case.
Linux Cheat Sheet
If you are hungry for more, here is a cheat sheet with common Linux commands.
Last updated