42_most_useful_raspberry_pi_commands
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 42_most_useful_raspberry_pi_commands [2016/08/08 21:41] – created walkeradmin | 42_most_useful_raspberry_pi_commands [2016/08/08 21:48] (current) – walkeradmin | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ◦clear: Clears the terminal screen of previously run commands and text. | ◦clear: Clears the terminal screen of previously run commands and text. | ||
| ◦date: Prints the current date. | ◦date: Prints the current date. | ||
| - | ◦find / -name example.txt: | + | ◦find / -name example.txt: |
| + | | ||
| ◦nano example.txt: | ◦nano example.txt: | ||
| ◦poweroff: | ◦poweroff: | ||
| Line 22: | Line 23: | ||
| \\ | \\ | ||
| File/ | File/ | ||
| + | | ||
| ◦cat example.txt: | ◦cat example.txt: | ||
| ◦cd /abc/xyz: Changes the current directory to the /abc/xyz directory. | ◦cd /abc/xyz: Changes the current directory to the /abc/xyz directory. | ||
| - | ◦cp XXX: Copies the file or directory XXX and pastes it to a specified location; i.e. cp examplefile.txt / | + | ◦cp XXX: Copies the file or directory XXX and pastes it to a specified location; |
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| ◦ls -l: Lists files in the current directory, along with file size, date modified, and permissions. | ◦ls -l: Lists files in the current directory, along with file size, date modified, and permissions. | ||
| ◦mkdir example_directory: | ◦mkdir example_directory: | ||
| - | ◦mv XXX: Moves the file or directory named XXX to a specified location. For example, | + | ◦mv XXX: Moves the file or directory named XXX to a specified location. For example, |
| + | / | ||
| + | If the file is not in the current directory, add the path of the file’s location(i.e. | ||
| + | cp / | ||
| + | to the office directory). This command can also be used to rename files (but only within the same directory). | ||
| + | For example, mv examplefile.txt newfile.txt renames examplefile.txt to newfile.txt, | ||
| + | it in the same directory. | ||
| + | |||
| ◦rm example.txt: | ◦rm example.txt: | ||
| ◦rmdir example_directory: | ◦rmdir example_directory: | ||
| - | ◦scp user@10.0.0.32:/ | + | ◦scp user@10.0.0.32:/ |
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| ◦touch: Creates a new, empty file in the current directory. | ◦touch: Creates a new, empty file in the current directory. | ||
| \\ | \\ | ||
| \\ | \\ | ||
| Networking/ | Networking/ | ||
| - | ◦ifconfig: | + | |
| + | | ||
| + | | ||
| + | | ||
| ◦iwconfig: | ◦iwconfig: | ||
| ◦iwlist wlan0 scan: Prints a list of the currently available wireless networks. | ◦iwlist wlan0 scan: Prints a list of the currently available wireless networks. | ||
| - | ◦iwlist wlan0 scan | grep ESSID: Use grep along with the name of a field to list only the fields you need (for example to just list the ESSIDs). | + | ◦iwlist wlan0 scan | grep ESSID: Use grep along with the name of a field to list only the |
| - | ◦nmap: Scans your network and lists connected devices, port number, protocol, state (open or closed) operating system, MAC addresses, and other information. | + | |
| - | ◦ping: Tests connectivity between two devices connected on a network. For example, ping 10.0.0.32 will send a packet to the device at IP 10.0.0.32 and wait for a response. It also works with website addresses. | + | |
| - | ◦wget http:// | + | ◦nmap: Scans your network and lists connected devices, port number, protocol, state |
| + | | ||
| + | | ||
| + | ◦ping: Tests connectivity between two devices connected on a network. For example, | ||
| + | | ||
| + | | ||
| + | | ||
| + | ◦wget http:// | ||
| + | | ||
| \\ | \\ | ||
| \\ | \\ | ||
| System Information Commands | System Information Commands | ||
| + | | ||
| ◦cat / | ◦cat / | ||
| ◦cat / | ◦cat / | ||
| Line 55: | Line 85: | ||
| ◦hostname -I: Shows the IP address of your Raspberry Pi. | ◦hostname -I: Shows the IP address of your Raspberry Pi. | ||
| ◦lsusb: Lists USB hardware connected to your Raspberry Pi. | ◦lsusb: Lists USB hardware connected to your Raspberry Pi. | ||
| - | ◦UP key: Pressing the UP key will enter the last command entered into the command prompt. This is a quick way to correct commands that were made in error. | + | ◦UP key: Pressing the UP key will enter the last command entered into the command prompt. |
| + | | ||
| ◦vcgencmd measure_temp: | ◦vcgencmd measure_temp: | ||
| ◦vcgencmd get_mem arm && vcgencmd get_mem gpu: Shows the memory split between the CPU and GPU. | ◦vcgencmd get_mem arm && vcgencmd get_mem gpu: Shows the memory split between the CPU and GPU. | ||
| \\ | \\ | ||
| \\ | \\ | ||
42_most_useful_raspberry_pi_commands.1470692464.txt.gz · Last modified: (external edit)
