现在我正在移植(即solaris到linux)项目..我使用一个命令即sun命令在solaris中,但我无法在linux中找到等效的命令。如果人都知道,请告诉我从solaris移植到linux(即太阳命令)
以下是在solaris太阳COMMAMD手册页(即人的太阳)
用户命令machid(1)
NAME machid,太阳,iAPX286,i286, i386,i486,i860,pdp11,sparc, u3b,u3b2,u3b5,u3b15,vax,u370 - 获取处理器类型的真相 值
概要 太阳
iAPX286
i386
pdp11
sparc
u3b5
u3b15
vax
u370
说明 如果使用的是下面的命令将返回真值(退出代码的0 )的指令集的命令 名称表示。
sun True if you are on a Sun system.
iAPX286 True if you are on a computer using an
iAPX286 processor.
i386 True if you are on a computer using an
u370 True if you are on an IBMO System/370 com-
puter.
The commands that do not apply will return a false (non-
zero) value. These commands are often used within makefiles
(see make(1S)) and shell scripts (see sh(1)) to increase
portability.
ATTRIBUTES 见以下attri- butes的描述属性(5):
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWcsu |
|_____________________________|_____________________________|
另请参阅 使(1S),SH(1),测试(1),真(1),UNAME(1),属性(5)
NOTES
的SunOS 5.10最近更新:1990年7月5日2
用户命令machid(1)
The machid family of commands is obsolete. Use uname -p and
uname -m instead.
问候, VEN
...... W时的T? – 2010-06-29 05:51:57
哪一个命令不能找到等价物? – 2010-06-29 06:45:47
至少可以说,你不清楚你询问的是什么命令。 – 2010-06-30 02:35:36