Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
    
add comment

3 Answers

up vote 20 down vote accepted

If I need to know what it is say Linux/Unix , 32/64 bit

uname -a 

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.

Alternative way is

lsb_release -a

or do a rpm -qa | grep centos-release or redhat-release for RHEL derived systems

share|improve this answer
add comment

You should look into the uname command.

I have to deal with a large parc of heterogenous machines. uname -a is usually my first reflex when I log in.

share|improve this answer
add comment

type in the command line uname -a

That'll give you all the info you seek.

try also man uname to restrict the info

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.