21篇测试必备的Linux常用命令,每天敲一篇,每次敲三遍,每月一循环,全都可记住!!
https://www.cnblogs.com/poloyy/category/1672457.html
显示文件的前5行(两种方式)
head -n 5 test.txt head -5 test.txt
显示文件的前100个字符
head -c 100 test.txt
显示文件的第10-20行
head -20 test.txt | tail -10
21篇测试必备的Linux常用命令,每天敲一篇,每次敲三遍,每月一循环,全都可记住!!
https://www.cnblogs.com/poloyy/category/1672457.html
head -n 5 test.txt head -5 test.txt
head -c 100 test.txt
head -20 test.txt | tail -10