/etc/profile


SUBMITTED BY: Guest

DATE: Jan. 10, 2015, 4:02 p.m.

FORMAT: Bash

SIZE: 774 Bytes

HITS: 793

  1. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
  3. if [ "$PS1" ]; then
  4. if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
  5. # The file bash.bashrc already sets the default PS1.
  6. # PS1='\h:\w\$ '
  7. if [ -f /etc/bash.bashrc ]; then
  8. . /etc/bash.bashrc
  9. fi
  10. else
  11. if [ "`id -u`" -eq 0 ]; then
  12. PS1='# '
  13. else
  14. PS1='$ '
  15. fi
  16. fi
  17. fi
  18. # The default umask is now handled by pam_umask.
  19. # See pam_umask(8) and /etc/login.defs.
  20. if [ -d /etc/profile.d ]; then
  21. for i in /etc/profile.d/*.sh; do
  22. if [ -r $i ]; then
  23. . $i
  24. fi
  25. done
  26. unset i
  27. fi

comments powered by Disqus