demhademha / tweak-development-guide

From complete beginner to tweak dev!
GNU General Public License v3.0
117 stars 12 forks source link

bash or zsh #8

Closed vembalarashid closed 3 years ago

vembalarashid commented 3 years ago

typing echo $SHELL. This will return either /usr/bin/bash or /usr/bin/zsh

But mine shows /bin/ash

Why ?

Silverethical commented 3 years ago

typing echo $SHELL. This will return either /usr/bin/bash or /usr/bin/zsh

But mine shows /bin/ash

Why ?

That is because you are using the Almquist shell (AKA ash).

The following solution has been originally posted here

Normally you can change this via the chsh command, but from what I gathered iOS doesn't have this command. So you need to edit /etc/passwd and /etc/master.passwd (as root) and change the shell to /bin/bash. So it should look something like this:

root:*:0:0:System Administrator:root:/var/root:/bin/bash
mobile:*:501:501:Mobile User:/var/mobile:/bin/bash
demhademha commented 3 years ago

Ash is alpine's shell, make sure that you are sshed into your device. You can refer to chapter 1 if you've forgotten how to do that.

demhademha commented 3 years ago

Closed due to a lack of response. You can reopen this issue