head /etc/services # 显示前10行 head /etc/services | nl # 显示前10行并显示行号 head -n 20 /etc/services head -20 /etc/services # 显示前20行 head -n 20 /etc/services | nl head -20 /etc/services | nl # 显示前20行并显示行号