Linux上查看大文件的开头几行内容以及结尾几行的内容

head -n 50 filePath
查看开头50行的内容

tail -n 50 filePath
查看文件结尾50行的内容

原文地址:https://www.cnblogs.com/mrnx2004/p/10415082.html