uname
From NetBSD Wiki
uname -- Print operating system name
The uname(1) utility writes symbols representing one or more system characteristics to the standard output.
Uname is generally used to determine the system type and name.
Contents |
Common Options
Common Options are :
-a Behave as though all of the options were specified.
-s print the operating system name.
-r print the operating system release.
-m print the machine hardware name.
Examples
% uname -srm NetBSD 3.99.24 amd64
% uname -a NetBSD lfs.aydogan.net 3.99.24 NetBSD 3.99.24 (GENERIC_LAPTOP) #38: Thu Aug 3 17:48:18 CEST 2006 zafer@h990596:/usr/obj/sys/arch/i386/compile/GENERIC_LAPTOP i386
% uname -a NetBSD vax.on.kr 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 04:32:35 UTC 2005 builds@b4.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/vax/200512182024Z- obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/vax/compile/GENERIC vax
