When I connect to my server:
ssh [email protected]
I login with a password, and then do:
logout
I get this message "-sh: 2: logout: not found".
Why can't I log out ?
What does this message mean ? I mean Linux, how dare you.
Is this some kind of a logger ? Where does it keep messages ? I feel as an aspiring sys admin, I need to learn more about logger, for troubleshooting right ? Where can I learn some BASIC junior level things, any suggestions would be tremendously highly appreciated.
your login shell appears to be set to
/bin/sh
- which doesn't have alogout
builtin command (you can useexit
instead - which will have the same effect in this context)see (1)
no, it's just a message from the shell. There is a
logger
command however - you can learn about it by typingman logger
If you want to use the bash shell's
logout
command, then you can change your user's login shell using thechsh
command ex.