Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

uname(2) [minix man page]

UNAME(2)							System Calls Manual							  UNAME(2)

NAME
uname - get system info SYNOPSIS
#include <sys/utsname.h> int uname(struct utsname *name) DESCRIPTION
Uname() fills a struct utsname with system information. This structure is described in <sys/utsname.h> as follows: struct utsname { char sysname[15+1]; /* System name */ char nodename[255+1]; /* Node/Network name */ char release[11+1]; /* O.S. release */ char version[7+1]; /* O.S. version */ char machine[11+1]; /* Machine hardware */ char arch[11+1]; /* Architecture */ }; The strings are always null terminated, and may be of a different length then shown here. The first five are required by POSIX, the last is Minix specific. SEE ALSO
uname(1). AUTHOR
Kees J. Bot (kjb@cs.vu.nl) UNAME(2)

Check Out this Related Man Page

utsname.h(3HEAD)						      Headers							  utsname.h(3HEAD)

NAME
utsname.h, utsname - system name structure SYNOPSIS
#include <sys/utsname.h> DESCRIPTION
The <sys/utsname.h> header defines the structure utsname, which includes the following members: char sysname[] /* name of this implementation of the operating */ /* system */ char nodename[] /* name of this node within an implementation- */ /* defined communications network */ char release[] /* current release level of this implementation */ char version[] /* current version level of this release */ char machine[] /* name of the hardware type on which the system is */ /* running */ The character arrays are of unspecified size, but the data stored in them is terminated by a null byte. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
uname(2), attributes(5), standards(5) SunOS 5.10 10 Sep 2004 utsname.h(3HEAD)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I find Unix Version

I am extremely new here. Someone wants to upgrade off of Unix to Windows 2000 and wants to know if they need to buy new hardware How do I find out what type of Unix they're using? How do I find out the current hardware of the system? (Intel, ..etc) Thanks (3 Replies)
Discussion started by: tomsha
3 Replies

2. UNIX for Dummies Questions & Answers

emacs error... help!

i am telnet-ing into my university's UNIX system and trying to edit some perl code in emacs. However any time i try to open it in emacs i get the following error message: > emacs project1.cgi Error: Couldn't find per display information > i also cannot create any new documents in emacs and... (7 Replies)
Discussion started by: jeffro
7 Replies

3. Post Here to Contact Site Administrators and Moderators

OS Type and Version

I have seen quite a few posts recently which have launched into questions about specfic errors whose resolution depends a lot upon the OS type and version. I suggest that in the FAQ an additional entry be included, either under general board usage or posting threads, that informs the user to... (6 Replies)
Discussion started by: saabir
6 Replies

4. UNIX for Dummies Questions & Answers

Deleting unamed directories

SCO 5.06 Someone broke into my NT box (grrr) and somehow, they created a bunch of directories w/ subdirectories that appear un-named. I mounted the drive on my unix box using NFS and when I listed the directory in unix, Im getting a bunch of ascii charachters. drwxr-xr-x 8 root group... (4 Replies)
Discussion started by: gseyforth
4 Replies

5. UNIX for Dummies Questions & Answers

Wrong 'uname' )

Hi ! I heard that root can modify the uname -command, so it will show the wrong kernel version. Is it true? can you tell more about this /give links ? system: linux/*bsd. thanks in advance (14 Replies)
Discussion started by: DCrystal
14 Replies

6. Shell Programming and Scripting

How to Change Uname output?

I want use fake uname anyone can guide? (9 Replies)
Discussion started by: redstaing
9 Replies

7. Shell Programming and Scripting

ssh and remote command exec `uname -r`

Hi guys, I am trying to do a ssh for performing a set of actions. Find it below: I need to put the user/ kernel/ DISTRO variables before I complete this operation. what I observed is when ever I put a `command` in those quotes, it performs thta action in local system rather than remote one.... (5 Replies)
Discussion started by: jbmukund
5 Replies

8. AIX

uname -S newhostname

hi freinds recently i have change hostname node as using uname -s ******* but next time i saw the name using uname -n the name did t changed is that i have to reboot the system (4 Replies)
Discussion started by: senmak
4 Replies

9. Solaris

uname help

hi all, Operating System Name : Unix Sun Solaris Operating system release level : 5.10 Operating system version : Generic_137111-06 i know the release level that is kernel version Generic_137111-06 what is number... (6 Replies)
Discussion started by: coxmanchester
6 Replies

10. Shell Programming and Scripting

Echo and a command's output on the same line

Hello, I'm writing some bash scripts and I'm trying to get an echo command and the output of another command to display on the same line. For example: I want to run echo "Operating System: " unameand have it displayed as Operating System: Darwin Thanks for your help! (7 Replies)
Discussion started by: codyhazelwood
7 Replies

11. UNIX for Advanced & Expert Users

tr command with uname -n

Using the command : echo $eup_terminal_code | tr -s 'mil vrn qcm' 'mci pql qcm' it works,but this translation changes depending on the system. I'd like to define the following variables ,one for each system : mil22h_from='mil vrn frl' mil22h_to='mci vci fci' ... (4 Replies)
Discussion started by: Pierluigi.sala
4 Replies

12. Fedora

uname too vague?

Hi all, I am ssh'ed into a cluster and want to install a package. However, I don't know which type to chose (CentOS, Fedora, OpenSuSE are some of the options). I ran called uname with various arguments but none are specific... $ uname -n resolute.research... $ uname -i x86_64 $ uname... (6 Replies)
Discussion started by: neurorad
6 Replies

13. Shell Programming and Scripting

print system("uname -n") is not working .Pls help

awk '{if ($1 == "State:" && $2 == "Okay") {print system("uname -n")}}' ---------- Post updated at 01:20 AM ---------- Previous update was at 01:19 AM ---------- it is printing uname -n instead of printing the output of the command (8 Replies)
Discussion started by: rishiraaz
8 Replies

14. UNIX for Dummies Questions & Answers

uname -a output

Can anyone please let me know the meaning of output of uname -a ? I am totally new to unix or linux and just thinking to start learning. When I run uname -a the output I get is - "Linux blx28ap01 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux" I want to... (7 Replies)
Discussion started by: csrohit
7 Replies

15. Shell Programming and Scripting

to hide uname and pwd

Hi all, In Unix shell script i am connecting to oracle database and it is executing fine, my problem is my user name and password is visible for all, how to hide. Note -- username and password is hard coded, it is my requirement example-- #!/bin/sh ------ ------ sqlplus uname/pwd... (4 Replies)
Discussion started by: krupasindhu18
4 Replies