<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cramsession.net/index.php?action=history&amp;feed=atom&amp;title=%E2%80%98bash%5Cr%E2%80%99%3A_No_such_file_or_directory</id>
	<title>‘bash\r’: No such file or directory - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cramsession.net/index.php?action=history&amp;feed=atom&amp;title=%E2%80%98bash%5Cr%E2%80%99%3A_No_such_file_or_directory"/>
	<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=%E2%80%98bash%5Cr%E2%80%99:_No_such_file_or_directory&amp;action=history"/>
	<updated>2026-05-26T23:56:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://cramsession.net/index.php?title=%E2%80%98bash%5Cr%E2%80%99:_No_such_file_or_directory&amp;diff=1542&amp;oldid=prev</id>
		<title>Mflavell at 22:40, 16 May 2026</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=%E2%80%98bash%5Cr%E2%80%99:_No_such_file_or_directory&amp;diff=1542&amp;oldid=prev"/>
		<updated>2026-05-16T22:40:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:40, 16 May 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Computer Notes]] &amp;gt; [[Linux]] &amp;gt; ‘bash\r’: No such file or directory&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Computer Notes]] &amp;gt; [[Linux]] &amp;gt; ‘bash\r’: No such file or directory&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;That error &lt;/del&gt;is a classic &quot;invisible&quot; headache. It usually happens because of a disagreement between Windows and Unix-based systems (like Linux or macOS) on how a line of text should end.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=Overview==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This &lt;/ins&gt;is a classic &quot;invisible&quot; headache. It usually happens because of a disagreement between Windows and Unix-based systems (like Linux or macOS) on how a line of text should end.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==The Culprit: Line Endings==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==The Culprit: Line Endings==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the world of text files, there are two main ways to signal the end of a line:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the world of text files, there are two main ways to signal the end of a line:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-1426:rev-1542:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=%E2%80%98bash%5Cr%E2%80%99:_No_such_file_or_directory&amp;diff=1426&amp;oldid=prev</id>
		<title>Mflavell: Created page with &quot;Computer Notes &gt; Linux &gt; ‘bash\r’: No such file or directory  That error is a classic &quot;invisible&quot; headache. It usually happens because of a disagreement between Windows and Unix-based systems (like Linux or macOS) on how a line of text should end.  ==The Culprit: Line Endings== In the world of text files, there are two main ways to signal the end of a line:  LF (Line Feed): Used by Linux/macOS. Represented as \n.  CRLF (Carriage Return + Line Feed): Used by W...&quot;</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=%E2%80%98bash%5Cr%E2%80%99:_No_such_file_or_directory&amp;diff=1426&amp;oldid=prev"/>
		<updated>2026-04-27T16:38:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Computer_Notes&quot; title=&quot;Computer Notes&quot;&gt;Computer Notes&lt;/a&gt; &amp;gt; &lt;a href=&quot;/index.php/Linux&quot; title=&quot;Linux&quot;&gt;Linux&lt;/a&gt; &amp;gt; ‘bash\r’: No such file or directory  That error is a classic &amp;quot;invisible&amp;quot; headache. It usually happens because of a disagreement between Windows and Unix-based systems (like Linux or macOS) on how a line of text should end.  ==The Culprit: Line Endings== In the world of text files, there are two main ways to signal the end of a line:  LF (Line Feed): Used by Linux/macOS. Represented as \n.  CRLF (Carriage Return + Line Feed): Used by W...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Computer Notes]] &amp;gt; [[Linux]] &amp;gt; ‘bash\r’: No such file or directory&lt;br /&gt;
&lt;br /&gt;
That error is a classic &amp;quot;invisible&amp;quot; headache. It usually happens because of a disagreement between Windows and Unix-based systems (like Linux or macOS) on how a line of text should end.&lt;br /&gt;
&lt;br /&gt;
==The Culprit: Line Endings==&lt;br /&gt;
In the world of text files, there are two main ways to signal the end of a line:&lt;br /&gt;
&lt;br /&gt;
LF (Line Feed): Used by Linux/macOS. Represented as \n.&lt;br /&gt;
&lt;br /&gt;
CRLF (Carriage Return + Line Feed): Used by Windows. Represented as \r\n.&lt;br /&gt;
&lt;br /&gt;
When you see ‘bash\r’, it means your system is trying to execute a file that has Windows-style line endings. The system reads bash plus that invisible carriage return (\r) as the name of the interpreter. Since there is no program actually named bash\r, it throws the &amp;quot;No such file or directory&amp;quot; error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Fix==&lt;br /&gt;
&lt;br /&gt;
 sed -i &amp;#039;s/\r$//&amp;#039; your_script_name.sh&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
</feed>