There are multiple ways to quit the shell, when you have finished using it and you want to end your session. Some of the most popular options to exit the shell are as follows:
- Typing the exit command anytime on the console terminates the current session.
- Pressing the Ctrl + D keys together is also a shortcut quite often used to terminate the current session.