1.

To change the login shell in some system (like Linux) we can use ____ command.(a) chshell(b) chshl(c) chsh(d) chI have been asked this question during an interview.I would like to ask this question from Shell Basics in chapter The Shell of Unix

Answer»

Correct choice is (c) chsh

For explanation I would SAY: Some systems, offer the chsh COMMAND that can change the USER’s login shell. This command will accept the full pathname of an executable file on the system. -s option is USED with chsh command. However, it will ISSUE a warning if the shell is not listed in the /etc/shells file. For example,



Discussion

No Comment Found

Related InterviewSolutions