os经常使用指令

1.端口占用查看html

  lsof -i:port 3d

  查看某个端口方便killhtm

  eg:lsof -i:8080blog

    

  kill 1206 之后查看test

    

2.删除目录及文件file

  rm -r -f filenamecommand

  eg: rm -r -f project-testim

    

3.窗口全屏img

  control + command + f端口

4.建立文件

  mkfile -n size[b|k|m|g] filename

  eg: mkfile -n 0 test.html

5.删除文件

  rm filename

  eg: rm test.html

相关文章
相关标签/搜索