/etc/profile


SUBMITTED BY: Guest

DATE: Jan. 13, 2013, 2:24 p.m.

FORMAT: Text only

SIZE: 593 Bytes

HITS: 1237

  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 [ -d /etc/profile.d ]; then
  4. for i in /etc/profile.d/*.sh; do
  5. if [ -r $i ]; then
  6. . $i
  7. fi
  8. done
  9. unset i
  10. fi
  11. if [ "$PS1" ]; then
  12. if [ "$BASH" ]; then
  13. PS1='\u@\h:\w\$ '
  14. if [ -f /etc/bash.bashrc ]; then
  15. . /etc/bash.bashrc
  16. fi
  17. else
  18. if [ "`id -u`" -eq 0 ]; then
  19. PS1='# '
  20. else
  21. PS1='$ '
  22. fi
  23. fi
  24. fi
  25. umask 022

comments powered by Disqus