发布网友
共3个回答
热心网友
Linux/Unix提供了很多种Shell,常用的Shell有这么几种,sh、bash、csh等,想知道你的系统有几种shell,可以通过以下命令查看:
cat /etc/shells
显示如下:
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
切换shell的命令
chsh -s /bin/zsh
热心网友
usermod -s /bin/zsh username
热心网友
#!/bin/bash read -p "Please enter your string:" STR