The Basics
Determine which shell you are running
echo $SHELL
set the color of the prompt
PROMPT='%F{green}%n@%m %F{blue}%~ %f$ '
Linux
List ports used by a specific process
lsof -a -p 1989165 -i
- -a = AND the filters. Without this you get everything from the pid combined with every internet listing
- -p = use this pid
- -i = internet
List working directory of a specific process
lsof -a -p