0

当 uname-hack 脚本在 Solaris 上运行时,我需要从 uname 命令获取正确信息。有关 uname-hack 的更多详细信息: https ://blogs.oracle.com/jonh/entry/it_s_been_a_long 是否有任何文件包含此信息或任何可以为我提供正确信息的命令?

4

1 回答 1

1

您可以使用内核模块化调试器直接从内核中查看信息:

没有黑客:

# uname -a
SunOS s10u11 5.10 Generic_147148-26 i86pc i386 i86pc

随着黑客:

# uname -a
SunOS PowerPC 5.5.1 gate:1996-12-01 PPC i386 i86pc

# echo "$<utsname" | mdb -k
{
    sysname = [ "SunOS" ]
    nodename = [ "s10u11" ]
    release = [ "5.10" ]
    version = [ "Generic_147148-26" ]
    machine = [ "i86pc" ]
}
于 2014-12-10T09:28:46.307 回答