<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans">
	<id>https://wiki.fangc.top/index.php?action=history&amp;feed=atom&amp;title=%E6%80%8E%E4%B9%88%E8%BF%90%E8%A1%8C.sh%E6%96%87%E4%BB%B6</id>
	<title>怎么运行.sh文件 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fangc.top/index.php?action=history&amp;feed=atom&amp;title=%E6%80%8E%E4%B9%88%E8%BF%90%E8%A1%8C.sh%E6%96%87%E4%BB%B6"/>
	<link rel="alternate" type="text/html" href="https://wiki.fangc.top/index.php?title=%E6%80%8E%E4%B9%88%E8%BF%90%E8%A1%8C.sh%E6%96%87%E4%BB%B6&amp;action=history"/>
	<updated>2026-04-19T16:22:36Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.fangc.top/index.php?title=%E6%80%8E%E4%B9%88%E8%BF%90%E8%A1%8C.sh%E6%96%87%E4%BB%B6&amp;diff=1483&amp;oldid=prev</id>
		<title>FC：​创建页面，内容为“要运行.sh(shell脚本文件）可以使用一下方法：  == 在终端执行： ==  === 打开终端，导航到包含.sh文件的目录执行西面命令： === &lt;syntaxhighlight lang=&quot;shell&quot;&gt; bash filename.sh  &lt;/syntaxhighlight&gt;  === 或者使用chmod命令先使.sh文件可执行，然后运行它： === &lt;syntaxhighlight lang=&quot;shell&quot;&gt; chmod +x filename.sh ./filename.sh &lt;/syntaxhighlight&gt; 分类:Shell”</title>
		<link rel="alternate" type="text/html" href="https://wiki.fangc.top/index.php?title=%E6%80%8E%E4%B9%88%E8%BF%90%E8%A1%8C.sh%E6%96%87%E4%BB%B6&amp;diff=1483&amp;oldid=prev"/>
		<updated>2023-10-10T07:30:18Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“要运行.sh(shell脚本文件）可以使用一下方法：  == 在终端执行： ==  === 打开终端，导航到包含.sh文件的目录执行西面命令： === &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt; bash filename.sh  &amp;lt;/syntaxhighlight&amp;gt;  === 或者使用chmod命令先使.sh文件可执行，然后运行它： === &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt; chmod +x filename.sh ./filename.sh &amp;lt;/syntaxhighlight&amp;gt; &lt;a href=&quot;/index.php?title=%E5%88%86%E7%B1%BB:Shell&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;分类:Shell（页面不存在）&quot;&gt;分类:Shell&lt;/a&gt;”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;要运行.sh(shell脚本文件）可以使用一下方法：&lt;br /&gt;
&lt;br /&gt;
== 在终端执行： ==&lt;br /&gt;
&lt;br /&gt;
=== 打开终端，导航到包含.sh文件的目录执行西面命令： ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
bash filename.sh&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 或者使用chmod命令先使.sh文件可执行，然后运行它： ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
chmod +x filename.sh&lt;br /&gt;
./filename.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[分类:Shell]]&lt;/div&gt;</summary>
		<author><name>FC</name></author>
	</entry>
</feed>