Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

Difference between /etc/environment, .bashrc and .profile

$
0
0
What are the main differences between the following? And when should environment variables be put in each of them?
1) /etc/environment
2) $HOME/.bashrc
3) $HOME/.profile

Also if a Desktop environment (KDE or GNOME ) or Window Manager (IceWM, XFCe, etc) is used and an application is started using a shortcut then which of these files is parsed and then the variables used?

Statistics: Posted by DebianFox — 2024-08-27 04:44 — Replies 2 — Views 84



Viewing all articles
Browse latest Browse all 3474

Trending Articles