Thursday, 17 January 2019 .::. Your IP: 54.205.211.87 
Home Tips & Tricks System information on Linux box

System information on Linux box


This will show you how to check the system information on a linux box.

Note: You will need to be logged as root.

1. Checking the CPU of the server:
You will need to execute the command: cat /proc/cpuinfo
Example:
User@Linux ~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Celeron(R) CPU 2.40GHz
stepping : 9
cpu MHz : 2400.485
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr
bogomips : 4805.18
clflush size : 64




2. Checking the RAM:
The command is: free -m
User@Linux ~# free -m
total used free shared buffers cached
Mem: 493 446 46 0 203 70
-/+ buffers/cache: 172 321
Swap: 988 0 988




3. Checking the CPU + architecture and all important server information:
The command is: uname -a
Example:
User@Linux ~# uname -a
Linux Linux 2.6.25-gentoo-r2 #6 SMP Thu May 15 09:45:40 UTC 2008 i686 Intel(R) Celeron(R) CPU 2.40GHz GenuineIntel GNU/Linux




4. Checking the Linux version and distribution:
The command is: cat /proc/version
Example:
User@Linux ~# cat /proc/version
Linux version 2.6.25-gentoo-r2 (root@Linux) (gcc version 4.1.2 (Gentoo 4.1.2 p1.1)) #6 SMP Thu May 15 09:45:40 UTC 2008




5. Checking the IPs of your server:
The command is: ifconfig
Example:
User@Linux ~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:09:2B:B5:33
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.255.0
inet6 addr: XX.XX.XX.XX Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37367673 errors:0 dropped:0 overruns:0 frame:0
TX packets:7428561 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4227687153 (4031.8 Mb) TX bytes:4276565688 (4078.4 Mb)
Interrupt:23 Base address:0x4000

eth0:1 Link encap:Ethernet HWaddr 00:11:09:2B:B5:33
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:23 Base address:0x4000

eth0:2 Link encap:Ethernet HWaddr 00:11:09:2B:B5:33
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:23 Base address:0x4000

eth0:3 Link encap:Ethernet HWaddr 00:11:09:2B:B5:33
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:23 Base address:0x4000

eth0:4 Link encap:Ethernet HWaddr 00:11:09:2B:B5:33
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:23 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:39578 errors:0 dropped:0 overruns:0 frame:0
TX packets:39578 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7009047 (6.6 Mb) TX bytes:7009047 (6.6 Mb)
Note: For a security measures I've changed the real IPs with XX.XX.XX.XX




6. Checking the uptime of the server:
The command is: uptime
Example:
User@Linux ~# uptime
12:47:15 up 54 days, 21:08, 1 user, load average: 0.00, 0.00, 0.00




7. Checking the performance and all running processes on your server:
The command is: top




Good luck! I'll continue updating the article.


Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Facebook! Slashdot! StumbleUpon! TwitThis Joomla Free PHP