求助:不小心改了/etc/profile文件,现在开机进不了桌面了
linuxmint吧
全部回复
仅看楼主
level 2
如题,改后的文件如下:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
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
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
$i #我记得好像是改了这里的
fi
done
unset i
fi
谁能帮帮我????
2014年04月13日 02点04分 1
level 2
没人看到吗
2014年04月13日 02点04分 2
吧务
level 11
我们不生产水,我们只是大自然的搬运工
2014年04月18日 02点04分 3
1