avatar
login shell and normal shell?# Unix - 噫吁兮,危乎高哉
s*n
1
what are the differences between them? these really diffuse
me for a long time, thanks!
avatar
m*m
2
login shell is the shell a user uses when she logs in as
specified in passwd file. normal shell can be started any
time.
~{!>~} ~{TZ~} skyocean (skyocean~~working) ~{5D4sWwVPLa5=~}:
~{!?~}
avatar
w*n
3
And, they read different rc files when startup.
Refer to the manual.

【在 m*******m 的大作中提到】
: login shell is the shell a user uses when she logs in as
: specified in passwd file. normal shell can be started any
: time.
: ~{!>~} ~{TZ~} skyocean (skyocean~~working) ~{5D4sWwVPLa5=~}:
: ~{!?~}

avatar
c*t
4
login shell and the normal shell are almost the same.
On most systems, they use the same command executable.
If sh/csh/tcsh were run as the login shell, they would
modify their process name in memory to -sh/-csh/-tcsh.

【在 s******n 的大作中提到】
: what are the differences between them? these really diffuse
: me for a long time, thanks!

avatar
w*n
5
The '-' of the process names of shells are not added by
themselves. They are given by the process who invoked
shells, indicating that they should act as login shell.
This effect can also be enabled by command-line options,
-login for bash, or -l for tcsh.

【在 c*****t 的大作中提到】
: login shell and the normal shell are almost the same.
: On most systems, they use the same command executable.
: If sh/csh/tcsh were run as the login shell, they would
: modify their process name in memory to -sh/-csh/-tcsh.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。