Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PATH variable of .profile

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
why is it that the current directory (".") in the .profile for normal users part of the search path in the PATH variable? how come the .profile of the root directory does not include the current directory?
 
user profile is set up in the following way:

first comes /etc/environment which contains rows in format
PATH=/wherever:/right/there

next is /etc/profile which is shell script
PATH=$PATH:/somewhere/else
export PATH

then comes users .profile, which is copied from /etc/security/profile at user creation, this is the place where you can remove . or replace it with ~

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top