误删了/etc/profile内容(Ubuntu15.10)

前端之家收集整理的这篇文章主要介绍了误删了/etc/profile内容(Ubuntu15.10)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

把下列内容复制到/etc/profile中即可


# /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 原文链接:https://www.f2er.com/ubuntu/356120.html

猜你在找的Ubuntu相关文章