# /etc/profile # System wide environment and startup programs, for login setup# Functions and aliases go in /etc/bashrc pathmunge () { if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$P
我的CSDN博客地址: http://blog.csdn.net/caicongyang 博主之前在改动了/etc/profile配置文件方法后,导致bash命令无法用 运行ls命令结果例如以下: -bash: ls:command is not found 可是庆幸的是博主之前备份了/etc/profile,于是我把profile通过SSH还原回去,可是如今须要运行 # source /etc/profile 让配置文件又一次生效.然后不幸的事情是 -bash: id:command is n