有关在Linux的学习中的一些积累,和一些常用命令的总结
主机上日志查看
摘要:1.查看日志常用命令 tail: -n 是显示行号;相当于nl命令;例子如下: tail -100f test.log 实时监控100行日志 tail -n 10 test.log 查询日志尾部最后10行的日志; tail -n +10 test.log 查询10行之后的所有日志; head: 跟t
阅读全文
posted @
2022-06-15 11:07
Smmer
阅读(406)
推荐(0)
Linux 常用命令集锦
摘要:1.查看系统的发行版本: 1>[root@CMCC_91 ~]# lsb_release -a2.查看系统的字符集: 1>[root@CMCC_91 ~]# locale3.主机名字 : 1>[root@CMCC_91 ~]#cat /etc/sysconfig/network4.查看时区 :...
阅读全文
posted @
2015-08-25 16:46
Smmer
阅读(260)
推荐(0)
Linux 用户管理
摘要:1.查看Linux已经存在的用户: [root@CMCC_91 ~]# cut -d : -f 1 /etc/passwd [root@CMCC_91 ~]# cat /etc/passwd |awk -F \: ‘{print $1}’ [root@CMCC_91 ~]# cat /etc/pas
阅读全文
posted @
2015-08-25 15:20
Smmer
阅读(397)
推荐(0)