Lenmore Blog -- 我的记事本、备忘录

Linux常用命令备忘

written on Wednesday, March 31, 2010

设置目录、文件不同的权限

sudo chmod -R 644 ./path/
sudo chmod 755 `sudo find ./path -type d`

精简配置文件,删除注释

cat squid.conf | grep -e "^#" -v | grep -e "^$" -v > squid.conf.clean

待续……

This entry was tagged linux