Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After changing /etc/profile, what do I have to do to reset my shell?

Tags:

linux

unix

To test its effects immediately instead of having to reload the terminal

like image 559
TIMEX Avatar asked Jan 10 '11 01:01

TIMEX


People also ask

What is the purpose of ETC profile D?

d. This directory contains files configuring system-wide behavior of specific programs and site-specific environment customization.

What is the ETC profile file?

The /etc/profile File The /etc/profile contains Linux system wide environment and other startup scripts. Usually the default command line prompt is set in this file. It is used for all users logging in to the bash, ksh, or sh shells.

When ETC profile is executed?

The difference is simple, the /etc/profile is executed only for interactive shells and the /etc/bashrc is executed for both interactive and non-interactive shells. In fact in Ubuntu the /etc/profile calls the /etc/bashrc directly.


1 Answers

use source /etc/profile

for details, man source or you can checkout this link http://bash.cyberciti.biz/guide/Source_command

like image 109
Serdar Dalgic Avatar answered Oct 05 '22 20:10

Serdar Dalgic