Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-02-2004, 01:56 PM   #1
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 <filename>

i want linux to automatically add some options for me without me actually typing it out --ip --minport xxx --maxport xxx <filename>

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

Rep: Reputation: 31
aliases are what you need.

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


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

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


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration