Guest User

Untitled

a guest
Dec 27th, 2016
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | None | 0 0
  1. # cat /etc/profile
  2. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  3. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
  4.  
  5. if [ "`id -u`" -eq 0 ]; then
  6.   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  7. else
  8.   PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
  9. fi
  10. export PATH
  11.  
  12. if [ "$PS1" ]; then
  13.   if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
  14.     # The file bash.bashrc already sets the default PS1.
  15.     # PS1='\h:\w\$ '
  16.     if [ -f /etc/bash.bashrc ]; then
  17.       . /etc/bash.bashrc
  18.     fi
  19.   else
  20.     if [ "`id -u`" -eq 0 ]; then
  21.       PS1='# '
  22.     else
  23.       PS1='$ '
  24.     fi
  25.   fi
  26. fi
  27.  
  28. # The default umask is now handled by pam_umask.
  29. # See pam_umask(8) and /etc/login.defs.
  30.  
  31. if [ -d /etc/profile.d ]; then
  32.   for i in /etc/profile.d/*.sh; do
  33.     if [ -r $i ]; then
  34.       . $i
  35.     fi
  36.   done
  37.   unset i
  38. fi
  39.  
  40. PATH=$PATH:/opt/jre1.8.0_112/bin
  41. JAVA_HOME=/opt/jre1.8.0_112
Advertisement
Add Comment
Please, Sign In to add comment