求一份15.7的/etc/profile
Tofloor
poster avatar
TrafalgarRicardoLu
deepin
2018-09-03 06:25
Author
配环境变量的时候手滑删了
Reply Favorite View the author
All Replies
avatar
TrafalgarRicardoLu
deepin
2018-09-03 06:39
#1
江湖救急...
Reply View the author
avatar
tmacy
deepin
2018-09-03 07:17
#2

cat /etc/profile                                                                     0 < 23:16:41
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin"
fi
export PATH

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
tty | egrep -q tty[1-6] && export LC_ALL=C
Reply View the author
avatar
tmacy
deepin
2018-09-03 07:18
#3

cat /etc/profile                                                                     0 < 23:16:41
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin"
fi
export PATH

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
tty | egrep -q tty[1-6] && export LC_ALL=C
Reply View the author
avatar
老陌
deepin
2018-09-03 13:51
#4
看了一下,都一样的:

  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 [ "`id -u`" -eq 0 ]; then
  4.   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  5. else
  6.   PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin"
  7. fi
  8. export PATH

  9. if [ "$PS1" ]; then
  10.   if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
  11.     # The file bash.bashrc already sets the default PS1.
  12.     # PS1='\h:\w\$ '
  13.     if [ -f /etc/bash.bashrc ]; then
  14.       . /etc/bash.bashrc
  15.     fi
  16.   else
  17.     if [ "`id -u`" -eq 0 ]; then
  18.       PS1='# '
  19.     else
  20.       PS1='$ '
  21.     fi
  22.   fi
  23. fi

  24. if [ -d /etc/profile.d ]; then
  25.   for i in /etc/profile.d/*.sh; do
  26.     if [ -r $i ]; then
  27.       . $i
  28.     fi
  29.   done
  30.   unset i
  31. fi
  32. tty | egrep -q tty[1-6] && export LC_ALL=C
Copy the Code


Reply View the author
avatar
impressionyang
deepin
2018-09-03 21:02
#5
耶???。。。。才发现你们都不装Oracle的jdk的么2333,只有我的环境变量里面加了java的配置么。。。。。。
Reply View the author
avatar
tmacy
deepin
2018-09-03 21:29
#6
https://bbs.deepin.org/post/168353
耶???。。。。才发现你们都不装Oracle的jdk的么2333,只有我的环境变量里面加了java的配置么。。。。。 ...

不好意思,我的自定义环境变量放在了profile.d目录下
Reply View the author
avatar
impressionyang
deepin
2018-09-05 06:08
#7
https://bbs.deepin.org/post/168353
不好意思,我的自定义环境变量放在了profile.d目录下

哦哦,这样更有条理呢
Reply View the author