Monthly Archives: January 2013

Use your arrow keys in AIX KSH

  • login as root
  • open /root/.kshrc (change /root in caes you change the home dir of root)
  • add the following

set -o emacs
alias __A=`echo “20”`     # up arrow = ^p = back a command
alias __B=`echo “16”`     # down arrow = ^n = down a command
alias __C=`echo “06”`     # right arrow = ^f = forward a character
alias __D=`echo “02”`     # left arrow = ^b = back a character
alias __H=`echo “01”`     # home = ^a = start of line
alias __Y=`echo “05”`     # end = ^e = end of line

  • save the file
  • logout
  • login and you can make use of the arrow keys

Mount SMB Network Drive permanently

How to mount a smb network drive permanently in Mac OS X:

1. Mount drive in Finder
2. Go to System Preferences > System > Users & Groups > your account > Login items tab
3. Add the SMB drive in the list of objects as if it was an application