Linux system information commands.
Some time we need to drill down in the system for getting the details about the Linux system information such as memory/CPU details, architecture details etc. Hence this post about “Linux system information commands.” will help you to all the server information using commands.So here comes some important Linux system information commands. to help you with 🙂
NOTE: some Linux system information commands requires root account.
- uname -a : This command is short abbreviation for unix name. Uname command is very important command in Linux which shows kernel version and system architecture.
————————————————————–OUTPUT—————————————————
[root@kalwa2 ~]# uname -a
Linux kalwa2.home 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@kalwa2 ~]#
————————————————————–END OF OUTPUT——————————————
2. head -n1 /etc/issue : This command shows name and version of distribution of the linux server.
————————————————————–OUTPUT—————————————————
[root@kalwa2 ~]# head -n1 /etc/issue
Red Hat Enterprise Linux Server release 6.2 (Santiago)
[root@kalwa2 ~]#
————————————————————–END OF OUTPUT—————————————–
3. cat /proc/partitions : This command shows all partitions registered on the system.
————————————————————–OUTPUT—————————————————
[root@kalwa2 ~]# cat /proc/partitions
major minor #blocks name
8 0 20971520 sda
8 1 307200 sda1
8 2 16534528 sda2
8 3 4128768 sda3
[root@kalwa2 ~]#
————————————————————–END OF OUTPUT—————————————
Leave a Reply