02-E.16.2: System Wide User Profiles: The /etc/profile.d Directory
- Page ID
- 26819
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
/etc/profile.d
This directory contains files configuring system-wide behavior of specific programs and site-specific environment customization. As seen previously, these scripts are run from the /etc/profile script.
This would be where the administrator can place customization scripts of their own.
Depending on which distribution of Linux you are using, you will find a variety of files in this directory.
pbmac@pbmac-server $ ls -la /etc/profile.d
total 72
drwxr-xr-x 2 root root 4096 Jun 1 15:06 .
drwxr-xr-x 219 root root 16384 Jun 4 13:11 ..
-rw-r--r-- 1 root root 96 Jun 1 15:06 01-locale-fix.sh
-rw-r--r-- 1 root root 40 Apr 15 2014 appmenu-qt5.sh
-rw-r--r-- 1 root root 824 Jun 1 15:06 apps-bin-path.sh
-rw-r--r-- 1 root root 664 Jun 1 15:06 bash_completion.sh
-rw-r--r-- 1 root root 1003 Jun 1 15:06 cedilla-portuguese.sh
-rw-r--r-- 1 root root 813 Feb 13 07:30 flatpak.sh
-rw-r--r-- 1 root root 652 Apr 3 2019 input-method-config.sh
-rw-r--r-- 1 root root 385 Aug 27 2018 kaltura-base.sh
-rw-r--r-- 1 root root 108 Dec 23 2017 sysstat.sh
-rw-r--r-- 1 root root 1941 Jun 1 15:06 vte-2.91.sh
-rw-r--r-- 1 root root 1947 Jun 1 14:18 vte.sh
-rw-r--r-- 1 root root 954 Jun 1 15:06 xdg_dirs_desktop_session.sh
-rw-r--r-- 1 root root 1557 Apr 14 2016 Z97-byobu.sh
"The Bash Shell Startup Files" by Multiple contributors, Beyond Linux® From Scratch (System V Edition) is licensed under CC BY-NC-SA 2.0


