![]() |
What is the global counterpart of ~/.bashrc?
Hi:
~/.bashrc gets things done for a user. Is there a bashrc (or some other name) in /etc that does the same as ~/.bashrc but globally? EDIT: I think it is /etc/profile. |
|
Thanks. However in bash's man page, under FILES, it does not mention it.
|
Yes, that's because it's not built into Bash. It's just a convention that is widely used; some distros put an /etc/bashrc file for system-wide settings, and they source it from ~/.bashrc with:
Code:
if [ -f /etc/bashrc ]; then |
Thank you very much.
|
| All times are GMT -5. The time now is 12:27 PM. |