查看硬盘使用了多少容量
1 | [root@iZ2ze32 ~]# df -hl |
查看Linux系统是Centos还是Ubuntu
输入命令 lsb_release -a
1 | ## 现在有的系统可以用这个查出是否是centos还是ubuntu,如阿里云 |
当这个命令不管用的时候,可以使用命令 cat /etc/redhat-release
1 | ## 在ubuntu中会出现 |
查看Linux 某些程序进程 ps aux
比如:
1 | [root@iZ2ze3269b etc]# ps aux | grep mysql |
原文链接: http://yoursite.com/2018/10/31/Linux的常用命令/
版权声明: 转载请注明出处.