Advertisement
Guest User

allojo

a guest
Apr 25th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  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.  
  4. if [ "`id -u`" -eq 0 ]; then
  5. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc/hadoop-2.9.2/bin"
  6. else
  7. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/etc/hadoop-2.9.2/bin"
  8. fi
  9. export PATH
  10.  
  11. if [ "${PS1-}" ]; then
  12. if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
  13. # The file bash.bashrc already sets the default PS1.
  14. # PS1='\h:\w\$ '
  15. if [ -f /etc/bash.bashrc ]; then
  16. . /etc/bash.bashrc
  17. fi
  18. else
  19. if [ "`id -u`" -eq 0 ]; then
  20. PS1='# '
  21. else
  22. PS1='$ '
  23. fi
  24. fi
  25. fi
  26.  
  27. if [ -d /etc/profile.d ]; then
  28. for i in /etc/profile.d/*.sh; do
  29. if [ -r $i ]; then
  30. . $i
  31. fi
  32. done
  33. unset i
  34. fi
  35.  
  36. export JAVA_HOME="/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt"
  37. export PATH=$PATH:$JAVA_HOME/bin
  38.  
  39. HADOOP_HOME="/etc/hadoop-2.9.2"
  40. export PATH=$PATH:$HADOOP_HOME/sbin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement