An ad-free and cookie-free website.
Learn to close the terminal at the Linux command line.
Videos can also be accessed from the Linux Essentials Playlist on YouTube.
Linux exit Command Summary with Examples (2:48)
Our first word, or command to memorize is
exit from the category Navigation.
exit allows you to logout, close the
Terminal and go back to your visually appealing GUI.
|There are no options|
If it helps, think of commands as mini programs and most have this
structure. First, type the
command, second the
option(s) and third the
exit command interestingly has
no options and no arguments. It is
exit followed by Enter.
Normally we will cover two to three of the most important options,
marked with a dash and a letter. Like
-a for example. Options can be combined
to perform multiple options at once.
Arguments usually refer to files or directories you're performing the operation on, but in this case we have none.
So why is
exit an important command?
Well, you need to know how to get in to the terminal, and how to get
out. And now you know how to do that.
Okay, the best way to embed this in your memory is by typing in your own terminal window.
Find this on your Mac using a program called Terminal. On Linux use Terminal or Konsole, and currently Microsoft is adding this functionality to Windows 10.
Here we go, type
exit and no options
and no arguments, hit enter and you're done.
Okay now you know how to use
And you know the syntax for commands, options and arguments.
One last tip about the
The keystroke combination
accomplishes the same thing with fewer keystrokes.
Okay, thanks for visiting today. I hope this was a fun exploration of
For and overview of the 100 videos, the 8 quizzes, a cheat sheet, the categories and a Q&A section, visit:
First off, subscribe at YouTube and follow on Twitter so you don't miss out.
whatis, click Next.
A newly-updated free resource. Connect and refer a friend today.