[Linux]文件显示

head hi.txt: 显示前面若干行

head -500 hi.txt: 显示前500行

tail hi.txt: 显示后面若干行

tail -20 hi.txt: 显示最后二十行

tail +30 hi.txt: 显示从40行开始到结尾

more: 分页显示

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

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.