Skip to content
Smarter by Design.Simpler for Business

exit ​

exit is the built-in command that closes the open CLI session. It has no subcommand, field or option; writing it and pressing Enter is enough.

This command does not manage a resource; it is one of the terminal's own commands, not one of the API command tree.

Command Summary ​

TR7 WEB-CLI · exit
# close the session
admin@TR7LBWAF01> exit
admin@TR7LBWAF01>  
WritingResult
exitCloses the session
Ctrl + DDoes the same thing; there is no need to write a command

What Happens ​

When the session is closed, the CLI process ends and the connection drops. What follows depends on the way of connecting:

ConnectionAfter the session is closed
WEB-CLI inside the browserThe connection state and the Connect button appear in the terminal area; a new session is opened with the button
SSHThe connection closes; it is necessary to connect again

The closing of the session does not affect the configuration: the results of the commands that have been run are permanent, and a command that was left unfinished is not applied.

Ctrl + C does not close the session

Ctrl + C only interrupts the operation running at that moment and clears the line; the session stays open. The shortcut that closes the session is Ctrl + D.

The Difference Between exit and logout ​

The two commands do different things:

CommandWhat it doesResult
exit · Ctrl + DEnds the sessionThe connection closes; it is necessary to connect again
logoutDrops the user identityThe connection stays open and the prompt returns to the login> form

logout does not appear in every session

logout is listed only in the sessions in which the CLI is logged into with a user name and password. In the WEB-CLI inside the browser, because the identity is inherited from the panel session, this command does not appear; exit is used to close the session.

The Command History ​

The commands that are written are kept in a history specific to the user and are recalled with ↑ in the next session. The exit and logout lines are not written to the history; the lines that have been cancelled are not taken either. For the whole history, the history command can be consulted.

Things to Know ​

  • The session can also close by itself. If no command is run for a certain period, the session is closed because of inactivity; for the limits, the Web CLI main page can be consulted.
  • Minimizing the window does not close the session. The minimize button of the terminal window only hides the window, and the session stays open in the background. The close button in the title bar, on the other hand, cuts the connection; in this respect it gives the same result as exit.
  • It does not require authorization. Every user who has a session can run this command.