1753878 Members
7059 Online
108809 Solutions
New Discussion юеВ

alias

 
SOLVED
Go to solution
sreedhar2u
Frequent Advisor

alias

I want to add alias for ux2dos and dos2ux as unix2dos,dos2unix. In which file I need to add these aliases, so that these aliases are available to all the users of the system.
6 REPLIES 6
Torsten.
Acclaimed Contributor
Solution

Re: alias

Consider to add the alias command to the profile or maybe better set a link!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sreedhar2u
Frequent Advisor

Re: alias

could pls mail me the syntax
Torsten.
Acclaimed Contributor

Re: alias

Example:

ln -s /usr/contrib/bin/ux2dos /usr/contrib/bin/unix2dos

Check where the binaries are!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sreedhar2u
Frequent Advisor

Re: alias

Thank you!!

I have created the link and its working.

I want to know, how to add the same alias in profile file. send me the syntax Please.
James R. Ferguson
Acclaimed Contributor

Re: alias

Hi:

> I want to know, how to add the same alias in profile file.

Add a line like this to your '.profile':

alias 'dodos=/usr/bin/ux2dos'

Now when you simply do:

# alias

(or):

# alias dodos

...you will see 'dodos' as an alias command.

To dynamically remove the command, do:

# unalias dodos

Regards!

...JRF...
Suraj K Sankari
Honored Contributor

Re: alias

Hi,
See the link below for "how to alias commands"

http://www.linfo.org/alias.html

Suraj