source

基本概述

source命令的功能是用于从指定文件中读取和执行命令,通常用于被修改过的文件,使之新参数能够立即生效,而不必重启整台服务器。

语法格式

source [文件名]

参考示例

1.读取和执行指定文件中的命令

[root@linuxcool ~]# source ~/.bash_profile
[root@linuxcool ~]# source /etc/profile

 

posted @ 2023-11-17 12:38  惠恒博  阅读(6)  评论(0编辑  收藏  举报