Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

newbie: using alias, and have it save my settings

 
   Linux (Home) -> Red Hat General RSS
Next:  partitioning  
Author Message
py

External


Since: Apr 11, 2006
Posts: 2



(Msg. 1) Posted: Tue Apr 11, 2006 8:24 am
Post subject: newbie: using alias, and have it save my settings
Archived from groups: linux>redhat (more info?)

i am new redhat...in this case I am using redhat 9...and I am trying to
use alias to make things a bit easier for me. however, once I use it
to setup a command, as soon as I exit the terminal and open
another...the alias's are gone.

For example, I do..
alias java="/usr/java/j2sdk1.4.2_03/bin/java"

....but later on once I close the terminal, it goes away...how can I
store these settings permanately?

thanks
Back to top
Login to vote
py

External


Since: Apr 11, 2006
Posts: 2



(Msg. 2) Posted: Tue Apr 11, 2006 8:43 am
Post subject: Re: newbie: using alias, and have it save my settings [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

nevermind, I found the answer. It seems that on startup my install
uses .bashrc and not .bash_profile.

so i modified /root/.baserc and added my alias's...wah-la!

thanks.
Back to top
Login to vote
Matt Giwer

External


Since: Oct 28, 2005
Posts: 189



(Msg. 3) Posted: Wed Apr 12, 2006 5:21 am
Post subject: Re: newbie: using alias, and have it save my settings [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

py wrote:
> nevermind, I found the answer. It seems that on startup my install
> uses .bashrc and not .bash_profile.
>
> so i modified /root/.baserc and added my alias's...wah-la!

Rule 1. Never be root unless you are doing root work. Always be a user.

And if you don't believe me, I learned the hard way before I read Linus saying
the same thing.

--
Hodie pridie Idus Apriles MMVI est
-- The Ferric Webceasar
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
Old Testament http://www.giwersworld.org/bible/ot.phtml a6
Back to top
Login to vote
Mario

External


Since: Oct 24, 2005
Posts: 19



(Msg. 4) Posted: Wed Apr 12, 2006 9:24 am
Post subject: Re: newbie: using alias, and have it save my settings [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 11 Apr 2006 08:43:41 -0700, py wrote:

> nevermind, I found the answer. It seems that on startup my install
> uses .bashrc and not .bash_profile.

put it in /etc/bashrc
that way it becomes system wide alias.

BTW reading aliases from .bashrc is quite normal.

Mario
Back to top
Login to vote
Display posts from previous:   
Related Topics:
save desktop after logout - Hi, When I log out, all applications and terminals are being closed. How can I prevent the system from doing it ? Regards Thomas

Newbie question... - Hi! I am new to Linux, but have decided to use Fedora. I have a lot of folders and files saved on CD (*.avi, *.mpg and *.mp3 etc) and wonder if I will be able to see and use them when I have installed Linux? I also have a lot of stuff on my second..

newbie proftpd question - Hello, I'm just starting out on Linux and am starting to play w/ my Redhat box. Although I'm having some difficulty trying to ftp to it. I have proftpd on it and here is my config file: ..

newbie: What is the kernel command line? - Hello I need to enter a command on the kernel command line for an application I am using. How do I find the kernel command line? How do I enter a command there? Angus

FC 5 upgrade newbie confusion - I'm trying to understand how to add packages to FC 5 after first installing the minimum "Base" configuration first. I'm using the 5-CD set. I booted from CD 1 into Fedora setup, choosing "upgrade" instead of a fresh install, expectin...
       Linux (Home) -> Red Hat General All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact