Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-05-2005, 09:50 PM   #1
LQ Newbie
Registered: Jun 2004
Posts: 11

Rep: Reputation: 0
Red face how to define user-defined commands in linux

so I've noticed I use the following 3 commands a lot, and would like to define a one line command for them:

%rm d1.out
% hspice d1.sp > d1.out
% awaves d1 &

I don't know how!

please help

Old 04-05-2005, 10:01 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
edit ~/.bashrc (or ~/.bash_profile respectively) and add:

alias myd1='rm d1.out; hspice d1.sp > d1.out; awaves d1 &'

That's if you're using bash ;)
The % kind of suggests tcsh, if that's it have a look
at "man tcsh" and search for alias :}



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send user defined signal in linux feetyouwell Linux - Software 6 12-26-2007 05:40 AM
Linux Script which uses user defined variables fieldyweb Linux - Newbie 3 09-26-2005 07:29 PM
diff between #define and const defined variable b123coder Programming 7 06-27-2005 09:02 AM
How to run user defined services and exe files on linux. Prabhat Sharda Linux - Software 6 01-05-2005 04:54 AM
define start-bash for user... pablovschby Linux - Software 16 11-13-2003 03:52 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration