查機器:
查看磁盤大小 df -hl
查看內(nèi)存大小 free -hm
查看cpu核心數(shù)及型號 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
平時用的:
查看文件大小 du -h --max-depth=1 *
image.png
顯示有IO操作的進程 iotop -oP
新建文件夾 mkdir filename
移動文件 mv 原來的文件 新的目錄
刪除 .DS_Store 文件:
刪除項目中的所有.DS_Store梯醒。這會跳過不在項目中的 .DS_Store
1.find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
將 .DS_Store 加入到 .gitignore
2.echo .DS_Store >> ~/.gitignore