YSK about [Unix tools] | Hacker Noon

austinOct 14, 2020, 2:30 PM

YSK about


, short for “list open files”. since everything, literally everything from network sockets to camera handles, is a file in unix-based systems (like macos). this means you can do things like

lsof | grep "AppleCamera"

in the terminal, to see if anyone’s using your camera (even if the little light is off)

or you can do

lsof -i -P -n | grep LISTEN

to see all programs with open network ports, if you want to say, kill a webserver that ran away on you, to open up the port. or if you’re locking down a machine. the thing’s a power tool

Don't forget to share

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *