摘要: linux查看日志文件内容命令tail、cat、tac、head、echo tail -f test.log 你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, cat mylog.log | tail -n 1000 #输出mylog.log 文件最后一千行。 把test.txt文件扔进垃圾箱,赋空值test.txt cat /dev/null > /etc/test.txt 注意:>意思是创建,>>是追加。千万不要弄混了。 echo "the echo command test!">a.sh 这个就会在a.sh文件中输出“the echo command test!”这一行文字! 阅读全文
posted @ 2015-10-29 21:51 大自然的流风 阅读(293166) 评论(0) 推荐(10)