• Post Reply Bookmark Topic Watch Topic
  • New Topic

Global PATH/CLASSPATH setting in Linux  RSS feed

 
Bharat Roy
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I know how to set PATH for single user (using ".bashrc" file for that particular user).

But is there a way/file to configure PATH/CLASSPATH setting so that all the users get it/use it.

Actually I don't want to set .bashrc for each and every new user, I want to do it globally.

I am using Red Hat 8.

Thanks.
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about the /etc/profile?
 
Bharat Roy
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!