/etc/profile被改坏了,能给我一份原始的profile吗?
Tofloor
poster avatar
joybin
deepin
2018-11-08 23:50
Author
/etc/profile被改坏了,能给我一份原始的profile吗?
直接粘贴出来也行,发给我也行
qq:351213572,邮箱:wen_bin_li@163.com
谢谢了
Reply Favorite View the author
All Replies
avatar
coldlook
deepin
2018-11-09 00:06
#1
  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
joybin
deepin
2018-11-09 00:13
#2

非常感谢,非常感谢。。
Reply View the author
avatar
successfully
deepin
2018-11-09 02:14
#3
咱以后能不能只修改用户目录下的~/.profile文件?
Reply View the author
avatar
joybin
deepin
2018-11-09 05:46
#4
https://bbs.deepin.org/post/170694
咱以后能不能只修改用户目录下的~/.profile文件?

可以,刚接触,路还很长
Reply View the author