Linux怎么显示文件指定行数的内容

Linux如何显示文件指定行数的内容
参考链接:http://jingyan.baidu.com/article/b24f6c823d9bae86bfe5daa5.html

1、tail -n +/-数字 文件名

2、head -n 数字 文件名

3、sed -n "开始行,结束行p" 文件名