In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux's chsh command to change the user's shell settings, I hope you can learn a lot after reading this article, let's discuss it!
Chsh is used to change the login shell;. If there is no given shell,chsh on the command line, you will be prompted for a shell.
The chsh command itself is not complex, its function is relatively simple, it is responsible for viewing (showing) and modifying the login Shell; of our system. If you want to modify the login Shell, you must first know which Shell is installed on our system.
Chsh is only used to change local entries; use ypchsh, lchsh, or any other implementation for non-local entries.
Syntax format: chsh [parameters]
Common parameters:
-l print the shell list listed in / etc/shells and exit-s specify login shell-u print usage information and exit
Reference example
Use the-l parameter to print the shell listed in / etc/shells:
[root@linuxcool ~] # chsh-l
Change the current shell setting with the-s parameter:
[root@linuxcool] # chsh-s / bin/csh has finished reading this article. I believe you have some understanding of using linux's chsh command to change the user's shell settings. If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.