# Class notes

Wednesday, 1.15.25

Hre's a summary you may want to include in your notes:

<div id="bkmrk-use-the-wifi-icon-to">

- use the wifi icon to get IP address and wifi speed (option)
- use command-space to find terminal
- use <span style="font-weight: bold;">ifconfig</span> to verify your IP address (more on this next)
- <span style="font-weight: bold;">ping</span> to see if others are awake
- <span style="font-weight: bold;">ctrl-c</span> to cancel
- <span style="font-weight: bold;">ctrl-z</span> to halt
- <span style="font-weight: bold;">ssh admin@10.14.254.xyz</span> for secure shell
- <span style="font-weight: bold;">sudo shutdown -r now</span> to reboot
- say some clever stuff to say some clever stuff
- <span style="font-weight: bold;">traceroute</span> to determine path to servers or others
- <span style="font-weight: bold;">sudo</span>: super user do (later you can try su, or "make me root")

<div>Friday, 1.17.25</div></div><div id="bkmrk-home%2Fpi-directory-st">

- home/pi directory structure
- <span style="font-weight: bold;">sudo nano:</span> create a file
- ctrl-o: overwrite
- ctro-x: exit
- <span style="font-weight: bold;">ls:</span> list files (list)
- <span style="font-weight: bold;">ls -la: </span>list even invisible, hidden files (list, long, all)
- <span style="font-weight: bold;">pwd</span>: where am I? (print working directory)
- cd: change directory
- cd .. or cd up: cd up one level
- <span style="font-weight: bold;">nslookup</span>
- file browser
- Herobrine game
- more, less
- install dnsutils: sudo apt install dnsutils -y

<div>Wednesday, 1.22.25</div>

- <span style="font-weight: bold;">note pages on weblog for terminal commands</span>

<div><span style="font-weight: bold;">Challenges:</span></div>

1. challenge #1: find herobrine on your machine
2. challenge #2: create a new folder (<span style="font-weight: bold;">mkdir</span>) inside your Documents folder
3. challenge #3: create a visible and and a hidden file inside this folder
4. challenge #4: create a document inside a folder on the pi-alpha machine
5. challenge #5: find the missing documents in your partner's machine
6. challenge #6: create a folder and a document WITH PERMISSION in your partner's machine
7. challenge #7: edit the file your partner has created on your machine

<div>New commands:</div>

- <span style="font-weight: bold;">mkdir</span>: create a directory
- shortcut: up arrow means repeat last command...
- <span style="font-weight: bold;">ls -la</span> permissions: rwx, 777 format, 4-2-1
- install apps: <span style="font-weight: bold;">sudo apt install hardinfo -y</span>
- <span style="font-weight: bold;">who</span> also whoami
- <span style="font-weight: bold;">last</span> last command, also the up arrow
- <span style="font-weight: bold;">top </span>lists all processes, useful with kill (see later) (ctrl-x to quit)
- <span style="font-weight: bold;">ps</span>: processes
- <span style="font-weight: bold;">ps -ax</span>
- <span style="font-weight: bold;">kill</span>: just what it sounds like
- <span style="font-weight: bold;">grep</span>: ps -ax \| grep chess  (on the mac)
- <span style="font-weight: bold;">history</span>: shows recent commands like this, useful for retracing your steps or seeing who might have been in your machine

<div>Network commands:</div>

- <span style="font-weight: bold;">ifconfig</span>
- <span style="font-weight: bold;">ip addr show</span>
- <span style="font-weight: bold;">sudo raspi-config</span>: enable ssh
- <span style="font-weight: bold;">chmod</span>: change permissions
- <span style="font-weight: bold;">chmod +x:</span> makes something executable
- <span style="font-weight: bold;">cat /proc/cpuinfo</span>
- <span style="font-weight: bold;">traceroute (install)</span>
- <span style="font-weight: bold;">netstat or ss </span>
- <span style="font-weight: bold;">wavemon</span>
- <span style="font-weight: bold;">speedtest-cli </span>(install)
- <span style="font-weight: bold;">nmap -sP 10.14.88.0/24</span>
- <span style="font-weight: bold;">sudo arp-scan 10.14.88.0/24</span>
- <span style="font-weight: bold;">sudo iftop</span>
- DNS part 2: <span style="font-weight: bold;">nslookup</span> servers
- IP addresses, subnet mask, gateways
- cat6 cables, wifi, security, html, www, servers
- nomachine
- Mac network utility
- install apache: <span style="font-weight: bold;">sudo apt install apache2 -y</span>

<div><span style="font-weight: bold;">2.18.25: Wednesday----</span></div><div>Check these pi apps out:</div><div><span style="font-weight: bold;">Geany</span> (inside your programming folder)  
</div><span style="font-weight: bold;">pi-apps</span> (will show up in your accessories folder):</div><div id="bkmrk-wget--qo--https%3A%2F%2Fra">wget -qO- [https://raw.githubusercontent.com/Botspot/pi-apps/master/install](https://raw.githubusercontent.com/Botspot/pi-apps/master/install) &#124; bash</div><div id="bkmrk-install-sublime-text">install sublime text</div><div id="bkmrk-install-angry-ip-sca">install angry IP scanner  
</div><div id="bkmrk-visual-code-%28editor%29"><span style="font-weight: bold;">visual code </span>(editor): sudo apt install code

```
<br></br>
```

</div>---

<small>Migrated from Apple Server Wiki. Original page ID: T8L489p6</small>