iPhone tip: Common terminal shortcuts

iphone, linux August 29th, 2007

Here’s a hint to help those looking to create shortcuts for common things…

Upload/create the file /var/root/.profile with these contents:

# Aliases
alias pico='pico -w'
alias rm='rm -i'
alias ssh='ssh2'
alias myssh='ssh2 username@myserver.com'

# User specific environment
PATH=$PATH:/sbin:/usr/sbin
TERM=vt100

export PATH TERM

This assumes you have uploaded vt100 for using fullscreen goodies like pico. If you haven’t got vt100 on your iphone remove the TERM line and remove ‘TERM’ from the end of the ‘export’ line.

Note: You must have the binary ‘login’ uploaded to your iPhone from one of the bin-kits for this to work.

If you are a *nix user no further explanation is needed, you know what that file does and why… for those who don’t read on…

Read the rest of this entry »