检查文件两个互补的命令是head 和tail, 它们分别用于查看文件的开始(头部)和结束(尾部).head命令展示了文件的前10行.(Listing 11). ##Listing 11: 查看示例文件的开始 $ head sonnets.txt Shake-speare's Sonnets I From fairest creatures we desire increase, That thereby beauty's Rose might never die, But as the ripe…