LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2004, 01:56 PM   #1
kintaroe
LQ Newbie
 
Registered: Sep 2004
Posts: 20

Rep: Reputation: 0
editing bash to auto activate some options?


Hi, just a short question, say everytime i type

btdownloadcurses.py <filename>

i want linux to automatically add some options for me without me actually typing it out

btdownloadcurses.py --ip xxx.xxx.xxx.xxx --minport xxx --maxport xxx <filename>

how do i go about doing this?
 
Old 10-02-2004, 02:07 PM   #2
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
aliases are what you need.

Code:
alias aliasname="command opt1 opt2"
After that aliasname will be expended by bash to what's on the left.

eg.

Code:
alias ls="ls -l"
will have ls expanded to ls -l

You might want to add it to your .bash_profile for perment effect.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
auto and bind options in fstab kaplan71 Linux - Networking 1 05-18-2005 08:58 AM
Execution options in bash eremit Programming 6 03-28-2005 10:00 PM
editing /etc/shells to only allow bash omg-ffs Linux - Newbie 3 12-05-2004 03:20 PM
Using knoppix boot options to activate jump-drive partimegeek Linux - Software 2 04-28-2004 04:39 PM
bash scripting - editing files brian0918 Programming 1 06-30-2003 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 AM.

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