Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Thu May 05, 2016 7:36 pm


Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

Author Message
mandrei99
Post  Post subject: Reloading /etc/profile - how to reload Unix /etc/profile  |  Posted: Tue Jan 20, 2015 5:29 pm

Joined: Tue Aug 04, 2009 9:16 am
Posts: 244

Offline
 

Reloading /etc/profile - how to reload Unix /etc/profile

Reloading profile, Reloading profile under Unix, Reloading profile under Linux,Reloading profile under BSD, how to reload Unix profile.

Use the following command to reload a unix profile (/etc/profile, ~/.profile, ~/.bash_profile ...):

Code:
$ . ~/.profile
$ . /etc/profile

Notice: . (dot) is a command that originates from source command. On some unix flavours (FreeBSD 6 for example) source command works still:

Code:
$ source ~/.profile
$ source /etc/profile

.profile settings overwrite those in /etc/profile. You can also use .bash_profile in your home directory to customize your bash shell's profile.
Basically, if you need to load shell variables from any file just run the . (dot) command, followed by space and (the absolute path is necessary) the path to the file. (Be carefull what file you're loading variables from because you meight overwrite some important environment variables and your system could become unstable).





Converting ^M characters to Unix new line.


Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Reloading /etc/profile - how to reload Unix /etc/profile"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Converting ^M characters to Unix new line

debuser

0

143

Sun Jul 18, 2010 11:20 am

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
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 post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO