bingoohuang/blog

mac 上的一些小命令

Opened this issue · 0 comments

mac 上的一些小命令

  1. 查看进程的工作目录 lsof -a -d cwd -c programname or lsof -a -d cwd -p processid
    $ lsof -a -d cwd -p  41187
    COMMAND   PID       USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
    beefs   41187 bingoobjca  cwd    DIR    1,4      160 79202440 /Users/bingoobjca/tempdir/beefsdir1
    
  2. xxx