Exploring iPhoneOS
Preparation:
- Jailbreak (blackra1n for 3.1.2)
- Install openssh, sudo, top
- Plug in (charging) to keep WiFi from going to sleep
- Ssh into it (username: mobile, default password: alpine)
- Change the default password immediately!!!
Some notes so far:
- Your home directory: /var/mobile
- Shell type: bash (configuration: /etc/profile)
- Add yourself to /etc/sudoers
- Change your prompt:
export PS1='\e[32;1m\u@\h\e[00m:\e[34;1m\w\e[00m$ '
- Advanced ls output:
alias ls='ls -FhlX --color=auto'
- More doesn’t seem to work (/bin/more: fork: retry: Resource temporarily unavailable)
- Some more customizations in /etc/profile.d: coreutils.sh and terminal.sh
- Run updatedb

this line
export PS1=’\e[32;1m\u@\h\e[00m:\e[34;1m\w\e[00m$ ‘
should be
export PS1=’\e[32;1m\u@\h\e[00m:\e[34;1m\w\e[00m\$ ‘
@emre: actually, it works with or without the \ before the $ …