亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 3805 | 回復: 13
打印 上一主題 下一主題

終于明白為什么同時有/sbin/sh和/bin/sh了 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2002-09-20 08:25 |只看該作者 |倒序瀏覽
Both /sbin/sh and /usr/bin/sh shells are Bourne shells.

The difference is that /sbin/sh is statically linked and /usr/bin/sh is
dynamically linked.  There is also /bin/sh, however /bin is just a symbolic
link to /usr/bin.

# ls -l /sbin/sh
-r-xr-xr-x   2 bin      root      251712 Jul 16  1997 /sbin/sh

# file /sbin/sh
/sbin/sh:       ELF 32-bit MSB executable SPARC Version 1, statically linked, stripped

# ldd /sbin/sh
ldd: /sbin/sh: file is not a dynamic executable or shared object


# ls -l /usr/bin/sh
-r-xr-xr-x   3 bin      root       88620 Jul 16  1997 /usr/bin/sh

# file /usr/bin/sh
/usr/bin/sh:    ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped

# ldd /usr/bin/sh
        libc.so.1 =>;     /usr/lib/libc.so.1
        libdl.so.1 =>;    /usr/lib/libdl.so.1

Dynamically linked binaries use shared libraries during their execution.  This
makes them smaller in size and when libraries get updated, the binaries will
automatically use the updated libraries.

Statically linked binaries contain all the code within them.  They do not
use shared libraries at all.  This makes them larger in size.  The useful thing
about statically linked binaries is that they can run all by themselves as
they do not depend on shared libraries.  If the system is "broken" and libraries
were removed, damaged, or /usr is not mounted, /sbin/sh can still be executed.

This is why it is recommended to use /sbin/sh as the default root shell.      

論壇徽章:
0
2 [報告]
發(fā)表于 2002-09-20 08:52 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

長見識.

論壇徽章:
0
3 [報告]
發(fā)表于 2002-09-20 08:58 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

好,應該加入精華區(qū)

論壇徽章:
0
4 [報告]
發(fā)表于 2002-09-20 09:17 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

不錯,up

論壇徽章:
0
5 [報告]
發(fā)表于 2002-09-20 09:27 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

繼續(xù)發(fā)揚

論壇徽章:
0
6 [報告]
發(fā)表于 2002-09-20 09:36 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

好ENGLISH~~

論壇徽章:
0
7 [報告]
發(fā)表于 2002-09-20 10:01 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

是這樣的,我的機器因為換了主板,而不能啟動到單用戶狀態(tài)下,原來是/bin/sh ,后來我改成/sbin/sh 就能進入了。不錯

論壇徽章:
1
榮譽版主
日期:2011-11-23 16:44:17
8 [報告]
發(fā)表于 2002-09-20 10:53 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

確實不錯,進精

論壇徽章:
1
榮譽版主
日期:2011-11-23 16:44:17
9 [報告]
發(fā)表于 2002-09-20 10:58 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

很好的對比,但這個概念論壇很早就有了,只是沒有對比的那么詳細!

論壇徽章:
0
10 [報告]
發(fā)表于 2002-09-20 11:53 |只看該作者

終于明白為什么同時有/sbin/sh和/bin/sh了

謝謝你的分享!!! ^_^

    
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP