-
free
:查看内存占用
单位是kb
,第一行为title,第二行是内存数据
total: 物理内存总量 -
shell脚本中
cd ~
报错,no such file or directory
https://stackoverflow.com/questions/12133209/bin-bash-cd-results-in-bin-bash-cd-no-such-file-or-directory-why -
shell 单引号和双引号的区别
-
cd 到多个目录中执行命令
ls | xargs -i -execdir sh -c "cd {}; touch test.info"