返回命令列表

Linux command

logout 命令

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

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.