相关推荐: linuxsource环境变量 linux命令source sourcelinux命令 linux中source是什么意思 linuxsource.bashrc linux中source命令详解 linux里source linuxsource.bash_profile linux安装source命令 linux每次都要source linuxsource命令是什么 linuxsource命令作用 linuxsourcebashrc linux中source的用法 linuxsourceprofile source在linux中是什么意思 linux中的source命令作用范围是什么 linux里面source命令
linux中的source命令
Linux系统中的source命令其实是个点命令,那么它的具体用法是怎样的呢?下面由小编为大家整理了linux中的source命令的相关知识,希望对大家有帮助!
linux中的source命令详解
通常用法:source filepath 或 . filepath
功能:使当前shell读入路径为filepath的shell文件并依次执行文件中的所有语句,通常用于重新执行刚修改的初始化文件,使之立即生效,而不必注销并重新登录。例如,当我们修改了/etc/profile文件,并想让它立刻生效,而不用重新登录,就可以使用source命令,如source /etc/profile。
请关闭浏览器的畅读模式或者取消屏蔽JavaScript的正常运行,避免出现内容显示不全或者段落错乱。
原网页地址:https://www.ylxsn.com/xuexila/55878043.html