How to create permanent Aliases? | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

How to create permanent Aliases?

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-25-2011
chrs0302 chrs0302 is offline
Registered User
 
Join Date: Jun 2005
Last Activity: 27 December 2011, 7:58 PM EST
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
How to create permanent Aliases?

Hi All

Under my root directory I have a file called Aliases. It is owned by root (root:root) and the user (I mean root) has rwx permissions. In this file I have set some aliases like the following

alias a="cd /opt/IBM/WebSphere/AppAerver/Profiles"

When I run the above alias command from CLI it works for that particular terminal session. I want to make the aliases permanent and searched on the net. Followed various suggestions for .bashrc, .profile. /etc/profile etc and they did not work

The other thing is when I run/execute the script from the CLI (./Aliases) the exit status (I mean echo $?) returns 0 (Zero) value and still the aliases will not work. How to get this done?

Thanks in advance

chrs0302
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
set permanent ulimit hedkandi HP-UX 3 08-07-2010 06:27 PM
create command aliases for a user vikas027 Solaris 4 05-18-2008 05:26 AM
Permanent changes to PATH Stin Solaris 3 03-18-2008 06:03 AM
Permanent Alias farl UNIX for Dummies Questions & Answers 7 11-22-2007 05:11 AM
permanent route jontom Solaris 1 11-03-2005 10:43 AM



All times are GMT -4. The time now is 10:02 PM.