The Raspberry Pi runs on a Linux based operating system called Raspbian. When using Linux commands, it's important to familiarize yourself with the term sudo. The sudo prefix allows you to run specific commands as administrator. Certain commands can cause a lot of hassle if you're not careful. It's important to be diligent with the use of sudo to prevent any accidents or mishaps.
It's possible to enable a permanent super user mode. This allows you to enter commands without the sudo prefix. However, we strongly advise against this setting to be safe. We've already added the sudo prefix to commands that require administrative access, so you don't have to worry!
Maybe you need to shutdown your Pi, but not yet! This command lets you schedule a time for your Raspberry Pi to turn off. In the example code, the Raspberry Pi will turn off at 3:14am. Change the hour and minute to reflect your desired shutdown time. You’ll need super user privileges to make this happen.
The halt command tells the Raspberry Pi to cease all CPU functionality before shutting itself down. It's different from other power down commands in that it halts the CPU prior to shutting down. Use the sudo prefix to initiate this command!
The cd command stands for "change directory" and it does exactly what you think it does. If you need to switch to a different folder, just enter this command and replace "/folder1/folder2" with the complete path to your desired directory location.
The man command is an abbreviation of the word manual. This command allows you to access the manual page for a given file, comman1d, or function. Replace the “command/function/file” from our example with your desired data. For example, run “man man” to view the man manual page.
This is the command you need to access the Raspberry Pi Configuration Menu. This menu allows you to modify many different areas of the Pi and you will need admin capabilities to use it. Be sure to use the sudo prefix to access this menu.
Need to ping an IP address? Maybe you're troubleshooting or just want to make sure you still have an internet connection. Whatever the case, all you need is to replace the IP address from the example with the destination IP of your choosing.