shell程序员

Shell使用技巧和常用命令

2017-02-03  本文已影响24人  swapmem

shell usage tips

shell command

[-u] list all files that a user opened
[-i] list all processes that use a specific port. eg: ls -i TCP:22
[-p] list all opened files by process ID
[-c] find out files opened by some particular daemon
[lsof /path/to/file] list processes opened by specific file

reference:

  1. http://www.thegeekstuff.com/2012/08/lsof-command-examples
  2. http://www.ibm.com/developerworks/aix/library/au-lsof.html
  3. http://webcache.googleusercontent.com/search?q=cache:http://www.unixmantra.com/2013/12/xargs-all-in-one-tutorial-guide.html
上一篇 下一篇

猜你喜欢

热点阅读