读取/root/.profile时发现错误
ubuntu启用root用户登陆以后可能会出现这个问题,读取/root/.profile时发现错误:
1 启动ubuntu,以root用户登陆,打开命令行终端;
2 输入命令:#vi /root/.profile;
3 找到.profile文件中的mesg n 将其替换成tty -s && mesg n 重启ubuntu,问题解决;
ubuntu启用root用户登陆以后可能会出现这个问题,读取/root/.profile时发现错误:
1 启动ubuntu,以root用户登陆,打开命令行终端;
2 输入命令:#vi /root/.profile;
3 找到.profile文件中的mesg n 将其替换成tty -s && mesg n 重启ubuntu,问题解决;