Here, options is one or more of the (Web site construction)
Thursday, January 31st, 2008Here, options is one or more of the options given in Table 23.2. Table 23.2 Options for the uname Command Option Description -a Prints all information -m Prints the current hardware type -n Prints the hostname of the system -r Prints the operating system release level -s Prints the name of the operating system (default) By default, the uname command prints the name of the operating system. The output looks like the following: $ uname Linux Here, the output indicates that the operating system name of the machine is Linux. Usually, this is enough to determine the UNIX version. For example, on FreeBSD systems, the output is FreeBSD and on HP-UX systems the output is HP-UX. The major exception to this is SunOS. Using the Operating System Release Level As previously mentioned, SunOS is the name of the UNIX operating system developed by Sun Microsystems. SunOS was originally based on BSD UNIX but has since changed to be based on System V UNIX. Although Sun Microsystems changed the marketing name of the new version to Solaris, both versions produce the output SunOS when uname is run. To use the correct versions of commands, shell scripts that have to run on both Solaris and the old SunOS must be able to detect the difference between these two versions. To determine whether a system is running Solaris or SunOS, you need to determine the version of the operating system. SunOS versions 5 and higher are Solaris (System V-based); SunOS versions 4 and lower are SunOS (BSD-based). To determine the version of the operating system, use the -r option of uname: $ uname -r 5.5.1 This indicates that the version of the operating system is 5.5.1. If you want to add the operating system’s name to this output, use the -r and the -s options: $ uname -rs SunOS 5.5.1 This indicates the machine is running Solaris. A machine running the BSD-based SunOS displays the
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.