Linux/macOS commands

Usage Linux MacOS
display disk usage du --max-depth=1 du -hd1
find PID by port lsof -i :[port]
unbind a job from the current login session. disown -h [job-spec]
kill a process running on particular port kill -9 $(lsof -t -i:3000 -sTCP:LISTEN)