linux 常用命令记录

查看某个文件多少记录数: cat filename | wc -l

文件夹的文件按照时间排序: 升序 ls -lrt 降序 ls -lt

查看某个端口:lsof -i : 6379

查看磁盘空间:df -h

查看使用内存空间:free -m 单位为兆

static ip+dns settings in centos6.6 /etc/sysconfig/network-scripts/ifcfg-eth0

posted on 2016-07-22 16:54  fire-kylin  阅读(180)  评论(0编辑  收藏  举报