Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Alias confusion - multiple commands ?

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-17-2003
HikerLT HikerLT is offline
Registered User
 
Join Date: Nov 2003
Last Activity: 27 June 2013, 8:17 AM EDT
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Alias confusion - multiple commands ?

I've read the man on the alias command, and I am perplexed. I don't see a way to create an alias that will perform more than one command......is there a way to create an alias that is a string of a commands ?
Sponsored Links
    #2  
Old Unix and Linux 11-17-2003
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,931
Thanks: 64
Thanked 462 Times in 267 Posts
Depends on the shell. With ksh, no you can't. You're supposed to use a function instead.
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
Create alias files (not alias commands) Alexander4444 UNIX for Dummies Questions & Answers 3 04-16-2012 10:57 AM
alias commands daveisme Shell Programming and Scripting 1 06-03-2011 01:46 PM
Passing arguments to alias with multiple commands derndingle UNIX for Dummies Questions & Answers 5 05-20-2011 11:05 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
Alias commands Mars8082686 UNIX for Dummies Questions & Answers 2 08-08-2006 03:45 PM



All times are GMT -4. The time now is 10:18 PM.