LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-27-2003, 10:24 PM   #1
AceKidCool
LQ Newbie
 
Registered: Oct 2003
Location: Michigan
Posts: 19

Rep: Reputation: 0
Editing .bashrc


I would like to add an alias, I know you can store them in .bashrc... Now I just need to find out how to do it...

Here is what I have done...

I opened .bashrc in kedit , it read as follows

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

Now the alias I want to add is /usr/bin/aim. I want to shorten this so when I am at a shell all I have to do is type ' aim ' at the prompt sign. $aim&

What do I add to the .bashrc to achieve this..

THanks, just getting going on linux!!!!
 
Old 11-27-2003, 10:35 PM   #2
AceKidCool
LQ Newbie
 
Registered: Oct 2003
Location: Michigan
Posts: 19

Original Poster
Rep: Reputation: 0
nevermind just figured it out


alias aim=/usr/bin/aim


for anyone else that comes across this question..

BYE
 
Old 11-27-2003, 10:38 PM   #3
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
you should just be able to type "aim" into a console anyway. /usr/bin is in your PATH.
 
Old 11-27-2003, 10:46 PM   #4
AceKidCool
LQ Newbie
 
Registered: Oct 2003
Location: Michigan
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by contrasutra
you should just be able to type "aim" into a console anyway. /usr/bin is in your PATH.
Oh, didn't know that. Thank you. I understand.
 
  


Reply


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
problem after editing .bashrc ashley75 Linux - General 3 10-20-2004 05:49 PM
.bashrc help shanenin Linux - Software 4 02-14-2004 06:17 PM
Editing path permanently...but I don't have .bashrc or .profile shock_ez Linux - Newbie 6 07-02-2003 05:16 PM
~/.bashrc editing TX_metalhead Linux - General 1 07-19-2002 02:29 PM
Editing /etc/bashrc qadir Linux - Software 2 07-06-2002 04:14 AM


All times are GMT -5. The time now is 07:18 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration