QNX Developer Support
Terminate a session (UNIX)
The logout command terminates a session. You can execute this command only from a shell invoked by a login command; otherwise a message is printed and the logout command is ignored.
Logging In, Logging Out, and Shutting Down in the Neutrino User's Guide