Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Uname utility in *nix retrieves wonderful meta information about the machine. Where is this information stored?

share|improve this question
add comment

4 Answers

up vote 1 down vote accepted

The uname command is actually a front end for a system call that does the same thing. The kernel pretty much knows what it is. You can also see this information on, for example /proc/sysinfo.

share|improve this answer
add comment

Part of the utsname information is also accessible via

/proc/sys/kernel/{ostype, hostname, osrelease, version, domainname}

see uname man page

share|improve this answer
add comment

The kernel, mostly, where at least the hostname is usually read from /etc/hostname or a similar file during bootup.

share|improve this answer
add comment

The uname command retrieved informations are stored in etc/hostname that hostname file contains your machine name.

share|improve this answer
    
No. It contains only the hostname, no kernel related information. –  Michael Nov 24 '12 at 10:22
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.