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

View unanswered posts
View active topics
It is currently Sun Feb 01, 2015 9:41 pm


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

Free 6 months SSD VPS
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: 215

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  
Print 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

9

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 cannot post new topics in this forum
You cannot 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 ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO