Linux command
logout 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Exit login shell
logout
说明
logout exits a login shell. It terminates the current shell session and returns to the login prompt. The command is a shell builtin. It only works in login shells, not subshells.
FAQ
What is the logout command used for?
logout exits a login shell. It terminates the current shell session and returns to the login prompt. The command is a shell builtin. It only works in login shells, not subshells.
How do I run a basic logout example?
Run `logout` in a terminal, then adjust file names, paths, flags, or remote targets for your system.