当前位置: 技术问答>linux和unix
shell脚本在不同操作系统中的差异
来源: 互联网 发布时间:2016-09-25
本文导语: 比如ps在suse上和hp上使用就不一样 还有没有别的,大家共享一下 | 这个不是shell脚本的差异,是ps命令的差异 suse上是Berkeley(BSD)标准 HP-UX上是System V(X/Open)标准 AIX上两者都支持 ps Command Purpose ...
比如ps在suse上和hp上使用就不一样
还有没有别的,大家共享一下
还有没有别的,大家共享一下
|
这个不是shell脚本的差异,是ps命令的差异
suse上是Berkeley(BSD)标准
HP-UX上是System V(X/Open)标准
AIX上两者都支持
ps Command
Purpose
Shows current status of processes. This document describes the standard AIX ps command as well as the System V
version of the ps command.
Syntax
X/Open Standards
ps [ -A ] [ -M ] [ -N ] [ -Z ] [ -a ] [ -d ] [ -e ] [ -f ] [ -k ] [ -l ] [ -F format] [ -o Format ] [ -c Clist ] [
-G Glist ] [ -g Glist ] [ -m ] [ -n NameList ] [ -p Plist ] [ -P ] [ -t Tlist ] [ -U Ulist ] [ -u Ulist ] [ -T pid ]
[ -L pidlist ] [ -X ]
Berkeley Standards
ps [ a ] [ c ] [ e ] [ ew ] [ eww ] [ g ] [ n ] [ U ] [ w ] [ x ] [ l | s | u | v ] [ t Tty ] [ X ] [ ProcessNumber
]
suse上是Berkeley(BSD)标准
HP-UX上是System V(X/Open)标准
AIX上两者都支持
ps Command
Purpose
Shows current status of processes. This document describes the standard AIX ps command as well as the System V
version of the ps command.
Syntax
X/Open Standards
ps [ -A ] [ -M ] [ -N ] [ -Z ] [ -a ] [ -d ] [ -e ] [ -f ] [ -k ] [ -l ] [ -F format] [ -o Format ] [ -c Clist ] [
-G Glist ] [ -g Glist ] [ -m ] [ -n NameList ] [ -p Plist ] [ -P ] [ -t Tlist ] [ -U Ulist ] [ -u Ulist ] [ -T pid ]
[ -L pidlist ] [ -X ]
Berkeley Standards
ps [ a ] [ c ] [ e ] [ ew ] [ eww ] [ g ] [ n ] [ U ] [ w ] [ x ] [ l | s | u | v ] [ t Tty ] [ X ] [ ProcessNumber
]
|
类似的还有tar命令
tar Command
Purpose
Manipulates archives.
Syntax
X/Open Standards:
tar {-c|-r|-t|-u|-x} [-B] [ -d ] [ -E ] [ -F ] [-h ] [ -i ] [ -l ] [ -m ] [ -o ] [ -p ] [ -s ] [ -U ] [ -v ] [ -w]
* [-Number] [-f Archive] [-b Blocks]
* [-S [Feet] [Feet @Density] [Blocksb]] [-L InputList] [-X ExcludeList]
* [-N Blocks] [-R] [-D] [-C Directory] File | Directory ...
Berkeley Standards:
tar {c |r|t|u|x} [bBdDEfFhilLXmNopRsSUvw[0-9] ]
* [ Blocks ] [ Archive ] [ InputList ] [ ExcludeFile ]
* [ [ Feet ] | [ Feet@Density ] | [ Blocksb ] ] Directory | File ...
tar Command
Purpose
Manipulates archives.
Syntax
X/Open Standards:
tar {-c|-r|-t|-u|-x} [-B] [ -d ] [ -E ] [ -F ] [-h ] [ -i ] [ -l ] [ -m ] [ -o ] [ -p ] [ -s ] [ -U ] [ -v ] [ -w]
* [-Number] [-f Archive] [-b Blocks]
* [-S [Feet] [Feet @Density] [Blocksb]] [-L InputList] [-X ExcludeList]
* [-N Blocks] [-R] [-D] [-C Directory] File | Directory ...
Berkeley Standards:
tar {c |r|t|u|x} [bBdDEfFhilLXmNopRsSUvw[0-9] ]
* [ Blocks ] [ Archive ] [ InputList ] [ ExcludeFile ]
* [ [ Feet ] | [ Feet@Density ] | [ Blocksb ] ] Directory | File ...