comparison src/learn_bash.html.luan @ 67:b1982e401900

security
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 15 Sep 2024 08:09:27 -0600
parents 3082eaf8457d
children
comparison
equal deleted inserted replaced
66:4b68d7e43726 67:b1982e401900
11 local content = { 11 local content = {
12 intro = { 12 intro = {
13 title = [[Introduction]] 13 title = [[Introduction]]
14 content = function() 14 content = function()
15 %> 15 %>
16 <p>I really don't want to write this tutorial, but all the existing Bash tutorials are so horrible that I have no choice. I looked at books, websites, and YouTube - all horrible. They don't start with the basics. They include all kinds of useless crap. And they don't explain core concepts. So I have no choice but to write this for my <a href="http://localhost:8080/learn.html#bash">Learn Reactionary Programming</a> Bash lesson.</p> 16 <p>I really don't want to write this tutorial, but all the existing Bash tutorials are so horrible that I have no choice. I looked at books, websites, and YouTube - all horrible. They don't start with the basics. They include all kinds of useless crap. And they don't explain core concepts. So I have no choice but to write this for my <a href="/learn.html#bash">Learn Reactionary Programming</a> Bash lesson.</p>
17 17
18 <p><a href="bash.html">Bash</a> is a <a href="https://en.wikipedia.org/wiki/Unix_shell">shell</a>, one of many, but the one I prefer. I will focus on Mac and Windows. I don't have Linux, and I hate Linux, so I won't discuss it. Most of Bash is the same on Mac and Windows, but where they differ, I will discuss both.</p> 18 <p><a href="bash.html">Bash</a> is a <a href="https://en.wikipedia.org/wiki/Unix_shell">shell</a>, one of many, but the one I prefer. I will focus on Mac and Windows. I don't have Linux, and I hate Linux, so I won't discuss it. Most of Bash is the same on Mac and Windows, but where they differ, I will discuss both.</p>
19 <% 19 <%
20 end 20 end
21 } 21 }
555 /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/fschmidt/Dropbox/bin:/Users/fschmidt/hg/luan/scripts:/usr/local/opt/postgresql@9.5/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin 555 /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/fschmidt/Dropbox/bin:/Users/fschmidt/hg/luan/scripts:/usr/local/opt/postgresql@9.5/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin
556 ~/learn $ subl file1 556 ~/learn $ subl file1
557 ~/learn $ 557 ~/learn $
558 </code> 558 </code>
559 559
560 <p>Here I edit the file <code>file1</code> with <a href="http://localhost:8080/learn.html#editor">Sublime Text</a>, first by using the full path, and then by adding the directory to <code>PATH</code> so that Bash can find <code>subl</code>.</p> 560 <p>Here I edit the file <code>file1</code> with <a href="/learn.html#editor">Sublime Text</a>, first by using the full path, and then by adding the directory to <code>PATH</code> so that Bash can find <code>subl</code>.</p>
561 561
562 <p>I have Microsoft Word on Windows. From the Windows Command Prompt (not Bash):</p> 562 <p>I have Microsoft Word on Windows. From the Windows Command Prompt (not Bash):</p>
563 563
564 <code block> 564 <code block>
565 C:\Users\fschmidt>winword 565 C:\Users\fschmidt>winword