Everything I need to run and manage servers on my Hack Club Nest.
tmux new -s mysite — create a new tmux session named "mysite"cd ~/mysite — go to the site folderpython3 -m http.server 8000 — start the server on port 8000tmux ls — list all running sessionstmux attach -t mysite — re-enter the sessiontmux a — attach to the only session (shortcut)tmux kill-session -t mysite — kill a specific sessiontmux kill-server — kill ALL tmux sessionsexit — close the session entirelylsof -i :8000 — see what's running on port 8000fuser -k 8000/tcp — kill whatever's on port 8000pkill -f "http.server" — kill all python http.server processeskill -9 <PID> — force kill a specific processfuser -k 8000/tcppkill -f "http.server"tmux kill-serverlsof -i :8000 (should return nothing)cd ~ — go to home directorycd ~/mysite — go to main site folderls — list files in current folderpwd — print current directorymkdir foldername — make a new folderMade for future-me. You're welcome. 🫡