Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the chsh command of linux to change the user shell settings

2025-01-15 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report