赞
踩
source命令又叫“点命令”,重新执行刚修改的初始化文件,使之生效。
useage :
source filename
e.g.
source /etc/profile
有一次使用这个命令的时候报错了:
bash : nset : command not found
一般很容易注意到 command not found这句话,
可是当只敲source的时候,会返回
filename argument required
也就是说这source命令是可用的。但是为什么报command not found 呢,原来这句话的意思是
“nset” 这个command not found
nset是存在于/etc/profile内容中的代码段。
检查这个文件,发现有一行代码:
nset i
应该是unset i
改过来后source成功!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。