.profile
is the shell startup file and gets executed whenever you login.
It is used to set environment variables and shell options such as $PATH
.
If you modify the .profile
file, you may need to execute the following command to re-compile the new environment:
undcemcs02> source ~/.profile
Unix/Linux shell is the command interpreter used to pass commands to an operating system; so called because it is the part of the operating system that interfaces with the outside world:
.kshrc
), which is a standard command and programming language.
The startup configuration file is .kshrc
.
.bashrc
), which is largely compatible with sh and includes useful features from Korn shell ksh
and C shell csh
.
.cshrc
), which is with a C-like syntax.
.zshrc
), which is similar to ksh
with many additions to please csh
users and some tcsh
features.
.tcshrc
), which is C shell with file name completion and command line editing.
.profile
is compiled when login regardless which shell is used.
Check which shell we are using:
What is dangerous? Sneezing while having diarrhea! |