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

How to use the common command chsh in Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use the Linux command chsh. I hope you will get something after reading this article. Let's discuss it together.

The Linux common command chsh command is used to change the user's shell settings.

Syntax shell > > chsh instance shell > > chsh Changing fihanging shell for user1 Password: [del] New shell [/ bin/tcsh]: # [currently used shell] [del] shell > > chsh-l # display / etc/shells archive content / bin/bash / bin/sh / bin/ash / bin/bsh / bin/tcsh / bin/csh change the current shell. The current shell is set to / / bin/bash. Use the chsh command to change the setting of shell / bin/csh.

# chsh Changing shell for root. New shell [/ bin/bash]: / bin/csh / / enter a new shell address Shell changed. Change the current shell setting with the-s parameter

# chsh-s / bin/csh / / change the current setting to / bin/csh Changing shell for root. Shell not changed. After reading this article, I believe you have a certain understanding of "how to use Linux commands chsh". If you want to know more about it, you are 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

Development

Wechat

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

12
Report