Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating shortcut

Status
Not open for further replies.

m2001331

Technical User
May 29, 2002
73
MY
Hi all,
I am new to unix - aix especially.
i tried to create a shortcut for a folder that located deep down - eg./abc/def/ghi/jkl/mno
therefore i went to the .profile of the respective user supertester
and added
alias abc='cd /abc/def/ghi/jkl/mno'
and saved and perfomed ./.profile
however when i issue abc at prompt, it says abc not found.
i wonder why it get committed even after executing ./.profile.
I was logged on as supertester all the while.
please advice.
thanks.
 
You have to "dot" the .profile to run it again. Type this:

. /.profile

I'm not sure the single quotes are what you want. I'm not at a system now and so can't test it or check my .profile for aliases.
 
hi thanks for the reply.the problem was resolved when i logged out as supertester and logged in back.
thats a strange behaviour though.
thanks.
 
If you do . /.profile you will not have to logout. You will need a space between the first . and the /
 
As I said. [wink]

Or, rather than logging all the way out, you could have done:

su - username

Note the space-hyphen-space after su.

But the most efficient way is to do the . /.profile
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top