[root@test ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.6 (Santiago)
Release: 6.6
Codename: Santiago
[root@test ~]# uname -a
Linux test 2.6.32-504.el6.x86_64 #1 SMP Tue Sep 16 01:56:35 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@test ~]# env(系统环境变量信息)
[root@test ~]# head -n 1 /etc/issue
查看系统资源
[root@test ~]# free –m(查看内存使用量和交换区使用量)
total used free shared buffers cached
Mem: 2006 1901 104 1 309 379
-/+ buffers/cache: 1212 793
Swap: 3999 578 3421
[root@test ~]# df –h(查看各分区使用情况)
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/asr_r0p3 62G 43G 17G 72% /
tmpfs 1004M 80K 1003M 1% /dev/shm
/dev/mapper/asr_r0p1 969M 34M 885M 4% /boot
[root@test ~]# du -sh /gdsfApps/webServer/apache-tomcat-6.0.35/logs/*(查看指定目录的大小)
8.0K /gdsfApps/webServer/apache-tomcat-6.0.35/logs/catalina.2017-08-17.log
92K /gdsfApps/webServer/apache-tomcat-6.0.35/logs/catalina.2017-08-17.out
0 /gdsfApps/webServer/apache-tomcat-6.0.35/logs/host-manager.2017-08-17.log
4.0K /gdsfApps/webServer/apache-tomcat-6.0.35/logs/localhost.2017-08-17.log
0 /gdsfApps/webServer/apache-tomcat-6.0.35/logs/manager.2017-08-17.log
网络
[root@test ~]# ifconfig(查看所有网络接口的属性)
eth0 Link encap:Ethernet HWaddr 00:11:25:8C:0A:E4
inet addr:192.168.80.152 bcast:192.168.80.255 mask:255.255.255.0。inet addr:192.168.80.151 bcast:192.168.80.255 mask:255.255.255.0。inet addr:192.168.80.153 bcast:192.168.80.255 mask:255.255.255.0。