In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "detailed explanation of login and logout commands of users in the Linux system". In daily operation, I believe that many people have doubts about the detailed explanation of login and logout commands of users in the Linux system. The editor has consulted all kinds of materials and sorted out simple and useful methods of operation. I hope it will be helpful to answer the doubts of "detailed explanation of login and logout commands of users in the Linux system". Next, please follow the editor to study!
Login
Login command: causes the user to give up his current identity and log in to the system again. You can also add users later, enter your password directly, and log in to the system.
Example:
The code is as follows:
[root@localhost test] # login
Logout
Logout user exits the system, and its function corresponds to the login command.
Example:
The code is as follows:
[root@localhost test] # logout
Exit
Various exits
Example:
The code is as follows:
[root@linux test] # exit # exit the current user and return to the previous user
Exit
[tank@linux test] #
Chsh
Chsh is used to change the user's login shell. If shell is not specified on the command line, chsh can prompt.
-s-- shell
Specify the user's login shell.
-l,-- list-shells
Display the list of shell in / etc/shells and exit.
-u,-- help
Show how to use, and then exit.
-v,-- version
Display version information and exit.
Example:
The code is as follows:
[root@localhost ~] # chsh # must change the shell of the current user
Changing shell for root.
New shell [/ bin/bash]: / bin/csh # enter a new shell address
Shell changed.
[root@localhost ~] # chsh-s / bin/csh # change the current user shell to / bin/csh
Changing shell for root.
Shell not changed.
At this point, the study on "detailed explanation of login and logout commands for users in the Linux system" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.