#TIL : Commands


30 Dec 2015 / by KhanhIceTea

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

Sound good ?