[code]man sudo
.........
-H The -H (HOME) option sets the HOME environment variable to the
homedir of the target user (root by default) as specified in
passwd(5). By default, sudo does not modify HOME (see set_home and
always_set_home in sudoers(5)).
..........
-s The -s (shell) option runs the shell specified by the SHELL envi-
ronment variable if it is set or the shell as specified in
passwd(5).
[/code]这是在 Ubuntu 8.04 LTS 中 man sudo 的部分内容,怎么没有 sudo -sH?
王中云 于 2009-12-13 18:35:30发表:
应当除了共同的内核命令是一样,其他就有一定的自由度的:0wl;l1
acrofox 于 2009-12-13 15:13:56发表:
man bash
然后搜索 BUILTIN COMMANDS 就可以看到有哪些内部命令。
iblue 于 2009-12-13 13:01:44发表:
嗯嗯 有时有很大的区别
hejie_1207 于 2009-12-13 12:15:41发表:
2# zhaoyuzhong3694
纠正一下,你所列举的 ls, cd, cat, cut 四个命令中只有 cd 是 Shell 内部命令(更准确地说,应该是 Bash Shell 内部命令),其他 3 个都是程序,或者外部命令(External Command)。
常用的 Bash Shell 内部命令应该是如下几个:alias, bg, cd, echo, eval, exec, exit, export, readonly, "."(点),等等……
acrofox 于 2009-12-13 10:23:24发表:
受教受教:D
l460618498 于 2009-12-13 09:25:53发表:
ssh 啊
zhaoyuzhong3694 于 2009-12-13 08:41:01发表:
sudo 是个程序。
acrofox 于 2009-12-13 08:36:16发表:
[code]man sudo
.........
-H The -H (HOME) option sets the HOME environment variable to the
homedir of the target user (root by default) as specified in
passwd(5). By default, sudo does not modify HOME (see set_home and
always_set_home in sudoers(5)).
..........
-s The -s (shell) option runs the shell specified by the SHELL envi-
ronment variable if it is set or the shell as specified in
passwd(5).
[/code]这是在 Ubuntu 8.04 LTS 中 man sudo 的部分内容,怎么没有 sudo -sH?
shampoo 于 2009-12-13 00:57:40发表:
真正玩家,各个版本的命令都是一样滴!
Stanber 于 2009-12-13 00:10:21发表:
要不是特有的应该都有
ocsatv 于 2009-12-12 22:01:50发表:
不太懂这个
ubchia09 于 2009-12-12 20:37:35发表:
一些简单的文件命令应该是一样的了,但是象配置网络命令更新、软件(系统服务器类)安装的如果不一样,那学Linux学哪个版本好呢?
zhaoyuzhong3694 于 2009-12-12 20:18:23发表:
[i=s] 本帖最后由 zhaoyuzhong3694 于 2009-12-13 13:48 编辑 [/i]
避免误导。