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

Solaris change SHELL

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The default SHELL of Solaris is sh, which is located in / usr/bin/sh. You can change it to the familiar bash of common Linux, and directly enter bash (located in, usr/bin/bash)

Sh does not have the ability to toggle history commands up and down and complete with Tab.

You can modify the user at the end of / etc/passwd to make the corresponding default SHELL.

Use echo $SHELL to view the default SHELL of the system

Change the tag in front of SHELL, controlled by the variable PS1:

PS1=' [\ u@\ h:$PWD] #'

Export PS1

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