#TIL : Commands

Command lsof

List all opened files, sockets, pipes

Eg:

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

Comments