System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Give some document about "alias"

 
Tirtha
Occasional Advisor

Give some document about "alias"

Hi Friends,

Please give me some link or doc about "alias".
9 REPLIES
Suraj K Sankari
Honored Contributor

Re: Give some document about "alias"

Hi,

* alias [-tx] [name[=value]]...

With name=value specified, define name as an alias and assign it the value value. A trailing space in value causes the next word to be checked for alias substitution.

With name=value omitted, print the list of aliases in the form name=value on standard output.

With name specified without =value, print the specified alias.

With -t, set tracked aliases. The value of a tracked alias is the full path name corresponding to the given name. The value of a tracked alias becomes undefined when the value of PATH is reset, but the alias remains tracked. With name=value omitted, print the list of tracked aliases in the form name=pathname on standard output.

With -x, set exported aliases. An exported alias is defined across subshell environments. With name=value omitted, print the list of exported aliases in the form name=value on standard output.

Alias returns true unless a name is given for which no alias has been defined.

Suraj
Dennis Handly
Acclaimed Contributor

Re: Give some document about "alias"

The alias shell command? Mail aliases? Or IP aliases?
Tirtha
Occasional Advisor

Re: Give some document about "alias"

Hi Dennis,
I don't have any concept about alias...
So i can't tell which alias is that..
I want to get concept about alias.
avizen9
Esteemed Contributor

Re: Give some document about "alias"

hello tirtha,
since you are beginer for this below is best, please go thorugh it,

http://docs.hp.com/en/B2355-90046/ch12s01.html
Ganesan R
Honored Contributor

Re: Give some document about "alias"

Hi Tirtha,

This is the definition of command Alias.

Command Aliases
===============
An alias is a different name for a UNIX command. Aliases can also be used to remember commands by assigning them more meaningful names. They can be set using the "alias" command at the command prompt. For example, the ls command is used to list the file and directory names in HP-UX. If you want to use dir instead of ls, you can
use an alias for that purpose as follows.
$ alias dir=ls
$
If after that you use dir command, it will function the same as the ls command does.
Aliases are very useful for situations in which a user has to repeatedly issue a complex or long command
Best wishes,

Ganesh.
Taifur
Respected Contributor

Re: Give some document about "alias"

Tirtha
Occasional Advisor

Re: Give some document about "alias"

Thanks friends....
Dennis Handly
Acclaimed Contributor

Re: Give some document about "alias"

>I don't have any concept about alias. So I can't tell which alias is that.

You have to know whether you are talking about shell aliases, mail aliases or IP address aliases.