what are the differences between them? these really diffuse me for a long time, thanks!
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=~}: ~{!?~}
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=~}: : ~{!?~}
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!
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.