aahlawat
asked on
Create an Alias
I am trying to create an alias so that I can type "gm" and send a message to my boss. I generally type the command mail -s "Good Morning Brent!". What should I do to create this alias. Please explain it step by step so it is easy for me to understand. I tried to find answers but i was unsuccessfull.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
alias gm 'mail -s "Good Morning Brent!" boss@somewhere'
man alias
to learn more details
you might have to use mailx instead of mail:
alias gm 'mailx -s "Good Morning Brent!" boss@somewhere'