head -n 50 filePath 查看开头50行的内容 tail -n 50 filePath 查看文件结尾50行的内容 转载于:https://www.cnblogs.com/mrnx2004/p/10415082.html