comparison src/computer_literacy/bash.html @ 27:9134d56639ae

finish computer_literacy
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 09 Oct 2025 19:15:03 -0600
parents fb87f762847e
children
comparison
equal deleted inserted replaced
26:fb87f762847e 27:9134d56639ae
9 9
10 let content = { 10 let content = {
11 intro: { 11 intro: {
12 title: 'Introduction', 12 title: 'Introduction',
13 content: `\ 13 content: `\
14 <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 junk. 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> 14 <p><a href="https://www.gnu.org/software/bash/">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>
15
16 <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>
17 ` , 15 ` ,
18 }, 16 },
19 access: { 17 access: {
20 title: 'Running Bash', 18 title: 'Running Bash',
21 content: `\ 19 content: `\
547 /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 545 /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
548 ~/learn $ subl file1 546 ~/learn $ subl file1
549 ~/learn $ 547 ~/learn $
550 </code> 548 </code>
551 549
552 <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> 550 <p>Here I edit the file <code>file1</code> with <a href="computer_literacy.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>
553 551
554 <p>I have Microsoft Word on Windows. From the Windows Command Prompt (not Bash):</p> 552 <p>I have Microsoft Word on Windows. From the Windows Command Prompt (not Bash):</p>
555 553
556 <code block> 554 <code block>
557 C:\\Users\\fschmidt>winword 555 C:\\Users\\fschmidt>winword