Unix Command Cheatsheet
Daisho Komiyama edited this page Jan 22, 2023
·
5 revisions
lsof -i -P -n | grep LISTEN
-i = internet files or sockets
lsof -i tcp:3000
-i = internet files or sockets
kill -9 $(sudo lsof -t -i:8080)
grep -ir "console" .
-i = case insensitive
-r = search recursively)\
zgrep FILE
(search inside gzip file)
ps aux | grep node
(a = show processes for all users, u = display the process's user/owner, x = also show processes not attached to a terminal)