bash4.3 # pwd
/bin
bash4.3 # ll sh
lrwxrwxrwx. 1 root root 4 May 17 22:22 sh -> bash
bash4.3 # ll bash
-rwxr-xr-x. 1 root root 1072056 May 17 22:22 bash
bash4.3 # bash
bash4.3 # sh
sh-4.3#
내 OS는 fedora 24 (기본 그놈 버전)입니다.
이 예에서, 우리는 알 수 있습니다 : 아래 /bin, bash바이너리 실행 파일입니다; sh에 대한 소프트 링크 bash입니다.
내 지식으로는와 type bash and press enter동일한 결과에 정확하게 영향을 미칩니다 type sh and press enter.
때 type bash and press enter, 나는 [root@localhost bin]#예상대로 얻는다 .
그러나, type sh and press enter내가 놀랍게도 얻을 수 sh-4.3#있습니다.
원인이 무엇입니까?