<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dovid Edelkopf on Medium]]></title>
        <description><![CDATA[Stories by Dovid Edelkopf on Medium]]></description>
        <link>https://medium.com/@dovid11564?source=rss-52dc22bcd1e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*W5O-v9a9BBg03WXwlKhEog.jpeg</url>
            <title>Stories by Dovid Edelkopf on Medium</title>
            <link>https://medium.com/@dovid11564?source=rss-52dc22bcd1e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:42:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dovid11564/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Streaming in Node JS basics]]></title>
            <link>https://medium.com/@dovid11564/streaming-in-node-js-basics-e5c9f1296a0a?source=rss-52dc22bcd1e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5c9f1296a0a</guid>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Dovid Edelkopf]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 21:53:15 GMT</pubDate>
            <atom:updated>2023-12-12T21:53:15.832Z</atom:updated>
            <content:encoded><![CDATA[<p>Streaming is a very powerul process that is baked into Node JS. This blog will first contain some introductory information on what streaming is and how to use it, following which I will walk through a real world example where I use streaming to transfer a large file to a client in a quick and timely manner.</p><h3>What is streaming?</h3><p><strong>Streaming</strong> is a paradigm which operates on the principle that as data is retrieved, it can be processed. This is in contrast to <strong>Buffering</strong>, which processes data only when it has all been retrieved. You may be familiar with these terms from using services like Netflix or YouTube, which are great examples of how these two are used.</p><h3>What are the benefits of streaming?</h3><p>The two main benefits of streaming are spatial and time efficiency. To use Netflix as an example, if a user sits down to watch a movie, it would be inefficient to load the entire movie prior to the start of the watching of the movie. It could likely take dozens of minutes to assemble a package so large, and the memory requirements to both put it together and to read it on arrival would be immense. And imagine if a few minutes in the user decides to watch something else. All that would have been for nothing! Instead, by utilizing streaming, the user receives a constant stream of data much smaller data packets that follows them as they watch the movie. After all, they don’t need to have the end of the movie until they get up to that point! Composing these smaller packets can be done much faster, and much more efficiently memorywise than using one big buffer. And as for time wise, as each packet is received, Node can begin to process it asynchronously and compose it all back together at the end.</p><figure><img alt="Diagram comparing total time needed to process a file using streaming or buffering. Streaming wins by a landslide." src="https://cdn-images-1.medium.com/max/891/1*3j4npYMtZ78cJ_6psdsxOw.png" /></figure><h3>What types of streams are there?</h3><p>There are 4 main types of streams, and one bonus one that you can use to show off and flex. They are:</p><h3><strong>Readable</strong></h3><ul><li>Readable streams receive (”read”) data from a source.</li><li>We can use this to process large incoming data, like from a fetch request.</li></ul><h3>Writeable</h3><ul><li>Writeable streams can be used to deliver (”write”) data to a destination.</li><li>One use case is uploading a video.</li></ul><h3>Duplex</h3><ul><li>Duplex streams combine the functionality of readable and writeable streams. They can read and write in either direction.</li></ul><h3>Transform</h3><ul><li>Transform streams alters data as it passed through it.</li><li>For example, it can encrypt or compress a file.</li></ul><h3>PassThrough</h3><ul><li>This mythical “5th” stream is a member of the Transform class that outputs the data without altering it.</li><li>One use case is using it to observe the data and monitor it’s size.</li></ul><p>This concludes our brief summary on streams in Node JS.</p><h3>Real world example — Using streams to transfer large files to an AWS S3 Bucket.</h3><p>To start off with, we will have to import the following:</p><ul><li>CreateMultipartUploadCommand and AbortMultipartUploadCommand are tools provided by AWS SDK that we can use to create and kill our streams.</li><li>fs refers to Node’s file system. Read more <a href="https://nodejs.org/api/fs.html">here</a>.</li><li>SFTPClient will allow us to grab our files from an SFTP transfer.</li><li>S3Client will allow us to interact with our bucket.</li><li>The Upload class will allow us to upload files to our bucket.</li></ul><pre>import SFTPClient from &#39;ssh2-sftp-client&#39;;<br>import { <br>  S3Client, <br>  CreateMultipartUploadCommand, <br>  AbortMultipartUploadCommand,<br>} from &quot;@aws-sdk/client-s3&quot;;<br>import { Upload } from &quot;@aws-sdk/lib-storage&quot;;<br>import fs from &#39;fs&#39;;</pre><p>Next, we’re going to deconstruct the events that our handler will receive. We’re going to define some variables that will be used a few times as well. In this example I am using some environment variables, you would need to replace them as necessary.</p><pre>export const handler = async (event) =&gt; {<br>  try {<br>    const records = event.Records;<br>    const results = [];<br><br>    const sftp = new SFTPClient();<br>    const s3 = new S3Client({ region: process.env.AWS_REGION });<br>    const s3Bucket = process.env.BUCKET_NAME;<br><br>    for (const record of records) {<br>      const eventBody = JSON.parse(record.body);<br>      const fileName = eventBody.fileName;<br>      const fileSize = eventBody.fileSize;</pre><p>The following code shows the retrieval process for the file from out SFTP.</p><pre>await sftp.connect({<br>        host: process.env.SFTP_HOST,<br>        port: 22,<br>        username: process.env.SFTP_USERNAME,<br>        password: process.env.SFTP_PASSWORD,<br>      });<br><br>      const localPath = `/tmp/${fileName}`;<br><br>   try {<br>        await sftp.fastGet(`/${fileName}`, localPath);<br>        console.log(&#39;got file thru fastget&#39;);</pre><p>Now that we have retrieved our file, we can begin our streaming process to the S3 Bucket.</p><pre>const createMultipartUploadInput = {<br>       Bucket: s3Bucket,<br>       Key: fileName,<br>       ContentType: &#39;application/pdf&#39;, //content type is defined here to avoid XML<br>     };                                //errors. adjust as needed.<br><br>        const { UploadId } = await s3.send(new CreateMultipartUploadCommand(createMultipartUploadInput));<br>        console.log(&#39;UploadId:&#39;, UploadId);<br><br>        const upload = new Upload({      <br>         client: s3,<br>         params: {<br>           Bucket: s3Bucket,<br>           Key: fileName,<br>            Body: fs.createReadStream(localPath),  <br>          }<br>        });</pre><p>When our upload has finished, we ship it off.</p><pre>const uploadResult = await upload.done();<br>        console.log(&#39;Upload Result&#39;, uploadResult); <br><br>        results.push({       <br>          statusCode: 200,   <br>          body: JSON.stringify({<br>            fileName,<br>            s3Bucket,<br>            s3Key: fileName,<br>          })<br>        });</pre><p>We can also include a listener like this to monitor the streaming process as it happens.</p><pre>upload.on(&quot;httpUploadProgress&quot;, (progress) =&gt; {<br>          console.log(progress);<br>        });</pre><p>The following block handles aborting the multipart upload in case of an error. No matter the result, at the end we will need to close our connections.</p><pre>catch (error) {<br>        console.error(`Error processing ${fileName}:`, error);<br>        if (UploadId) {<br>          const abort = new AbortMultipartUploadCommand({<br>            Bucket: s3Bucket,<br>            Key: fileName,<br>            UploadId,<br>          });<br>          await s3.send(abort);<br>          console.log(&#39;aborted multipartupload for&#39;, fileName);<br>	  }<br>       }<br>       finally {<br>         fs.unlinkSync(localPath);<br>         sftp.end();<br>           }</pre><p>All that’s left to do is add some basic validation and error handling, and our code should be good to go. Our complete function is below.</p><pre>import SFTPClient from &#39;ssh2-sftp-client&#39;;<br>import { <br> S3Client, <br>  CreateMultipartUploadCommand, <br>  AbortMultipartUploadCommand,<br>} from &quot;@aws-sdk/client-s3&quot;;<br>import { Upload } from &quot;@aws-sdk/lib-storage&quot;;<br>import fs from &#39;fs&#39;;<br><br>export const handler = async (event) =&gt; {<br>  try {<br>    const records = event.Records;<br>    const results = [];<br><br>    const sftp = new SFTPClient();<br>    const s3 = new S3Client({ region: process.env.AWS_REGION });<br>    const s3Bucket = process.env.BUCKET_NAME;<br><br>    for (const record of records) {<br>      const eventBody = JSON.parse(record.body);<br>      const fileName = eventBody.fileName;<br>      const fileSize = eventBody.fileSize;<br><br>      if (!fileName || !fileSize) {<br>        results.push({<br>          statusCode: 400,<br>          body: JSON.stringify(&#39;Missing required properties: fileName or fileSize&#39;),<br>        });<br>        continue;<br>      }<br><br>      await sftp.connect({<br>        host: process.env.SFTP_HOST,<br>        port: 22,<br>        username: process.env.SFTP_USERNAME,<br>        password: process.env.SFTP_PASSWORD,<br>      });<br><br>      const localPath = `/tmp/${fileName}`;<br>      <br>      try {<br>        await sftp.fastGet(`/${fileName}`, localPath);<br>        console.log(&#39;got file thru fastget&#39;);<br><br>        const createMultipartUploadInput = {<br>          Bucket: s3Bucket,<br>          Key: fileName,<br>          ContentType: &#39;application/pdf&#39;,<br>        };<br><br>        const { UploadId } = await s3.send(new CreateMultipartUploadCommand(createMultipartUploadInput));<br>        console.log(&#39;UploadId:&#39;, UploadId);<br><br>        const upload = new Upload({<br>          client: s3,<br>          params: {<br>            Bucket: s3Bucket,<br>            Key: fileName,<br>            Body: fs.createReadStream(localPath),<br>          }<br>        });<br><br>        upload.on(&quot;httpUploadProgress&quot;, (progress) =&gt; {<br>          console.log(progress); <br>        });                      <br><br>        const uploadResult = await upload.done();<br>        console.log(&#39;Upload Result&#39;, uploadResult);<br><br>        results.push({<br>          statusCode: 200,<br>          body: JSON.stringify({<br>            fileName,<br>            s3Bucket,<br>            s3Key: fileName,<br>          })<br>        });<br>      }<br>      catch (error) {<br>        console.error(`Error processing ${fileName}:`, error);<br>        if (UploadId) {<br>          const abort = new AbortMultipartUploadCommand({<br>            Bucket: s3Bucket,<br>            Key: fileName,<br>            UploadId,<br>          });<br>          await s3.send(abort);<br>          console.log(&#39;aborted multipartupload for&#39;, fileName);<br>        }<br>      }<br>      finally {<br>        fs.unlinkSync(localPath);<br>        sftp.end();<br>          }<br>      }<br>  }<br>  catch (error) {<br>    console.error(`Error:`, error);<br>    return {<br>      statusCode: 500,<br>      body: JSON.stringify(`An error has occurred: ${error.message}`),<br>    };<br>  }<br>};</pre><p>This has just been a brief summary of stream functionality and their capabilities. For the sake of brevity, I did not touch on key concepts related to streaming, such as piping streams, forking them, backpressure, etc. Streams in Node JS are incredibly powerful and the rabbit hole goes very deep. I urge you to try them out for yourself in a project and to begin working with them.</p><p>References:</p><p><a href="https://nodejs.org/api/stream.html">Stream | Node.js v20.8.0 Documentation (nodejs.org)</a></p><p><a href="https://nodejs.org/api/fs.html">https://nodejs.org/api/fs.html</a></p><p>Node JS Design Patterns, 3rd Edition</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5c9f1296a0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Repeaters in Electrical Engineering Using Minecraft as a Real World Example]]></title>
            <link>https://medium.com/@dovid11564/understanding-repeaters-in-electrical-engineering-using-minecraft-as-a-real-world-example-518f5bf20937?source=rss-52dc22bcd1e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/518f5bf20937</guid>
            <category><![CDATA[electrical-engineering]]></category>
            <category><![CDATA[minecraft]]></category>
            <category><![CDATA[repeater]]></category>
            <dc:creator><![CDATA[Dovid Edelkopf]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 22:16:56 GMT</pubDate>
            <atom:updated>2023-01-25T22:16:56.897Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever since I started my tech journey at Flatiron, one thing has always been of interest to me. It’s great that I know how to code and manipulate data and stuff now, but I’ve kind of been also super curious about how the machines we use operate under the hood. This here blog is a cool way for me to share with people one of the coolest things about electrical engineering that I’ve come across in my self study so far — repeaters.</p><p>But first! A bit of backstory. The concept of repeaters is only really super relevant when you understand why they are necessary and awesome. So, to vastly oversimplify some concepts in how wires work, just take my word for it that the longer a wire is, the more <strong>resistance </strong>the electricity in the wire has. Which means while it can be cost efficient to plug your phone in the wall to charge it, it certainly isn’t cost efficient to string a wire from New York to California to handle telegraph transmissions, for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*9dMtEQi40BB6_xGnUZ0vSw.png" /><figcaption>Our concept here can be clearly seen in our picture here. Our redstone “wire” has too much “resistance” to light up our light block. Despite our greatest efforts, our lightbulb in California cannot be lit by our power source in New York</figcaption></figure><p>And indeed, someone trying to set up a long distance telegram network would run into that very issue. Which is where repeaters come in! In it’s most simple iteration, a repeater could be as simple as a half way point between New York and California, lets for arguments sake use Ohio. Somewhere in Ohio there’s a dude who’s only job is to receive transmissions from New York and send a new message to California and vice versa. Most of the time you can actually automate stuff like this, but basically that’s how it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*GyuO2zPi97if93jVcEc2iQ.png" /><figcaption>With the help of a repeater, we can finnally light up our lightbub!</figcaption></figure><p>ok, Ciao!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=518f5bf20937" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using CSS Animations To Mimic The Look Of A CRT Monitor]]></title>
            <link>https://medium.com/@dovid11564/using-css-animations-to-mimic-the-look-of-a-crt-monitor-3919de3318e2?source=rss-52dc22bcd1e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3919de3318e2</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[styling]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Dovid Edelkopf]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 18:57:59 GMT</pubDate>
            <atom:updated>2023-01-24T18:57:59.334Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, for my phase 5 project at Flatiron, I was developing a tic tac toe game using a react front end. Since in my initial project idea, I had envisioned my game as a narrative experience playing against a computer, (with the computer’s moves being controlled by the minimax algorithm), it was important for me that the game’s aesthetics have a “retro” feel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9e0XobnFyU6TWUEbl8UzGQ.png" /><figcaption>A screenshot of the main portion of my tic tac toe game</figcaption></figure><p>In this here blog I’m going to walk you through some of the different aspects that came together in CSS to help make my pipboy aesthetic dream a reality.</p><p>To start with, in our div that we want to have this effect, we can set a background property with a slight and subtle gradient effect from black to gray on our background. By setting our background size to cover, we ensure that it will cover the entire effected element. And finally, in order to size it appropriately to make it appear like a crt scanline, we will set the background-size property to 100% in the size of 1 pixel. Playing around with that last setting will change the size of your scanlines, so feel to do so until you find a size that feels comfortable for you and your project.</p><pre>.crt {<br>  background: linear-gradient(to top, #000000, #000000, #333333, #333333);<br>  background-size: cover;<br>  background-size: 100% 1px;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*Go94aj9QbBd1gZ3s5LT2kg.png" /><figcaption>What our element might look like with the styling we’ve currently implemented.</figcaption></figure><p>Next, in order to animate our background, we’re going to have to do some fancy shenanigans.</p><pre>@media screen{<br>  .crt {<br>    animation: scanlines infinite 55s linear ;<br>  }<br>} <br>@keyframes scanlines {<br>  from {<br>    background-position: 0 0;<br>  }<br>  to {<br>    background-position: 0 -10px;<br>  }<br>}</pre><p>Implementing this code in your CSS will set an infinite animation loop where the background is slowly moved downwards over your screen. Personally, I went with a loop taking just under a minute because it was fast enough to be noticable, but not too fast to be uncomfortable to look at. If you want to play around with the speed of the animation, reduce the number of seconds it takes to play.</p><p>And yeah, that’s pretty much it in terms of simple CRT styling, so if that’s what you came here for, feel free to leave. if you’re interested in nailing other parts of the aesthetic, you can keep reading though.</p><p>To make our stuff stick out against the background, we’re going to implement a color thingy.</p><pre>.crt {<br>/* scanlines */<br>  background: linear-gradient(to top, #000000, #000000, #333333, #333333);<br>  background-size: cover;<br>  background-size: 100% 1px;<br><br>/* retro stuff */<br>  color: #00ff00;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*1ctZOu5j0aTnkXrwRdJcew.png" /><figcaption>what our updated screen looks like</figcaption></figure><p>But even though this lime green color looks cool as heck, it’s a bit too clean and modern looking for our purposes. We’re going to edit some of the CSS characteristics of our text to make it look a bit older, starting with our font. You can use any mono-space font to get a more older look, but the one I went with is Courier New. I Also set the font size to 50px to size it in proportion to the rest of my project, but you can play around with that for your own needs. I centered the text-align property, and I gave a text shadow property to give each character a little glowing neon “aura”.</p><pre>.crt {<br>/* scanlines */<br>  background: linear-gradient(to top, #000000, #000000, #333333, #333333);<br>  background-size: cover;<br>  background-size: 100% 1px;<br><br>/* retro stuff */<br>  color: #00ff00;<br>  font-family: &quot;Courier New&quot;, monospace;<br>  font-size: 50px;<br>  text-align: center;<br>  text-shadow: 0 0 10px #00ff00;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QnvEcwcWJ-GG7DjS17ph9A.png" /><figcaption>What our updated screen looks like</figcaption></figure><p>We’re nearly there, just a few more updates till the finished product.</p><pre>.crt {<br>/* scanlines */<br>  background: linear-gradient(to top, #000000, #000000, #333333, #333333);<br>  background-size: cover;<br>  background-size: 100% 1px;<br><br>/* retro stuff */<br>  color: #00ff00;<br>  font-family: &quot;Courier New&quot;, monospace;<br>  font-size: 50px;<br>  text-align: center;<br>  text-shadow: 0 0 10px #00ff00;<br><br>/* flex stuff */<br>  display: flex;<br>  flex-direction: column;<br>  align-items: center;<br><br>}</pre><p>This time around, we’re going to center the board inside of our div using some display- flex hacks. And for our final tricks to complete the retro look, we’re going to apply a blur filter to the element we are styling.</p><pre>filter: blur(.8px);</pre><p>And for extra credit, if you want to have rounded edges like an Apple 2 screen, try playing around with this property.</p><pre>border-radius: 20px;</pre><figure><img alt="Our final finished product" src="https://cdn-images-1.medium.com/max/1024/1*KgNTRqeDe0nx0v0Ggkjh4A.png" /><figcaption>our final finished product.</figcaption></figure><p>Thanks for stopping by today. I hope this helped you tons. LMK if you have any questions or feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3919de3318e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech Talk: Terminals]]></title>
            <link>https://medium.com/@dovid11564/tech-talk-terminals-cf9c46fcec55?source=rss-52dc22bcd1e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf9c46fcec55</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Dovid Edelkopf]]></dc:creator>
            <pubDate>Sat, 24 Sep 2022 02:23:14 GMT</pubDate>
            <atom:updated>2022-09-24T02:23:14.192Z</atom:updated>
            <content:encoded><![CDATA[<p>Prior to our modern computer, in the terrible dark before times, computers were extremely limited in terms of their input methods. Mouses had not yet been invented, and developers pretty much only had access to a screen and a keyboard, which together were known as the <strong>Terminal</strong>.</p><p>Because of this, there are a few conventions that still harken back to the “before times”. For example, many commands (like mkdir) are shortened from the term we would call it (make directory). As a general rule, commands are written in a shorthand for ease of typing, but also maintain a general recognizable aspect to uniquely identify them. They are also pretty much all on the home row of the keyboard, which means an experienced touch typist will be able to execute commands much faster than with a mouse and <strong>Graphical User Interface</strong> (also known as a <strong>GUI</strong>).</p><p>Although nowadays many computers have much more user friendly <strong>GUI</strong>s than the old terminal, for the purposes of software engineering, being able to directly access and communicate with our machines is of paramount importance. This is where the terminal’s modern successors, terminal emulators like <strong>Ubuntu</strong> and <strong>Mac OSX</strong> come in. They allow us to mimic the functionality of a terminal and communicate with our machines.</p><p>Using our modern terminals, we could create or destroy files, directories, and even access the internet, all without using the files app on our computer, or in other words, without using the GUI.</p><h4>Understanding How Information is accessed via the Terminal</h4><p>So, with all of that being said, how does the Terminal practically work? One helpful image often used in programming is the tree with many branches.</p><figure><img alt="A large tree with many branches reaching out in many different direction." src="https://cdn-images-1.medium.com/max/1024/0*7bbyoAjNCZqjhfQn" /><figcaption>Photo by <a href="https://unsplash.com/@akummur?utm_source=medium&amp;utm_medium=referral">Adarsh Kummur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Take a moment to imagine that you were a squirrel about to climb a tree. At the base of the tree, your path is simple, and there is only one direction to go, up. As you continue to climb, you encounter a new crossroads at each branch. Eventually you find yourself at the top of a tree, or maybe you climbed out to the farthest branch.</p><p>Information is stored in a very similar way inside of a computer. Files are stored inside of directories, which are stored in parent directories, and so on and so forth all the way back to the top where they all connect.</p><h4>So how does your computer find the requested information?</h4><p>Much like our beloved squirrel, when looking for a particular file, our computer will begin at the root of the tree where everything can be accessed. At each new level, the computer will reach a fork in the road, like different user profiles, or the choice between a screenshot folder and a saved image folder. To talk like a techie for a moment, everything can be reached through the terminal via it’s own unique <strong>path</strong>.</p><h4>Common command line commands</h4><ul><li><em>ls — </em>Lists all files and folders in the current directory</li><li><em>ls -a — </em>Lists all files and folders in the current directory, including hidden ones</li><li><em>mkdir [name] — </em>Make a new directory with the given [name]</li><li><em>cd [folder] — </em>Change directories to the given [folder]</li><li><em>cd .. — </em>Change directories to the parent directory</li><li><em>cd ~ — </em>Change directories to the home directory</li><li><em>pwd — </em>print the full path of the current working directory</li><li><em>explorer.exe — </em>(Windows) open the File Explorer to the current directory</li><li><em>open . — </em>(Mac) Open the Finder application to the current directory</li></ul><h4>To Sum Up</h4><p>A mastery of the command line allows the user to intimately work with the computer in a familiar environment. Cheers and good luck on your learning journey.</p><h4>Further Reading</h4><ul><li><a href="https://en.wikipedia.org/wiki/Command-line_interface">Command-line interface - Wikipedia</a></li><li><a href="https://www.codecademy.com/learn/learn-the-command-line">Command Line Tutorial: Learn The Command Line | Codecademy</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf9c46fcec55" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>