ls显示前几行或后几行数据

显示前3行数据

ls -l|head -n 3

显示后3行数据

ls -l|tail -n 3

猜你喜欢

转载自www.cnblogs.com/apff/p/10416121.html