Skip to main content
Engineering LibreTexts

02-E.16.2: System Wide User Profiles: The etc profile.d Directory

  • Page ID
    26819
  • /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