Files
Library/docs/.vitepress/dist/assets/rebel_coding_termintro.md.FZ5Hz2Ty.js

7 lines
11 KiB
JavaScript
Raw Permalink Normal View History

2026-01-10 00:23:33 -05:00
import{_ as o,c as t,o as a,ah as n,ar as s,as as r,at as i,au as d,av as h,aw as p,ax as l}from"./chunks/framework.j4Nev8bF.js";const k=JSON.parse('{"title":"Intro to Terminal","description":"","frontmatter":{},"headers":[],"relativePath":"rebel_coding/termintro.md","filePath":"rebel_coding/termintro.md"}'),c={name:"rebel_coding/termintro.md"};function m(u,e,w,g,y,b){return a(),t("div",null,[...e[0]||(e[0]=[n(`<h1 id="intro-to-terminal" tabindex="-1">Intro to Terminal <a class="header-anchor" href="#intro-to-terminal" aria-label="Permalink to “Intro to Terminal”"></a></h1><hr><p>If you are using a Mac, use Spotlight to search for the Terminal program. Open it up and begin following along; all of these instructions will work the same for you. If you are using Windows, Im sorry, but we wont delve into the differences Powershell employs. Rather I recommend you purchase a one month subscription to Rebel Labs, where you can use the Linux terminal provided.</p><p><code>whoami</code> &amp; <code>pwd</code> are two of the first commands one ought learn. Type each command into the terminal and press Enter.</p><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark" style="--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e;" tabindex="0" dir="ltr"><code><span class="line"><span> $ whoami</span></span>
2026-01-09 23:05:52 -05:00
<span class="line"><span> Username</span></span>
<span class="line"><span> $ pwd</span></span>
<span class="line"><span> /home/Username</span></span></code></pre></div><p>The first command provides an obvious answer, and the second is obvious enough once you know that it stands for print work directory.</p><p>Though for a long time, I thought it meant present working directory, because that just seems so much more descriptive to me.</p><p>Nonetheless, we answer the question, Where am I?</p><p>In all likelihood, you should be in your home/{username} directory.</p><p>And if youre in Rebel Labs (RL), thats where you will start!</p><p>Next, lets take a look around ~ by typing the command <code>ls</code> and pressing Enter.</p><p>The <code>ls</code> command lists the items in our <em>present working directory</em>.</p><p>Cool, if we are in the RL we should see a notebooks folder. But lets back up one moment ~</p><p>I want to tell you about <strong>command flags</strong>.</p><p>We just used three commands, <code>whoami</code>, <code>pwd</code>, and <code>ls</code>. The last of which has some other capabilities that can be accessed using command properties, indicated by <em>flags</em>.</p><p>Instead of just typing <code>ls</code> into the terminal, type <code>ls -l</code> and press Enter!</p><p>Huzzah ~ more details.</p><p>What do they all mean?!? Were not going to cover that now, peep the appendix.</p><p>Were gonna keep movin along. The important thing to note is that this is how command flags work, they need at least one-dash, sometimes two, to precede them.</p><p>Next command: <code>cd</code></p><p>If you just typed that in and pressed Enter, nothing will happen.</p><p>We need to add a destination, as <code>cd</code> stands for <em>change directory</em> type <code>cd notebooks</code> and press Enter.</p><p>Lets use <code>ls</code> or <code>ls -l</code> again, to take a look at what we got </p><p>If youre in the RL, then you ought to see nothing. And if youre following along on your own computer from your home directory lets first use the <code>mkdir</code> to make a new directory called RCNotebooks, or whatever name you like.</p><p><code>mkdir RCNotebooks</code> and press Enter.</p><p>Just like <code>cd</code> we needed to provide a name for the directory to be made.</p><p>Then we can <code>cd</code> into RCNotebooks as shown above, and onward we continue.</p><p><img src="`+s+'" alt="alt text"></p><h1 id="ssh-hidden-folders" tabindex="-1">SSH &amp; Hidden Folders <a class="header-anchor" href="#ssh-hidden-folders" aria-label="Permalink to SSH &amp; Hidden Folders"></a></h1><hr><p>I made a funny, we need to reverse which is a great chance to learn how we do this in the command line??</p><p>Though first off, lets make a mental model.</p><p>I like to consider the file system like chutes and ladders; up and down.</p><p>We often start right in the middle. in our home directory /home/user. And everything we initially access is <em>down</em> the file system from this location: /home/user/notebooks. /home/user/Desktop, /home/user/Downloads, etc.</p><p>Reversing directions would mean to travel back <em>up</em> the file stack. We use double-dots to do this, as follows:</p><p><code>cd ..</code> and press Enter.</p><p>Dont forget <em>both dots</em>!</p><p>And we should now be back in our home directory, if we use the command <code>ls</code> we should see our Notebooks directory; or use the <code>pwd</code> command to confirm your location.</p><p>Now we make an SSH key, but what does that even mean?</p><p><img src="'+r+'" alt="alt text"></p><p><strong>SSH - Secure Shell</strong></p><p>Right now were using the terminal, or command line interface, and your account is considered a <em>shell</em> account; while you have <em>shell</em> access. Shell being another word for the <em>terminal</em>.</p><p>Presumably your account is protected by a password; and its a really good one, or it isnt; thats not immediately the point.</p><p>The point is that every single time you want to get or send project files to a repository; you dont want to
</code></pre><p>Last command, make sure to use your GitHub username:</p><pre><code>cp -r Classwork/username.github.io {username}.github.io
</code></pre><p>Can you tell what you just did?</p><p><img src="`+l+'" alt="alt_text"></p><h1 id="additional-support" tabindex="-1">Additional Support <a class="header-anchor" href="#additional-support" aria-label="Permalink to Additional Support"></a></h1><hr><p>The remainder of this book builds off of the material in this repository. If you are having ANY trouble, please reach out to <a href="mailto:canin@dreamfreely.org" target="_blank" rel="noreferrer">canin@dreamfreely.org</a> ~</p><p>The last command we ran copied template files for your HTML website. If youre using GitHub.com you can publish your website to a github.io address that uses your username.</p><p>We&#39;ll cover this process after we&#39;ve been introduced to HTML &amp; CSS.</p>',98)])])}const v=o(c,[["render",m]]);export{k as __pageData,v as default};