Solved

Create an Alias

Posted on 2004-08-22
2
279 Views
Last Modified: 2010-04-21
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.
0
Comment
Question by:aahlawat
2 Comments
 
LVL 38

Expert Comment

by:yuzh
Comment Utility

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'
0
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
Comment Utility
The alias syntax varies slightly on what your default shell is.  If you use csh, then use the syntax yuhz gave, otherwise do

alias gm='mail -s "Good Morning Brent!" boss@somewhere'

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now