til

#TIL : Commands

I learned on 2015-12-30 about bash, command-line, sysadmin

On this page

Command lsof

List all opened files, sockets, pipes

Eg:

  • List processes are using port 80 (need root if port between 1-1023)
# sudo lsof -i:80
  • List processes are using /bin/bash
# lsof /bin/bash

Enjoyed this?

Leave a kudo — it means a lot.

0