Alpine: change current shell

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/IOIO_/article/details/85037011

Alpine change current shell

// change current shell
# vi /etc/passwd
# change by dijk
root:x:0:0:root:/root:/bin/ash
#root:x:0:0:root:/root:/bin/bash

// see current shell
# echo $0
or
# echo $SHELL

// see valid login shells
# cat /etc/shells
# valid login shells
/bin/sh
/bin/ash
/bin/bash

猜你喜欢

转载自blog.csdn.net/IOIO_/article/details/85037011