Set alias from sh script in ESXi 6

Some Linux distributions have a great little shortcut ll for ls -la and it can be a real time saver.  The ESXi 6.7 server does not offer this alias by default; however, it can be added quite easily.

#!/bin/sh
alias ll="ls -la"

Add this to the profile.

.~/.profile

Source(s)

  • https://serverfault.com/questions/929065/set-alias-from-sh-script-in-esxi-6