In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How many ways can linux users log out? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
1. Enter exit at the shell prompt and press enter to confirm
2. Enter logout at the shell prompt and press enter to confirm
3. Press the shortcut key crtl+d (this method is the same as logout effect)
One of the commonly used commands in Linux-- exit and switch users exit, su
The exit command is the same as exiting shell and returns a given value, the execution of the current script can be terminated in the shell script, and the execution of exit causes the shell to exit with the specified status value.
If the status value parameter is not set, shell exits with a preset value, with a status value of 0 indicating success and other values indicating failure.
The su command is used to switch the current user identity to another user identity. When changing, you must enter the user account number and password to be changed.
Options:
-c or-- command=: restores its original identity after executing the specified instruction
-f or-- fast: suitable for csh and tsch, so that shell does not have to read startup files
-l or-- login: when you change your identity, you also change the working directory and HOME,SHELL,USER,logname. In addition, the PATH variable will be changed
-mmam preserve-environment or-- mam: do not change the environment variable when changing your identity
-s or-- shell=: specifies the shell to be executed
-- help: show help
-- version; displays version information.
There are several questions about the method of logging out of linux users to share the answers here, I hope the above content can be of some help to you, if you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.