Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

How to make Alias

Shell Programming and Scripting

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: 14 October 2016, 1:19 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: 2 October 2017, 12:19 PM EDT
Location: /dev/null
Posts: 2,187
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

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 08:16 AM.