Questions tagged [uname]

A command on Unix and Unix-like operating systems that prints out information about the machine and OS.

uname is a command on Unix and Unix-like operating systems that prints out information about the machine and OS.

This tag is used when asking for ways to get information about the machine.

Frequently asked questions

References

53 questions
0
votes
1 answer

Error checking with uname(2)?

Is it necessary to check for errors after calling uname(2)? According to the manual page: On success, zero is returned. On error, -1 is returned, and errno is set appropriately. and under the ERRORS heading, EFAULT buf is not…
yossarian
  • 1,537
  • 14
  • 21
0
votes
1 answer

How to get uname correct info with uname_hack

I need to get correct information from uname command when uname-hack script is running on Solaris. More details about uname-hack: https://blogs.oracle.com/jonh/entry/it_s_been_a_long There is any file that contain this information or any command…
kobi
  • 313
  • 1
  • 3
  • 10
0
votes
1 answer

Device Name for iPad Mini Retina

on IOS calling uname() will return the device name. The only doc i could find is this website but it does not contain the iPad Mini Retina in the list. Does anyone know what uname() will return on that device ? Thanks, Razvan.
Raxvan
  • 6,257
  • 2
  • 25
  • 46
0
votes
1 answer

How to identify the flavour of linux using uname -a or lsb_release -a commands?

I am new to unix. I just want to check the flavour of my linux machine and tried the below commands [root@ab-l13-i05 jetty-license]# uname -a Linux ab-l13-i05 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64…
user2531569
  • 609
  • 4
  • 18
  • 36
0
votes
3 answers

How to get kernel version without arch

I am looking for a command that will return the kernel build without the architecture. uname -r returns: 2.6.32-279.22.1.el6.x86_64 but I only need 2.6.32-279.22.1.el6 I can do this using a regex and chomp everything past the last dot
Sauraus
  • 95
  • 13
0
votes
2 answers

Good way to send result of 'uname -a' to a stream?

What is a good way to call 'uname -a' from a C++ program and send the results to a stream? I looked at system() and exec(), but they do not seem to give access to the stdout of the call. Thanks. -William
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
0
votes
1 answer

Updating kernel in Ubuntu 12.04 LTS doesn't seem to work

I am trying to update my kernel for Ubuntu 12.04 LTS from 3.4.0 to the newest version available, but uname -r continues to return 3.4.0 no matter what I do. I have also tried to reboot my system multiple times, to no avail. The output of sudo…
iphonedev7
  • 295
  • 1
  • 7
  • 17
0
votes
2 answers

Adding some extra info in uname -v output string in linux kernel

On my Linux machine when i run uname -v it gives me #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 Now i am building my custom kernel and i need to show some flag/text info about build in this string .. i want something like if some config are on…
Jeegar Patel
  • 26,264
  • 51
  • 149
  • 222
1 2 3
4