The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
code that reads commands from the standard i/p and executes the commands Phrozen Smoke High Level Programming 4 01-21-2007 11:06 PM
alias help shafique UNIX for Dummies Questions & Answers 5 10-03-2006 09:56 AM
Alias confusion - multiple commands ? HikerLT UNIX for Dummies Questions & Answers 1 11-17-2003 09:01 AM
Alias JSP UNIX for Dummies Questions & Answers 2 09-29-2001 08:17 PM
1 alias 2 commands 1 argument seba UNIX for Dummies Questions & Answers 3 08-31-2001 08:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-07-2006
Registered User
 

Join Date: Mar 2006
Posts: 5
Alias commands

how do you alias a command... Like say I wanted kitten to exicute the command whoami. how would I do that?

Thank you for your time.
Reply With Quote
Forum Sponsor
  #2  
Old 08-07-2006
Supporter
 

Join Date: Jul 2006
Posts: 156
It depends on the shell. Bash, Korn shell and Bourne shell is like:
Code:
alias kitten=whoami
C shell and tcsh syntax is a little different. They don't use the '=' sign.

Code:
alias kitten whoami
Reply With Quote
  #3  
Old 08-08-2006
Registered User
 

Join Date: Aug 2006
Location: AR
Posts: 15
Alias

Also read up on my post "shortcuts". Thanks to some really smart ppl in this forum you'd know how to get the Alias command working for you
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0