mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 15:04:05 +08:00
11 lines
775 B
HTML
11 lines
775 B
HTML
<h1 id="source">source</h1>
|
||
<p>在当前Shell环境中从指定文件读取和执行命令,命令返回退出状态。</p>
|
||
<h2 id="补充说明">补充说明</h2>
|
||
<p><strong>source命令</strong> 在当前Shell环境中从指定文件读取和执行命令,命令返回退出状态。</p>
|
||
<h3 id="语法">语法</h3>
|
||
<pre><code class="language-bash">source [文件名] [参数]</code></pre>
|
||
<h3 id="例子">例子</h3>
|
||
<p>读取和执行/root/.bash_profile文件。</p>
|
||
<div class="sourceCode" id="cb2"><pre><code class="language-bash"><a class="sourceLine" id="cb2-1" data-line-number="1">[<span class="ex">root@localhost</span> ~]# source ~/.bash_profile</a></code></pre></div>
|
||
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
|