How can I make an alias in HP-UX? I've tried to add something just like this
bye='exit'
(as example), the system accepted but when I write bye in the terminal its return with invalid command. When I make such alias in RedHat or Fedora the system accept it right there, what is the right method in adding the Aliases in HP-UX?
Or, where can I find the alias file so can I modify it and add whatever I want of aliases.
Aliases can also be set in /etc/profile for all users and also, Posix shell has a number of default aliases which can be unset..
From man sh-posix :
The following exported aliases are compiled into the shell but can be
unset or redefined:
autoload='typeset -fu'
command='command '
functions='typeset -f'
history='fc -l'
integer='typeset -i'
local=typeset
nohup='nohup '
r='fc -e -'
stop='kill -STOP'
suspend='kill -STOP $$'
type='whence -v'