Linux Cheat Sheet

Andrew Cho
Sep 2, 2023

This is going to be an ongoing beginner cheat sheet for useful commands in Linux. In the context of both AWS and on-prem. In personal, study, and work environments.

Mainly for my usage but feel free to use. Will be updated over time.

Commands

Find a process ID running on specific port:
fuser 3000/tcp

Kill a process running on specific port:
fuser -k 3000/tcp

Using a screen:
https://serverfault.com/a/19646
https://serverfault.com/a/19635

Reparent/Reattach an existing shell (ssh) connection when connection was lost or early exit:
https://serverfault.com/a/1095878

--

--