Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the system you're using, but are there some standard commands to tell me what version of Unix/Linux I'm on and basic system information (like if it is a 64-bit system or not), and that sort of thing?
Basically, if you just logged into a box and didn't know anything about it, what things would you check out and what commands would you use to do it?
Best Answer
If I need to know what it is say Linux/Unix , 32/64 bit
This would give me almost all information that I need,
If I further need to know what release it is say (Centos 5.4, or 5.5 or 5.6) on a Linux box I would further check the file
/etc/issue
to see its release info ( or for Debian / Ubuntu/etc/lsb-release
)Alternative way is to use the
lsb_release
utility:Or do a
rpm -qa | grep centos-release
orredhat-release
for RHEL derived systems