Linux一些命令

时间:2021-08-08 23:03:22   收藏:0   阅读:27

head:查看某文件前几行

head a.txt    查看a的前10行

head -6 a.txt 或 head -n 6 a.txt     查看a的前6行

head -n -6 a.txt     查看a除了后6行的其余行

tail a.txt   查看后10行

tail -6 a.txt 或 tail -n 6 a.txt 或 tail -n -6 a.txt     查看a的后6行

 

vmstat:查看虚拟内存或主内存的情况,swpd为虚拟内存

原文:https://www.cnblogs.com/wen2077/p/15115916.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!