日期:2014-05-16  浏览次数:20573 次

[Linux]文件显示
head hi.txt: 显示前面若干行
head -500 hi.txt: 显示前500行

tail hi.txt: 显示后面若干行
tail -20 hi.txt: 显示最后二十行
tail +30 hi.txt: 显示从40行开始到结尾


more: 分页显示
less: 也是分页,但可以按b向前翻