As Software Engineers, you may come across situations of working on different Operating Systems. When you get a task of installing different software to a newly setup operating system, which is not the operating system you used to work on, you have to learn new things. So I had, and it was with CentOS, So I am here to share the things I have learnt from playing with CentOS with you. :)
What is CentOS?
Do you know about this OS? This was the first time I worked with CentOS. The name is abbreviated from "Community Enterprise Operating System". And it is a community-supported Linux distribution for enterprise class. Simply it is kind of a compatible version of Read Hat Enterprise Linux(RHEL).
The very first thing I wanted to do was to know about the OS. Since it was a separate server, I had to use SSH client Putty for logged to the server. Then I wanted to check the information of the installed OS. And what I have found out and checked it out as follows.
1) How to find the kernel name ?
(-s)
cmd# uname -s
Linux
(-s)
cmd# uname -s
Linux
2) How to find the Network node hostname ?
(-n)
cmd# uname -n
abc-vm
3) How to find the kernel release ?
(-r)
cmd# uname -r
2.6.32-220.el6.x86_64
(-r)
cmd# uname -r
2.6.32-220.el6.x86_64
4) How to find the kernel version ?
(-v)
cmd# uname -v
1 SMP Tue Dec 6 19:48:22 GMT 2011
(-v)
cmd# uname -v
1 SMP Tue Dec 6 19:48:22 GMT 2011
5) How ti find the machine hardware name ?
(-m)
cmd# uname -m
x86_64
(-m)
cmd# uname -m
x86_64
6) How to find the processor type ?
(-p)
cmd# uname -p
x86_64
(-p)
cmd# uname -p
x86_64
7) How ti find the hardware platform?
(-i)
cmd# uname -i
x86_64
(-i)
cmd# uname -i
x86_64
8) How ti find the operating system ?
(-o)
cmd# uname -o
GNU/Linux
Hope this will help some one else too !! :)
(-o)
cmd# uname -o
GNU/Linux
Hope this will help some one else too !! :)
Cheers
"do good and good will come to you!"
No comments:
Post a Comment