dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

How to make the script change works for current session window? - unix-admin

This is a discussion on How to make the script change works for current session window? - unix-admin ; Hi, I have made a change in my .bashrc file, and I would like to work for my current open window session, in stead of have to close my current session and relogin again. Can anyone tell me the command ...


Home > Database Forum > Operating Systems > unix-admin > How to make the script change works for current session window?

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 10-08-2008, 05:00 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default How to make the script change works for current session window?

Hi,

I have made a change in my .bashrc file, and I would like to work for
my current open window session, in stead of have to close my current
session and relogin again. Can anyone tell me the command to do that
in bash script in Linux/Unix? I searched a few Linux/Unix tutorial but
didn't find it.

Thanks,

Xiaoxiao
Reply With Quote
  #2  
Old 10-08-2008, 07:59 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: How to make the script change works for current session window?

On Oct 8, 2:00 pm, Xiaoxiao wrote:
> Hi,
>
> I have made a change in my .bashrc file, and I would like to work for
> my current open window session, in stead of have to close my current
> session and relogin again. Can anyone tell me the command to do that
> in bash script in Linux/Unix? I searched a few Linux/Unix tutorial but
> didn't find it.


There are at least 3 ways to accomplish that:

1. "exec bash" (replaces current with a new bash which
rereads .bashrc)

2. "source .bashrc"

3. ". .bashrc"
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 01:09 PM.