After install Unix shell on my Iphone of DropBear and BinKIt, I can now log into unix shell with MobileTerminal and Putty.
I need the prompt to show the current working path, I google and found bash should be able to define it under file of:
/etc/profile - generic system-wide profile
.bash_profile - personal profile that is processed every time you login
.bashrc - setup file processed every time you open a non-login shell
In the file I will to add a setence of
export PS1="w> "
So this will make my prompt shows currenty path and a '>', you can type command 'export' to see your current settings, command 'set' can see the current environment parameters.
In finally neither .bash_profile nor .bashrc can take effect and only create a new file of /etc/profile with a single sentence of export PS1="w> " make the job done.