Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

uname(1) [osx man page]

UNAME(1)						    BSD General Commands Manual 						  UNAME(1)

uname -- Print operating system name SYNOPSIS
uname [-amnprsv] DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output. The following options are available: -a Behave as though all of the options -mnrsv were specified. -m print the machine hardware name. -n print the nodename (the nodename may be a name that the system is known by to a communications network). -p print the machine processor architecture name. -r print the operating system release. -s print the operating system name. -v print the operating system version. If no options are specified, uname prints the operating system name as if the -s option had been specified. SEE ALSO
hostname(1), machine(1), sw_vers(1), uname(3) STANDARDS
The uname utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). The -p option is an extension to the standard. BSD
November 9, 1998 BSD

Check Out this Related Man Page

UNAME(3)						   BSD Library Functions Manual 						  UNAME(3)

uname -- get system identification LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/utsname.h> int uname(struct utsname *name); DESCRIPTION
The uname() function stores nul-terminated strings of information identifying the current system into the structure referenced by name. The utsname structure is defined in the <sys/utsname.h> header file, and contains the following members: sysname Name of the operating system implementation. nodename Network name of this machine. release Release level of the operating system. version Version level of the operating system. machine Machine hardware platform. RETURN VALUES
The uname() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
The uname() function may fail and set errno for any of the errors specified for the library functions sysctl(3). SEE ALSO
uname(1), sysctl(3) STANDARDS
The uname() function conforms to IEEE Std 1003.1-1988 (``POSIX.1''). HISTORY
The uname() function first appeared in 4.4BSD. BSD
January 4, 1994 BSD
Man Page

13 More Discussions You Might Find Interesting

1. 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

2. AIX

aix swap

I have an unsupported legacy server: # uname -a AIX ibmms01 3 4 0054960A4C00 Following a period of poor performance, it was investigated using vmstat 10. There upto 10 blocked kernel threads reported, and free memory was down to 123. The scan rate was high, 3000+ with lots of page in page... (6 Replies)
Discussion started by: jabberwocky
6 Replies

3. UNIX for Dummies Questions & Answers

awk print line

Hi All, I know that i can print the lines from awk just using the print method, but i need to print stuff before it i.e: BEGIN { i=0 } { i++ print i ")" print } END { } Here the output is: (7 Replies)
Discussion started by: Chiefos
7 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Executable files

This question always confuses me :- Suppose I write a program and compile it on a machine with operating system A and processor B will the exe file run on a machine with operating system A2 but processor B operating system A but processor B2 operating system A2 and processor B2........ ... (9 Replies)
Discussion started by: nervous
9 Replies

6. UNIX for Dummies Questions & Answers

Change HostName

How to change host name in NCR Unix version 3.0 release 4.0 I got the OS version and OS release from executing uname -v and uname -r (9 Replies)
Discussion started by: nalina
9 Replies

7. Shell Programming and Scripting

ipaddress in HP-UX

Hi, How can I figure out the IP address of my node in HP-UX? Here is uname -a: /throra10 >uname -a HP-UX finprod B.11.23 U ia64 3832216299 unlimited-user license This is to launch Xterminal. Thanks. (7 Replies)
Discussion started by: RockyC123
7 Replies

8. 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

9. Programming

Building an operating system for senior project?

Hey guys! this is my first post on this site. I was hoping you guys could help me out. I am going to be a senior this year and I want to build an operating system from scratch or at least do as much of as I can by myself. I want to build nothing big like ubuntu but something smaller looking that... (10 Replies)
Discussion started by: Hoonathan
10 Replies

10. UNIX for Dummies Questions & Answers

How do I remove commands?

I would like to remove rsh, rcp, rlogin from my production server. How would i go about it? Should i remove them from their original location using rm? Will that impact on any other functionality? ---------- Post updated at 12:39 AM ---------- Previous update was at 12:16 AM ---------- ... (23 Replies)
Discussion started by: pinga123
23 Replies

11. 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

12. 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

13. Shell Programming and Scripting

Count the number of files copied from source to destination location

Hi Guys, how to count number of files successfully copied while coping files from source to destination path ex:10 files from source to target location copying if 8 files copied successfully then echo successfully copied=8 failure=2 files if two files get error to coping files from... (23 Replies)
Discussion started by: sravanreddy
23 Replies

Featured Tech Videos