when I type:

 uname -v

from where this command (uname -v) take the OS version ? from which file/configuration-files ?

link|improve this question

which version of Solaris are you running ? – Iain Jan 9 at 10:58
feedback

2 Answers

up vote 2 down vote accepted

On Solaris, the uname(2) system call provides this information from the running kernel image. Your kernel image is likely at

/platform/`uname -m`/kernel/unix

or similar.

Where you can find old kernel images depends on how you upgraded your system. On newer versions of Solaris, if you have used Live Upgrade, lustatus will show you the available boot environments.

link|improve this answer
feedback

uname get's it's information from the /proc filesystem, which is a representation of the currently running kernel.

link|improve this answer
Did you know which file under /proc have the previous OS version , I ask this because I upgrade my SOLARIS version and I need to know also the previous OS version , so how to identify this info ? – Eytan Jan 9 at 10:37
Normally it's in /proc/version – SimonJGreen Jan 9 at 10:39
in SOLARIS I not have the file /proc/version – Eytan Jan 9 at 10:44
2  
Usually uname(1) uses the uname(2) syscall; this is true in at least Linux and Solaris. – Richard Kettlewell Jan 9 at 17:12
1  
@SimonJGreen Solaris doesn't (ab)use the /proc filesystem in the same way Linux does. /proc is only for information about running processes. – James O'Gorman Jan 10 at 14:23
show 1 more comment
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.