{"id":2283,"date":"2020-12-04T14:34:45","date_gmt":"2020-12-04T14:34:45","guid":{"rendered":"https:\/\/linuxways.net\/?p=2283"},"modified":"2020-12-04T14:44:07","modified_gmt":"2020-12-04T14:44:07","slug":"how-to-log-out-of-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-log-out-of-centos-8\/","title":{"rendered":"How to log out of CentOS 8"},"content":{"rendered":"<p>When multiple users are using your system, you need to logout from one user account and login back in with another user. At that time, switching the user option is not a good choice because by doing this current session running in the background. Therefore, when you logout a user, it will quit the current user\u2019s session, and running processing will also close on your system.<\/p>\n<p><strong>Today, we will discuss how to logout of the CentOS 8 system using a list of all possible methods. All methods are executed on CentOS 8 Linux system.<\/strong><\/p>\n<p>Using the following different ways you can log out of the CentOS 8 system:<\/p>\n<ol>\n<li>Logout using the command line<\/li>\n<li>Logout session using the CentOS system menu<\/li>\n<li>Logout using the Activities application search<\/li>\n<li>Logout using the keyboard shortcut<\/li>\n<\/ol>\n<p>All the above-mentioned methods are approximately some Linux distributions like Ubuntu, Debian, and CentOS. So, let\u2019s start the article in detail!<\/p>\n<h2><strong>Method 1: Logout using the Command line on CentOS 8<\/strong><\/h2>\n<p>In this method, we will discuss how to logout of the current user session using the command line. On most of the Linux distribution, users do their jobs by running the different commands on the terminal. Therefore, launch terminal from the system \u2018Activities\u2019 located on the top left corner in CentOS 8. Click on it and then from the sidebar open the terminal application by clicking on the terminal icon which is also highlighted in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1452\" height=\"892\" class=\"wp-image-2284\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-26.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-26.png 1452w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-26-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-26-1024x629.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-26-768x472.png 768w\" sizes=\"auto, (max-width: 1452px) 100vw, 1452px\" \/><\/p>\n<p>Now, use the below-given command in order to logout from the current user\u2019s account on the CentOS 8 system:<\/p>\n<pre>$ gnome-session-quit<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"97\" class=\"wp-image-2285\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-27.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-27.png 948w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-27-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-27-768x79.png 768w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/p>\n<p>The dialog will show on the desktop. Click on the \u2018Logout\u2019 if you want to quit the current user session otherwise, close it to remain logged in with this user account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1108\" height=\"441\" class=\"wp-image-2286\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-28.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-28.png 1108w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-28-300x119.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-28-1024x408.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-28-768x306.png 768w\" sizes=\"auto, (max-width: 1108px) 100vw, 1108px\" \/><\/p>\n<h2><strong>Method 2: Logout session using the CentOS 8 system menu<\/strong><\/h2>\n<p>In this method, you will click on the arrow sign in order to open the more drop menu options. The list of options will display in the top right corner. Click on the current login user name. Now, click on the logout to close the current user session. You can also show this in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"742\" class=\"wp-image-2287\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-29.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-29.png 540w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-29-218x300.png 218w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/p>\n<p>Again, click on the \u2018Logout\u2019 option in order to quit the current session.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"387\" class=\"wp-image-2288\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-30.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-30.png 891w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-30-300x130.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-30-768x334.png 768w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/p>\n<h2><strong>Method 3: Logout using the Activities application search on CentOS 8<\/strong><\/h2>\n<p>Click on the \u2018Activities\u2019 and type the \u2018Log Out\u2019 keyword in the search bar. As a result, you will see the logout icon under the search bar. Click on it in order to logout from the CentOS 8 environment. You can also see this in the following screenshot:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1681\" height=\"404\" class=\"wp-image-2289\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-31.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-31.png 1681w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-31-300x72.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-31-1024x246.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-31-768x185.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-31-1536x369.png 1536w\" sizes=\"auto, (max-width: 1681px) 100vw, 1681px\" \/><\/p>\n<h2><strong>Method 4: Logout using the keyboard Shortcuts in CentOS 8<\/strong><\/h2>\n<p>To logout using the keyboard, first, you will search for the shortcut keys. So, type keyboard shortcuts in the search bar and click on the following highlighted displayed option:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1906\" height=\"732\" class=\"wp-image-2290\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-32.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-32.png 1906w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-32-300x115.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-32-1024x393.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-32-768x295.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-32-1536x590.png 1536w\" sizes=\"auto, (max-width: 1906px) 100vw, 1906px\" \/><\/p>\n<p>The following window will display on the CentOS 8 desktop. Scroll your mouse pointer and you will see the logout shortcut keys in the list. Click on the \u2018Ctrl+Alt+Delete\u2019 in order to logout from the current user\u2019s account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1911\" height=\"917\" class=\"wp-image-2291\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-33.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-33.png 1911w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-33-300x144.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-33-1024x491.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-33-768x369.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-33-1536x737.png 1536w\" sizes=\"auto, (max-width: 1911px) 100vw, 1911px\" \/><\/p>\n<p>Or you can also change the keyboard shortcut by clicking on the displayed option. The following window will appear on the system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"374\" class=\"wp-image-2292\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-34.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-34.png 665w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-34-300x169.png 300w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/p>\n<p>Press the \u2018Esc\u2019 key to cancel the dialog and if you want to set this shortcut then, press the \u2018Backspace\u2019 key.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>If you want to close the current user session then, Logging out of the system is the best choice. We have elaborated on different methods in order to log out of the CentOS 8 system in this article. Now, you can select any method from all of the above based on your convenience.<\/p>","protected":false},"excerpt":{"rendered":"<p>When multiple users are using your system, you need to logout from one user account and login back in with another user. At that time, switching the user&hellip;<\/p>","protected":false},"author":2,"featured_media":2294,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[93,92],"class_list":["post-2283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos-8","tag-log-out"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=2283"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2283\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/2294"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=2283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=2283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=2283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}