How to make Alias | Unix Linux Forums | Shell Programming and Scripting

  Go Back    

Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

How to make Alias

Shell Programming and Scripting

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 07-05-2006
heru_90's Avatar
heru_90 heru_90 is offline
Registered User
Join Date: Jun 2006
Last Activity: 27 June 2011, 12:15 PM EDT
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
How to make Alias

Dear all,

I'm new in unix systm , I try to write alias script:

alias hr= cd/home/hmi/bin/Log

and this work,
but when i quit from unix and login again, this can't work again.
how to create alias that can work anytime

thank you


Sponsored Links
Old 07-05-2006
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
Join Date: Dec 2003
Last Activity: 13 May 2013, 9:02 AM EDT
Location: Melbourne, Australia
Posts: 2,185
Thanks: 3
Thanked 24 Times in 23 Posts
Add it to a shell initialisation file that is read for all shells..... say ~/.bashrc for bash.

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
How to make Alias? aish11 UNIX for Dummies Questions & Answers 19 06-19-2012 02:56 AM
Create alias files (not alias commands) Alexander4444 UNIX for Dummies Questions & Answers 3 04-16-2012 11:57 AM
How to make delays between multiple commands in an alias (ircII)? guitarscn UNIX for Dummies Questions & Answers 1 09-24-2010 01:11 PM
Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ... Bradj47 Solaris 1 08-17-2009 01:46 AM
How to make alias for start of next sessiones papa1980 UNIX for Dummies Questions & Answers 0 06-24-2008 12:47 AM

All times are GMT -4. The time now is 04:00 PM.