The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
alias in CSH tpltp Shell Programming and Scripting 3 10-11-2008 10:24 PM
awk alias papa1980 Shell Programming and Scripting 1 06-23-2008 06:04 PM
How to get the alias,when we have the IP. preethgideon UNIX for Dummies Questions & Answers 2 07-24-2007 02:53 PM
alias klannon Filesystems, Disks and Memory 6 04-27-2006 08:36 AM
Alias klannon UNIX for Dummies Questions & Answers 2 03-10-2002 05:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 11-20-2008
shantanuo shantanuo is offline
Registered User
  
 

Join Date: Aug 2008
Location: Mumbai
Posts: 79
Lightbulb Calling alias

I have created a shortcut for the file kill_process.sh as shown below.

alias kill_process="sh /root/kill_process.sh"

It is working as per my expectations. But I have 2 questions.
1) Is there any better way?
2) How do I check what does kill_process link to?
  #2 (permalink)  
Old 11-20-2008
Lakris Lakris is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 240
hi,
You don't really need an alias do You? Name the program file kill_process, make it executable (chmod +x kill_process) and place it somewhere in Your PATH, in /usr/local/sbin for example. To show Your aliases, use the command alias without arguments.

/Lakris
Sponsored Links
Closed Thread

Bookmarks

Tags
alias

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0