<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shell - 東東 GCP 教學 - GCP 實戰講師</title>
	<atom:link href="https://dongdonggcp.com/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://dongdonggcp.com</link>
	<description>助你考取證照，轉職成功</description>
	<lastBuildDate>Mon, 07 Apr 2025 06:32:27 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://dongdonggcp.com/wp-content/uploads/2025/04/cropped-340838097_121391010914395_5443948698124160121_n-32x32.jpg</url>
	<title>Shell - 東東 GCP 教學 - GCP 實戰講師</title>
	<link>https://dongdonggcp.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">243235092</site>	<item>
		<title>解決 Mac 終端機 .zshrc no such file or directory 的問題 .bash_profile</title>
		<link>https://dongdonggcp.com/2023/08/20/%e8%a7%a3%e6%b1%ba-mac-%e7%b5%82%e7%ab%af%e6%a9%9f-zshrc-no-such-file-or-directory-%e7%9a%84%e5%95%8f%e9%a1%8c-bash_profile/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e8%25a7%25a3%25e6%25b1%25ba-mac-%25e7%25b5%2582%25e7%25ab%25af%25e6%25a9%259f-zshrc-no-such-file-or-directory-%25e7%259a%2584%25e5%2595%258f%25e9%25a1%258c-bash_profile</link>
					<comments>https://dongdonggcp.com/2023/08/20/%e8%a7%a3%e6%b1%ba-mac-%e7%b5%82%e7%ab%af%e6%a9%9f-zshrc-no-such-file-or-directory-%e7%9a%84%e5%95%8f%e9%a1%8c-bash_profile/#respond</comments>
		
		<dc:creator><![CDATA[東東]]></dc:creator>
		<pubDate>Sun, 20 Aug 2023 08:50:22 +0000</pubDate>
				<category><![CDATA[有的沒的]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Terminal]]></category>
		<guid isPermaLink="false">https://dongdonggcp.wordpress.com/?p=5434</guid>

					<description><![CDATA[<p>最近每次一打開終端機，都會看到這個錯誤訊 [&#8230;]</p>
<p>The post <a href="https://dongdonggcp.com/2023/08/20/%e8%a7%a3%e6%b1%ba-mac-%e7%b5%82%e7%ab%af%e6%a9%9f-zshrc-no-such-file-or-directory-%e7%9a%84%e5%95%8f%e9%a1%8c-bash_profile/">解決 Mac 終端機 .zshrc no such file or directory 的問題 .bash_profile</a> first appeared on <a href="https://dongdonggcp.com">東東 GCP 教學 - GCP 實戰講師</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">最近每次一打開終端機，都會看到這個錯誤訊息</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1302" height="144" src="https://dongdonggcp.wordpress.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.32.png?w=1024" alt="" class="wp-image-5436" srcset="https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.32.png 1302w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.32-300x33.png 300w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.32-1024x113.png 1024w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.32-768x85.png 768w" sizes="(max-width: 1302px) 100vw, 1302px" /></figure>



<p class="wp-block-paragraph">後來上網查，了解到每次開終端機， .zshrc 這個檔案會被執行</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1172" height="596" src="https://dongdonggcp.wordpress.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.54.png?w=1024" alt="" class="wp-image-5438" srcset="https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.54.png 1172w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.54-300x153.png 300w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.54-1024x521.png 1024w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.40.54-768x391.png 768w" sizes="(max-width: 1172px) 100vw, 1172px" /></figure>



<p class="wp-block-paragraph">然後它只要執行 &#8220;source ~/.bash_profile&#8221; 就會出錯，因為這個檔案根本不存在</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1426" height="350" src="https://dongdonggcp.wordpress.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.03.png?w=1024" alt="" class="wp-image-5439" srcset="https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.03.png 1426w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.03-300x74.png 300w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.03-1024x251.png 1024w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.03-768x188.png 768w" sizes="(max-width: 1426px) 100vw, 1426px" /></figure>



<p class="wp-block-paragraph">後來就進去改它</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="802" height="98" src="https://dongdonggcp.wordpress.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.35.png?w=802" alt="" class="wp-image-5442" srcset="https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.35.png 802w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.35-300x37.png 300w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.35-768x94.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></figure>



<p class="wp-block-paragraph">把那一行直接刪掉</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="840" height="312" src="https://dongdonggcp.wordpress.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.24.png?w=840" alt="" class="wp-image-5441" srcset="https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.24.png 840w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.24-300x111.png 300w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.24-768x285.png 768w" sizes="(max-width: 840px) 100vw, 840px" /></figure>



<p class="wp-block-paragraph">之後再重新開終端機，就沒有那個問題了</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="844" height="190" src="https://dongdonggcp.wordpress.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.47.png?w=844" alt="" class="wp-image-5444" srcset="https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.47.png 844w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.47-300x68.png 300w, https://dongdonggcp.com/wp-content/uploads/2023/08/e688aae59c96-2023-08-20-e4b88be58d884.41.47-768x173.png 768w" sizes="(max-width: 844px) 100vw, 844px" /></figure>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">如果在指令比較長的時候碰到問題，有時候是因為指令用複製貼上的，如果不要偷懶，改成用手打指令，就可以了。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1164" height="572" src="https://dongdonggcp.wordpress.com/wp-content/uploads/2023/12/e688aae59c96-2023-12-27-e4b88be58d8812.03.09.png?w=1024" alt="" class="wp-image-5559" srcset="https://dongdonggcp.com/wp-content/uploads/2023/12/e688aae59c96-2023-12-27-e4b88be58d8812.03.09.png 1164w, https://dongdonggcp.com/wp-content/uploads/2023/12/e688aae59c96-2023-12-27-e4b88be58d8812.03.09-300x147.png 300w, https://dongdonggcp.com/wp-content/uploads/2023/12/e688aae59c96-2023-12-27-e4b88be58d8812.03.09-1024x503.png 1024w, https://dongdonggcp.com/wp-content/uploads/2023/12/e688aae59c96-2023-12-27-e4b88be58d8812.03.09-768x377.png 768w" sizes="(max-width: 1164px) 100vw, 1164px" /></figure><p>The post <a href="https://dongdonggcp.com/2023/08/20/%e8%a7%a3%e6%b1%ba-mac-%e7%b5%82%e7%ab%af%e6%a9%9f-zshrc-no-such-file-or-directory-%e7%9a%84%e5%95%8f%e9%a1%8c-bash_profile/">解決 Mac 終端機 .zshrc no such file or directory 的問題 .bash_profile</a> first appeared on <a href="https://dongdonggcp.com">東東 GCP 教學 - GCP 實戰講師</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://dongdonggcp.com/2023/08/20/%e8%a7%a3%e6%b1%ba-mac-%e7%b5%82%e7%ab%af%e6%a9%9f-zshrc-no-such-file-or-directory-%e7%9a%84%e5%95%8f%e9%a1%8c-bash_profile/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5434</post-id>	</item>
	</channel>
</rss>
