Unix/Linux Go Back    

Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

How to make Alias

Shell Programming and Scripting

Closed Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 07-04-2006
heru_90's Unix or Linux Image
heru_90 heru_90 is offline
Registered User
Join Date: Jun 2006
Last Activity: 27 May 2015, 3:09 AM 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 Unix and Linux 07-05-2006
zazzybob's Unix or Linux Image
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 25 Times in 23 Posts
Add it to a shell initialisation file that is read for all shells..... say ~/.bashrc for bash.

Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

All times are GMT -4. The time now is 03:29 AM.