Solved

Create an Alias

Posted on 2004-08-22
2
282 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
ID: 11866646

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
ID: 11866708
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

770 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