Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-30-2008, 08:31 PM   #1
Registered: Mar 2008
Posts: 35

Rep: Reputation: 15
<B> What is the difference between exit and logout</B>

Hello friends.
Please let me know the exact difference between exit and logout. I searched google, but could not find an answer. Thanks.
Old 12-30-2008, 08:39 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Exit can be used to exit any script. logout exits a login shell.

See man exit
Old 12-31-2008, 02:50 PM   #3
Registered: Mar 2008
Posts: 35

Original Poster
Rep: Reputation: 15
thank you for the reply.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable Gnome logout options to exit to the command prompt GreenJelly Fedora 2 07-21-2007 02:34 PM
logout/exit script ?? aherrys Linux - Software 3 12-30-2006 11:42 AM
difference between exit 1 and exit kushalkoolwal Programming 6 10-20-2005 03:56 PM
10.0 RC1 logout out from KDE needs CTRL-Z to exit 1kyle SUSE / openSUSE 0 09-23-2005 04:01 AM
RHL9.0 hangs when logout/exit command line mellsie25 Linux - Newbie 7 10-17-2003 09:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration