Linux学习
--2019年7月23日
网盘日志: var/log/httpd:access_log
代理:var/log/ss5:ss5/log
--2019年5月31日
--置空一个文件
cp /dev/null system.log
cat /dev/null > system.log
-- 2019年5月26日
-- 查看当前目录下文件夹的大小
du -h --max-depth=1
--2019年5月25日-centos6.9
df -h /home
-- 查看目录所在硬盘的使用情况
-- 2019年5月24日-centos6.9
修改iptables后,先service iptables restart,修改才会被保存。
修改iptables之前,一定先要保存一份。昨天犯错误,service iptables restart 不成功,后来执行service iptables save,结果iptables的规则被置空了,费了好大劲才恢复过来。
bzip2 -k hello.txt 这样压缩文件,压缩前的文件还存在
浙公网安备 33010602011771号