当前位置:   article > 正文

重新执行初始化文件——source命令_file name argument

file name argument

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成功!


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/379871
推荐阅读
相关标签
  

闽ICP备14008679号