<?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 Adedapo Adedamola on Medium]]></title>
        <description><![CDATA[Stories by Adedapo Adedamola on Medium]]></description>
        <link>https://medium.com/@adedamola-adedapo?source=rss-de5a020e7010------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wlODjtSqbQKtlNDRs_qRzg.jpeg</url>
            <title>Stories by Adedapo Adedamola on Medium</title>
            <link>https://medium.com/@adedamola-adedapo?source=rss-de5a020e7010------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:06:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adedamola-adedapo/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[False gods]]></title>
            <link>https://medium.com/@adedamola-adedapo/false-gods-a3ffd9820459?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3ffd9820459</guid>
            <category><![CDATA[self-confidence]]></category>
            <category><![CDATA[confidence]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 22:11:33 GMT</pubDate>
            <atom:updated>2025-09-25T22:11:33.512Z</atom:updated>
            <content:encoded><![CDATA[<p>Gods in a broken temple are easy to break, but the god in the heart is hard to break.<br> What do you revere as a god in your heart? What is that sacred object that you have imbued with the power of your thought as god? A human, a thing, a concept, whatever it is, according it so much reverence makes you a slave to it. The state of your mind makes you a slave to the image of your mind-god.</p><p>Giving this image the power of a god, the grace of a god, the state of a god in your mind and projecting this into reality creates wonders. And when you behold these wonders, you see that by empowering something even if itbeneath you with the sacred power of your mind, you automatically kneel to it. In doing so, you place yourself in the state of a slave. Once you kneel, you find it hard to stand.</p><p>Physical gods in physical temples are easily broken and ignored, but the god in your heart is hard to break. <strong>Zoe</strong> is the godly power of your mind, given to you by the Creator. The moment you cherish something too much giving it power, aura, and status you have handed over your god-power to that thing. It could be money, possessions, or a particular lifestyle.</p><p>The first step to taking back your godly power is facing your fears. Ask yourself: <em>Do I want to lose to my fears?</em> If your response is no, then you are already one step closer to reclaiming the Creator’s power, a godly quality. Change the state of your mind, and both possibility and opportunity will open up to you. Divine gods have infinite possibilities and you are one of them.</p><p>The next step is to <strong>pee on god</strong>. Be honorable and respectful to all humans, but exalt none. Peeing on gods is the most noble way to regain the power and aura you once handed them. This will drastically shift the state of your mind, and you will feel complete once more. It is accompanied by great fear, but with great risk comes great opportunity. Everyone I have witnessed do this has tremendously broken free, to a huge degree, from their servitude to whatever thing, ideology, or power they once exalted above themselves. Peeing on your false god destroys it and shifts the state of your mind to freedom and completeness of heart.</p><p>Develop a third eye the eye of your spirit. Unless you don’t know, you have a spirit. The more awakened your spirit is, the more your spirit eye sees. You trust yourself more. You see flaws and nonsense more clearly. Lies become tangible things you can feel and squeeze. Open the divine eyes of your heart, see the true God, and pee on the rest.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3ffd9820459" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#77: Ink and Insight: Thought Diversity]]></title>
            <link>https://medium.com/@adedamola-adedapo/77-ink-and-insight-thought-diversity-6f53e323fd07?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f53e323fd07</guid>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 22:10:50 GMT</pubDate>
            <atom:updated>2025-09-25T22:10:50.950Z</atom:updated>
            <content:encoded><![CDATA[<p>Diversity of thought is healthy. You can’t have extremism on any one side of the political, religion, mental orientation spectrum, which is how cults develop. That creates a severe us versus them mentality. Embracing diverse perspectives can lead to more creative and effective solutions to complex problems.</p><p>If you grew up in a home where only your parents were always right, where your opinion didn’t matter… or you attended a church where the pastor could never be challenged because he was “all-knowing”… or you work in a company where your boss is a know-it-all who should never be questioned or presented with a new perspective, then you’ve experienced environments that do not foster growth, but instead resemble cult-like systems.</p><p>In most situations, humanity is on the same team, regardless of political or religious orientation. We usually just hold different perspectives on <em>how</em> to achieve common goals. The real division often comes from extremist thinking.</p><p>Extreme thoughts promote ideas like: <em>We are perfect. We are better.</em> This mindset inevitably compares one group against another and discourages questioning. The point is this: wherever you hear the words <em>“We are perfect,”</em> start asking questions because, more often than not, they aren’t. And the reason is simple… perfection doesn’t exist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f53e323fd07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#88: Ink and Insight: Manage Your Boss Or They’ll Manage You]]></title>
            <link>https://medium.com/@adedamola-adedapo/88-ink-and-insight-manage-your-boss-or-theyll-manage-you-09d1a0ea7564?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/09d1a0ea7564</guid>
            <category><![CDATA[corporate-culture]]></category>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[emotional-intelligence]]></category>
            <category><![CDATA[management-and-leadership]]></category>
            <category><![CDATA[business-strategy]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 06:55:08 GMT</pubDate>
            <atom:updated>2025-09-03T06:55:08.580Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BSYIsUh_qzkTE0K7.png" /></figure><p>If you want to succeed as an employee, learn to manage up. This means proactively updating your boss especially on projects they care about without waiting for them to ask or show up in your meetings. It’s one of the most valuable ways to stay useful to leadership, and it matters on top of doing your core job.</p><p>Managing your boss and completing your primary responsibilities are two different skills. But in fast-paced, competitive environments, the ability to manage up often sets high performers apart.</p><p>Start by learning how your boss prefers to receive information. If you’re not sure, assume their time is limited. Cut the backstory, get straight to the point, and present your updates in a format they can scan at a glance think quick summaries plus key metrics.</p><p>Be consistent. Whether you report weekly or biweekly is up to you, but stay regular. Ask what they care about right now, because priorities shift. Once you’ve proven yourself, ask where else you can apply your skills.</p><p>Pitch helpful ideas in brief, one- to two-minute write-ups. Always assume their attention span is short think “TikTok reel” short.</p><p>These are the habits of high performers the kind of employees who get noticed and rewarded.</p><p>Above all, be useful. Share valuable updates without being asked. Move fast. People trust those who deliver, not those who obsess over perfecting every detail. And if you can move fast and get it right, that’s even better.</p><p>Don’t be subtle. Subtlety won’t get you promoted or increase your or earn you a bonus. No one has time to uncover how hard you’re working so speak up, show results, and make your value obvious.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09d1a0ea7564" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#99: Ink and Insight: On Kipling’s If]]></title>
            <link>https://medium.com/@adedamola-adedapo/99-ink-and-insight-on-kiplings-if-7a22e60e670f?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a22e60e670f</guid>
            <category><![CDATA[men]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[world]]></category>
            <category><![CDATA[humanity]]></category>
            <category><![CDATA[maturity]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 12:06:31 GMT</pubDate>
            <atom:updated>2025-07-21T13:07:43.639Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53i7120yBzju4jKTZfsFCQ.png" /></figure><p>One of my favourite poems a timeless reminder of resilience, humility, and quiet strength. For me, it captures what Kipling believed; it means to be a man and it’s humbling every time I read it.</p><p>If you can keep your head when all about you<br> are losing theirs and blaming it on you;<br> If you can trust yourself when all men doubt you,<br> but make allowance for their doubting too;</p><p>If you can wait and not be tired by waiting,<br> or, being lied about, don’t deal in lies,<br> or, being hated, don’t give way to hating,<br> and yet don’t look too good, nor talk too wise;</p><p>If you can dream and not make dreams your master;<br> If you can think and not make thoughts your aim;<br> If you can meet with Triumph and Disaster<br> and treat those two impostors just the same;</p><p>If you can bear to hear the truth you’ve spoken<br> twisted by knaves to make a trap for fools,<br> or watch the things you gave your life to, broken,<br> and stoop and build ’em up with worn-out tools;</p><p>If you can make one heap of all your winnings<br> and risk it on one turn of pitch-and-toss,<br> and lose, and start again at your beginnings,<br> and never breathe a word about your loss;</p><p>If you can force your heart and nerve and sinew<br> to serve your turn long after they are gone,<br> and so hold on when there is nothing in you<br> except the Will which says to them: ‘Hold on!’</p><p>If you can talk with crowds and keep your virtue,<br> or walk with Kings nor lose the common touch,<br> if neither foes nor loving friends can hurt you,<br> if all men count with you, but none too much;</p><p>If you can fill the unforgiving minute<br> with sixty seconds’ worth of distance run <br> yours is the Earth and everything that’s in it,<br> and which is more you’ll be a Man, my son!</p><p>May we grow into the strength these words remind us we already carry and stand in the fullness of what it means to be a man.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a22e60e670f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#7: Ink and Insight: Pushing an Impossible Boulder]]></title>
            <link>https://medium.com/@adedamola-adedapo/7-ink-and-insight-pushing-an-impossible-boulder-a24b90c37707?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/a24b90c37707</guid>
            <category><![CDATA[not-giving-up]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[continuous-improvement]]></category>
            <category><![CDATA[encouragement]]></category>
            <category><![CDATA[moving-forward]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 06:59:15 GMT</pubDate>
            <atom:updated>2025-01-31T08:12:35.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYaIb7734PGxUOLDL3UoJA.jpeg" /></figure><p>There is a boulder I push every day. It is deeply rooted in the ground, so much so that it feels like part of the earth itself. From the surface, it looks small, but beneath, it is massive, unmoving.</p><p>I have been at this for nearly thirty years. Every day, I push. Every day, it does not move. No cracks. No creaks. No sign of progress. Just silence. And yet, I keep going.</p><p>This morning, like every other, I step outside in my worn-out shorts, ready to try again. As I gather my resolve, I feel a sharp sting on the back of my neck. Instinctively, I slap the spot, hoping to crush whatever insect dared to bite me. But when I bring my hand forward to check, something else catches my eye.</p><p>My arm.</p><p>It is not the arm I was born with. I came into this world frail, my limbs thin and weak. But now…now, they are strong. The muscles are firm, powerful. These are not the arms of the boy who started this task, they are the arms of a man who has fought, endured, and grown.</p><p>And suddenly, I understand.</p><p>The boulder has not moved. But I have.</p><p>All these years, I thought I was pushing an impossible weight, making no progress. But in truth, I was the one changing. The struggle that seemed fruitless was shaping me, strengthening me, preparing me.</p><p>So today, I push again not just for the boulder, but for myself. Because I see now: the fight is never wasted. Every effort, every setback, every moment of doubt, it is all making me stronger.</p><p>And one day, when I am ready, that boulder will move. Or maybe, just maybe, I won’t need it to anymore.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a24b90c37707" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#4 Ink and Insight: Family, Love Unconditioned]]></title>
            <link>https://medium.com/@adedamola-adedapo/4-ink-and-insight-family-love-unconditioned-c7d0a53e11be?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7d0a53e11be</guid>
            <category><![CDATA[friends]]></category>
            <category><![CDATA[family]]></category>
            <category><![CDATA[dear]]></category>
            <category><![CDATA[partners]]></category>
            <category><![CDATA[love]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 20:04:04 GMT</pubDate>
            <atom:updated>2024-08-03T20:04:04.765Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGnBPx-IpaP6506i2bysXw.jpeg" /><figcaption>The Beauty of Human Connectedness (<a href="https://img.freepik.com/premium-photo/minimalist-line-drawing-happy-family-holding-hands_217051-16644.jpg?w=1480">source</a>)</figcaption></figure><p>Our lives are like epic quests, with each of us setting off on our adventures. While humanity’s adventure began long before we came along, each of us embarks on a unique path during our lifetime. Some believe that starting early offers advantages, but I think it’s more about how we begin our journey.</p><p>Many believe our journey truly begins when we leave our family, perhaps for school or a new job in a different city. I agree with this to some extent. As we navigate our paths, some of us chase dreams beyond our years, while others face life’s demands early on. Along the way, we inevitably encounter challenges — heartbreak, job loss, accidents, financial struggles. These hardships can be especially tough if we lack a solid support system, with family being the greatest of all.</p><p>Family can mean different things. For some, it’s blood relatives; for others, it’s loyal and reliable friends who truly care. Whatever family means to you, remember you can turn to them when times are tough to refresh, recharge, and rethink. If you don’t have a family, I hope with all my heart that you find warmth in people who are loyal, reliable, and worthy of your love, just as you are of theirs.</p><p>As Donna Hedges beautifully put it: “<em>Having somewhere to go is home. Having someone to love is family. And having both is a blessing.</em>”</p><p>Having a place to call home and people to love? ❤️ That’s the real treasure. 🏠 So, embrace love️️, life, and all the crazy adventures along the way. Cheers! 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7d0a53e11be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Removing a Sensitive File from Git History]]></title>
            <link>https://medium.com/@adedamola-adedapo/removing-a-sensitive-file-from-git-history-bb7ddd452098?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb7ddd452098</guid>
            <category><![CDATA[env]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[secrets]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Thu, 04 Jul 2024 03:05:27 GMT</pubDate>
            <atom:updated>2024-07-04T03:05:27.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KxoeN7460KaYPez0i41SZg.jpeg" /></figure><h3>Step 1: Backup Your Repository</h3><p>Before making any changes, back up your repository. This ensures you can revert the changes if needed.</p><h3>Step 2: Remove the File from History</h3><p>To remove a file (e.g., .env) containing sensitive data from your entire Git history, run this command:</p><pre>git filter-branch --index-filter &#39;git rm --cached --ignore-unmatch .env&#39; -- --all</pre><p>Replace .env with the name of the file you want to remove. This command will go through every commit in your repository&#39;s history and remove the specified file.</p><h3>Step 3: Force Push the Changes</h3><p>After rewriting your repository’s history, force push the changes to your remote repository to overwrite the old history:</p><pre>git push -f origin &lt;branch&gt;</pre><p>Replace &lt;branch&gt; with the name of the branch you are working on.</p><h3>Step 4: Notify Collaborators</h3><p>Let your collaborators know about the changes. They will need to reset their local repositories to synchronize with the updated history.</p><p>Thanks for following along, and happy coding! 🚀 If you run into any hiccups, don’t panic. You’ve got this! 🙌</p><p><strong>I hope this helps! 🙏</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb7ddd452098" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#2: Ink and Insight: Pot of Soot or Diamond?]]></title>
            <link>https://medium.com/@adedamola-adedapo/2-ink-and-insight-pot-of-soot-or-diamond-37813f67f983?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/37813f67f983</guid>
            <category><![CDATA[christmas]]></category>
            <category><![CDATA[carbon]]></category>
            <category><![CDATA[christ]]></category>
            <category><![CDATA[jesus]]></category>
            <category><![CDATA[jesus-christ]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Mon, 25 Dec 2023 20:23:38 GMT</pubDate>
            <atom:updated>2023-12-25T20:23:38.909Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*4ofaCCpVW2sIlbwK.png" /><figcaption><a href="https://www.cd-bioparticles.com/support/synthesis-of-carbon-allotropes.html">Synthesis of Carbon Allotropes — CD Bioparticles</a></figcaption></figure><p>I recently moved into a house with a dedicated kitchen, marking 22 months since I last had a semblance of what I now have. This also implies that it has been that long since I prepared a proper meal. A week after settling into the new house, I took on the somewhat challenging task of refilling the gas cylinder and went to the market to gather all the necessary ingredients to prepare stew and fried chicken.</p><p>Every delightful stew deserves to be paired with a bowl of rice, and that was precisely my intention as I began boiling two cups of rice. Upon checking the rice after some time, I discovered it had all burned. I couldn’t help but smirk at the thought in my head, which went something like this:</p><p><strong><em>You could have turned this rice carbon into diamond if only you had enough heat and time, science would take care of the rest…</em></strong></p><p>Carbon can transform into a diamond under specific conditions and factors. The question arose: <strong>c<em>ould this pot of burnt rice have been a diamond?</em></strong><em> </em>I found myself simply wondering.</p><p>The idea that diamonds come from carbon seems preposterous, just as the notion that the savior of the world comes from a manger is humbling. Merry Christmas!</p><p>In this moment, I couldn’t help but wonder: Was my pot of soot already a diamond, concealed beneath layers of carbon, much like Jesus possibly being the saviour even while being born in a stable? And once more, I wish you a Merry Christmas!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37813f67f983" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#1: Ink and Insight: A Vanity Card Chronicle]]></title>
            <link>https://medium.com/@adedamola-adedapo/1-ink-and-insight-a-vanity-card-chronicle-9479d316e5c9?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/9479d316e5c9</guid>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[odyssey]]></category>
            <category><![CDATA[branding]]></category>
            <category><![CDATA[chuck]]></category>
            <category><![CDATA[introduction]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Sun, 24 Dec 2023 02:40:37 GMT</pubDate>
            <atom:updated>2023-12-24T02:40:37.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hlrs5w7dPuebwjc8.jpg" /><figcaption><a href="https://lithub.com/in-search-of-a-black-odysseus-my-fathers-journey-home/">In Search of a Black Odysseus</a></figcaption></figure><p>In the wise words of Chuck Lorre,</p><p>“<em>I believe everyone thinks they can write, this is not true. It is true, however, that everyone can direct…”</em></p><p>Inspired by this sentiment, I found myself scrolling through X’s posts, stumbling upon a thought-provoking notion, akin to</p><p><em>“Build your personal brand using storytelling…”</em></p><p>Admittedly, the prospect was daunting, especially for someone like me, lacking formal education on the subject. However, disregarding the fear of the unknown, I took the plunge. Whether my exploration is shallow or deep matters less than the journey itself, a deliberate step to avoid the pitfalls of overthinking.</p><p>To illustrate this concept visually, the phrase “<em>In search of a black Odysseus</em>” underscores my central theme. The act of <em>searching</em> signifies the adventurous spirit of this undertaking, and the descriptor “…<em>black Odysseus</em>” alludes to the distinctive and unpredicted quality of the results I anticipate.</p><p>This collection is my dedication to the art of storytelling through vanity cards. Thank you for initiating this adventure with me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9479d316e5c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Terminal Commands for Developing in Unix-Like Environme: A Guide to 50 Key Commands]]></title>
            <link>https://medium.com/@adedamola-adedapo/essential-terminal-commands-for-developing-in-unix-like-environme-a-guide-to-50-key-commands-1b923595d4f9?source=rss-de5a020e7010------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b923595d4f9</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[unixlinux]]></category>
            <category><![CDATA[terminal-commands]]></category>
            <category><![CDATA[unix]]></category>
            <category><![CDATA[unix-command]]></category>
            <dc:creator><![CDATA[Adedapo Adedamola]]></dc:creator>
            <pubDate>Sun, 25 Dec 2022 13:20:06 GMT</pubDate>
            <atom:updated>2022-12-25T13:20:06.242Z</atom:updated>
            <content:encoded><![CDATA[<h3>Essential Terminal Commands for Developing in Unix-Like Environments: A Guide to 50 Key Commands</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TbJPgcQeUUQW308cfFvQNw.png" /><figcaption>AI generated terminal screen.</figcaption></figure><p>Take your terminal skills to the next level with these 50 must-know commands for developers. Boost your productivity and impress your colleagues with your new-found expertise.</p><h4><strong>1. pwd</strong></h4><p>The “pwd” command stands for “print working directory” and is used to display the full path of the current working directory. Use this command to see the full path of the current working directory (e.g. “/home/user/documents”). This is useful if you want to know your exact location within the file system.</p><pre>$ pwd<br>/Users/apples/Documents</pre><h4>2. “ls”</h4><p>The ‘ls’ command stands for “list” and is use to list the flies and directories in a directory. This is useful if you want to see the contents of a directory or if you want to find a specific file. For example, if you have a folder that contains the following files; file1.txt, and file2.txt. Then, below is the output when ls is run after you have ‘cd’ (change directory) into the folder.</p><pre>$ ls<br>file1.txt, file2.txt</pre><p>To show hidden files,</p><pre>$ ls -a    </pre><p>To display a detail information about the contents about the directory,</p><pre>$ ls -l</pre><h4>3. “cd”</h4><p>The “cd” command stands for “change directory” and is used to navigate the file system. To use the “cd” command, you simply type “cd” followed the name of the directory if the directory is in your current directory or path to the directory. For example, assuming you are in a directory that contains a directory called “Documents”, if you want to change your directory to the “Documents” directory, you can use the following command.</p><pre>$ cd Documents</pre><p>If you are not in the directory that contains the “Documents” directory directly, in that case, you will change into the “Documents” directory by specifying the path to the Documents directory whether absolutely (i.e. from the root folder) or relatively (i.e. in respect to your current directory).</p><p>“cd” with absolute path:</p><pre>$ cd ~/Documents</pre><p>“cd” with relative path:</p><pre>$ cd /Users/apple/Document</pre><p>You can use the “cd ..” command to exit a your current directory into the directory that contains it.</p><h4>4. mkdir</h4><p>The “mkdir” command stands for “make directory” and is used to create a new directory. To use the “mkdir “, you can simply type “mkdir” followed by the name of the directory you want to create. For example:</p><pre>$ mkdir directory_to_be_created_name</pre><h4>5. touch</h4><p>The “touch” command is used to create a new, empty file. For example, if you want to create a new file called “notes.txt”, you can use the command “touch notes.txt”.</p><pre>$ touch notes.txt</pre><p>This will create a new, empty file call “notes.txt” in the current working directory. You can also specify a path to create the file in a different location. For example:</p><pre>$ touch /path/to/directory/notes.txt</pre><h4>6. cp</h4><p>The “cp” command stands for “copy” and is used to copy files or directories. To use the “cp” command, you can type “cp” followed by the source file or directory and the destination. For example:</p><pre>$ cp file.txt /path/to/directory</pre><p>This will copy the “file.txt” file to the specified directory.</p><p>You can also specify multiple files or directories as the source, separated by a space. For example:</p><pre>$ cp file1.txt file2.txt /path/to/directory</pre><p>This will copy both “file1.txt” and “file2.txt” to the specified directory.</p><p>You can use the “-r” option to copy directories recursively, including all of their contents. For example;</p><pre>$ cp -r directory1 directory2</pre><p>This will copy the “directory1” directory and all of its contents to the “directory2” directory.</p><h4>7. mv</h4><p>The “mv” command stands for “move” and is used to move or rename files and directories. To use the “mv” command, you can type “mv” followed by the source file or directory and the destination. For example:</p><pre>$ mv file.txt /path/to/directory</pre><p>This will move the “file.txt” file to the specified directory.</p><p>You can also specify a new name for the file or directory as the destination. For example:</p><pre>$ mv file.txt new_file.txt</pre><p>This will rename the “file.txt” file to “new_file.txt”.</p><p>You can use the “mv” command to move multiple files or directories at the same time by specifying them as the source, separated by a space. For example:</p><pre>$ mv file1.txt file2.txt /path/to/directory</pre><p>This will move both “file1.txt” and “file2.txt” to the specified directory.</p><h4>8. rm</h4><p>The “rm” command stands for “remove” and is used to delete files and directories. To use the “rm” command, you can type “rm” followed by the name of the file or directory you want to delete. For example:</p><pre>$ rm file.txt</pre><p>This will delete the “file.txt” file from the current working directory.</p><p>You can also specify a path to the file or directory you want to delete. For example:</p><pre>$ rm /path/to/directory/file.txt</pre><p>This will delete the “file.txt” file from the specified directory.</p><p>You can use the “-r” option to delete directories recursively, including all of their contents. For example:</p><pre>$ rm -r directory</pre><p>This will delete the “directory” directory and all of its contents.</p><p>It is important to use the “rm” command with caution, as it is a permanent action and the deleted files and directories cannot be recovered.</p><h4>9. cat</h4><p>The “cat” command stands for “concatenate” and is used to display the contents of a file. To use the “cat” command, you can type “cat” followed by the name of the file you want to view. For example:</p><pre>$ cat file.txt</pre><p>This will display the contents of the “file.txt” file in the terminal.</p><p>You can also specify multiple files as arguments to the “cat” command to display the contents of multiple files at the same time. For example:</p><pre>$ cat file1.txt file2.txt</pre><p>This will display the contents of both “file1.txt” and “file2.txt” in the terminal.</p><p>You can use the “-n” option to display line numbers for the contents of the file. For example:</p><pre>$ cat -n file.txt</pre><p>This will display the contents of the “file.txt” file in the terminal with line numbers.</p><h4>10 . less</h4><p>The “less” command is a pager program that allows you to view the contents of a file one page at a time. To use the “less” command, you can type “less” followed by the name of the file you want to view. For example:</p><pre>$ less file.txt</pre><p>This will open the “file.txt” file in the “less” program and display the contents one page at a time. You can use the up and down arrow keys to scroll through the file, or the space bar to move down one page at a time.</p><p>You can also use the “/” key to search for a specific pattern in the file. For example:</p><pre>$ /pattern</pre><p>This will search for the “pattern” in the file and move the cursor to the first occurrence of the pattern.</p><p>You can use the “q” key to quit the “less” program and return to the terminal.</p><h4>11. grep</h4><p>The “grep” command stands for “global regular expression print” and is used to search for a pattern in a file or across multiple files. To use the “grep” command, you can type “grep” followed by the pattern you want to search for and the name of the file or files you want to search. For example:</p><pre>$ grep pattern file.txt</pre><p>This will search the “file.txt” file for the “pattern” and display any lines that contain the pattern.</p><p>You can specify multiple files as arguments to the “grep” command to search multiple files at the same time. For example:</p><pre>$ grep pattern file1.txt file2.txt</pre><p>This will search both “file1.txt” and “file2.txt” for the “pattern” and display any lines that contain the pattern.</p><p>You can use the “-r” option to search recursively through a directory and its subdirectories. For example:</p><pre>$ grep -r pattern directory</pre><p>This will search the “directory” and all of its subdirectories for the “pattern” and display any lines that contain the pattern.</p><h4>12. find</h4><p>The “find” command is used to search for files and directories by name or other criteria. To use the “find” command, you can type “find” followed by the path to the directory you want to search and the search criteria. For example:</p><pre>$ find /path/to/directory -name &quot;file.txt&quot;</pre><p>This will search the specified directory for a file named “file.txt” and display the path to any files that match the search criteria.</p><p>You can use the “-type” option to search for a specific type of file or directory. For example:</p><pre>$ find /path/to/directory -type f</pre><p>This will search the specified directory for files and display the path to any files that match the search criteria.</p><p>You can use the “-size” option to search for files of a specific size. For example:</p><pre>$ find /path/to/directory -size +100M</pre><p>This will search the specified directory for files larger than 100 megabytes and display the path to any files that match the search criteria.</p><p>There are many other options and criteria that you can use with the “find” command, so it is a very powerful tool for searching the file system.</p><h4>13. wc</h4><p>The “wc” command stands for “word count” and is used to count the number of lines, words, and characters in a file. To use the “wc” command, you can type “wc” followed by the name of the file you want to count. For example:</p><pre>$ wc file.txt</pre><p>This will display the number of lines, words, and characters in the “file.txt” file.</p><p>You can use the “-l” option to count only the number of lines in the file. For example:</p><pre>$ wc -l file.txt</pre><p>This will display only the number of lines in the “file.txt” file.</p><p>You can use the “-w” option to count only the number of words in the file. For example:</p><pre>$ wc -w file.txt</pre><p>This will display only the number of words in the “file.txt” file.</p><p>You can use the “-c” option to count only the number of characters in the file. For example:</p><pre>$ wc -c file.txt</pre><p>This will display only the number of characters in the “file.txt” file.</p><h4>14. sort</h4><p>The “sort” command is used to sort the lines of a file alphabetically or numerically. To use the “sort” command, you can type “sort” followed by the name of the file you want to sort. For example:</p><pre>$ sort file.txt</pre><p>This will sort the lines of the “file.txt” file alphabetically and display the sorted output in the terminal.</p><p>You can use the “-n” option to sort the lines numerically. For example:</p><pre>$ sort -n file.txt</pre><p>This will sort the lines of the “file.txt” file numerically and display the sorted output in the terminal.</p><p>You can use the “-r” option to reverse the sort order. For example:</p><pre>$ sort -r file.txt</pre><p>This will sort the lines of the “file.txt” file in reverse order and display the sorted output in the terminal.</p><p>You can use the “-o” option to save the sorted output to a new file. For example:</p><pre>$ sort file.txt -o sorted_file.txt</pre><p>This will sort the lines of the “file.txt” file and save the sorted output to a new file called “sorted_file.txt”.</p><h4>15. uniq</h4><p>The “uniq” command is used to remove duplicate lines from a file. To use the “uniq” command, you can type “uniq” followed by the name of the file you want to process. For example:</p><pre>$ uniq file.txt</pre><p>This will remove any duplicate lines from the “file.txt” file and display the output in the terminal.</p><p>By default, the “uniq” command considers lines to be duplicates if they are identical. You can use the “-c” option to include a count of the number of times each line appears in the file. For example:</p><pre>$ uniq -c file.txt</pre><p>This will display the number of times each line appears in the “file.txt” file, as well as the line itself.</p><p>You can use the “-d” option to only display the duplicate lines, rather than the unique lines. For example:</p><pre>$ uniq -d file.txt</pre><p>This will only display the duplicate lines in the “file.txt” file.</p><p>You can use the “-i” option to ignore differences in case when determining if lines are duplicates. For example:</p><pre>$ uniq -i file.txt</pre><p>This will treat lines that are identical except for differences in case as duplicates and remove them.</p><h4><strong>16. head</strong></h4><p>The “head” command is used to view the first few lines of a file. To use the “head” command, you can type “head” followed by the name of the file you want to view. By default, the “head” command will display the first 10 lines of the file. For example:</p><pre>$ head file.txt</pre><p>This will display the first 10 lines of the “file.txt” file in the terminal.</p><p>You can use the “-n” option to specify the number of lines you want to display. For example:</p><pre>$ head -n 5 file.txt</pre><p>This will display the first 5 lines of the “file.txt” file in the terminal.</p><p>You can use the “-q” option to suppress the printing of the file name headers that are normally displayed when viewing multiple files. For example:</p><pre>$ head -q file1.txt file2.txt</pre><p>This will display the first 10 lines of both “file1.txt” and “file2.txt” in the terminal, but will not print the file name headers.</p><h4>17. tail</h4><p>The “tail” command is used to view the last few lines of a file. To use the “tail” command, you can type “tail” followed by the name of the file you want to view. By default, the “tail” command will display the last 10 lines of the file. For example:</p><pre>$ tail file.txt</pre><p>This will display the last 10 lines of the “file.txt” file in the terminal.</p><p>You can use the “-n” option to specify the number of lines you want to display. For example:</p><pre>$ tail -n 5 file.txt</pre><p>This will display the last 5 lines of the “file.txt” file in the terminal.</p><p>You can use the “-f” option to follow the file as it grows and display new lines as they are added. This is useful for monitoring log files, for example. For example:</p><pre>$ tail -f file.txt</pre><p>This will display the last 10 lines of the “file.txt” file in the terminal, and then continue to display any new lines as they are added to the file.</p><p>You can use the “-q” option to suppress the printing of the file name headers that are normally displayed when viewing multiple files. For example:</p><pre>$ tail -q file1.txt file2.txt</pre><p>This will display the last 10 lines of both “file1.txt” and “file2.txt” in the terminal, but will not print the file name headers.</p><h4>18. man</h4><p>The “man” command is used to view the manual pages for a command. Manual pages, or “man pages,” contain detailed information about a command, including a description of the command, its options and arguments, and examples of how to use it. To use the “man” command, you can type “man” followed by the name of the command you want to view. For example:</p><pre>$ man ls</pre><p>This will display the manual page for the “ls” command in the terminal.</p><p>You can use the up and down arrow keys to scroll through the manual page, or the “q” key to quit and return to the terminal.</p><p>You can also use the “man” command to view manual pages for system calls, library functions, and other types of documentation. For example:</p><pre>$ man 2 open</pre><p>This will display the manual page for the “open” system call, which is in section 2 of the manual.</p><p>The “man” command is a very useful tool for learning how to use commands and understanding their options and arguments.</p><p><strong>19. echo</strong></p><p>The “echo” command is used to display a message or the value of a variable in the terminal. To use the “echo” command, you can type “echo” followed by the message or variable you want to display. For example:</p><pre>$ echo &quot;Hello, World!&quot;</pre><p>This will display the message “Hello, World!” in the terminal.</p><p>You can use the “echo” command to display the value of a variable by preceding the variable name with a dollar sign “$”. For example:</p><pre>$ echo $PATH</pre><p>This will display the value of the “PATH” variable, which is a list of directories that the shell searches for commands.</p><p>You can use the “echo” command to redirect the output to a file using the “&gt;” operator. For example:</p><pre>$ echo &quot;Hello, World!&quot; &gt; file.txt</pre><p>This will write the message “Hello, World!” to the “file.txt” file, overwriting any existing content in the file.</p><p>You can also use the “echo” command to append the output to a file using the “&gt;&gt;” operator. For example:</p><pre>$ echo &quot;Hello, World!&quot; &gt;&gt; file.txt</pre><p>This will append the message “Hello, World!” to the end of the “file.txt” file.</p><h4>20. history</h4><p>The “history” command is used to view a list of the recently entered commands in the terminal. To use the “history” command, you can simply type “history” and press enter. For example:</p><pre>$ history</pre><p>This will display a list of the recently entered commands, along with their corresponding line numbers.</p><p>You can use the “-c” option to clear the history list. For example:</p><pre>$ history -c</pre><p>This will clear the history list, and the next time you use the “history” command, it will only show the commands entered since the list was cleared.</p><p>You can use the “-w” option to write the current history list to a file. For example:</p><pre>$ history -w history.txt</pre><p>This will write the current history list to the “history.txt” file.</p><p>You can use the “-r” option to read a history list from a file and append it to the current history list. For example:</p><pre>$ history -r history.txt</pre><p>This will read the history list from the “history.txt” file and append it to the current history list.</p><h4>21. alias</h4><p>The “alias” command is used to create a shortcut for a command or series of commands. To use the “alias” command, you can type “alias” followed by the shortcut name and the command or commands you want to create a shortcut for. For example:</p><pre>$ alias ll=&#39;ls -l&#39;</pre><p>This will create an alias called “ll” that runs the “ls -l” command when entered.</p><p>To use the alias, you can simply type the alias name followed by any arguments the command takes. For example:</p><pre>$ ll</pre><p>This will run the “ls -l” command and display the output in the terminal.</p><p>You can create multiple aliases by separating them with a semicolon. For example:</p><pre>$ alias ll=&#39;ls -l&#39;; alias l=&#39;ls -ltr&#39;</pre><p>This will create two aliases: “ll” for the “ls -l” command and “l” for the “ls -ltr” command.</p><p>The aliases you create are only available in the current terminal session. If you want to create permanent aliases that are available every time you use the terminal, you can add the alias definitions to your shell configuration file (such as “.bashrc” for the Bash shell).</p><h4><strong>22. bg</strong></h4><p>The “bg” command is used to run a command in the background in a Unix-like operating system. When you run a command in the background, it continues to execute while you are free to enter other commands in the terminal.</p><p>To use the “bg” command, you first need to start a command in the foreground by typing it and pressing enter. For example:</p><pre>$ sleep 100</pre><p>This will start the “sleep” command, which will cause the terminal to pause for 100 seconds.</p><p>To run the command in the background, you can press “Ctrl + Z” to suspend the command, and then type “bg” and press enter. For example:</p><pre>Ctrl + Z<br>$ bg</pre><p>This will run the “sleep” command in the background, allowing you to enter other commands in the terminal while it continues to execute.</p><p>You can use the “jobs” command to view a list of the commands that are currently running in the background. For example:</p><pre>$ jobs</pre><p>This will display a list of the commands running in the background, along with their job numbers.</p><p>You can use the “fg” command to bring a command running in the background to the foreground. For example:</p><pre>$ fg %1</pre><p>This will bring the command with job number 1 to the foreground and display its output in the terminal.</p><h4>23. fg</h4><p>The “fg” command is used to bring a command running in the background to the foreground in a Unix-like operating system. When you bring a command to the foreground, it continues to execute and its output is displayed in the terminal.</p><p>To use the “fg” command, you first need to start a command in the background by using the “bg” command. For example:</p><pre>$ sleep 100 &amp;</pre><p>This will start the “sleep” command in the background, which will cause the terminal to pause for 100 seconds.</p><p>To bring the command to the foreground, you can type “fg” followed by the job number or job name of the command. The job number can be obtained by using the “jobs” command, which displays a list of the commands running in the background. For example:</p><pre>$ jobs<br>$ fg %1</pre><p>This will bring the command with job number 1 to the foreground and display its output in the terminal.</p><p>You can also use the “fg” command to bring the most recently stopped or backgrounded job to the foreground. For example:</p><pre>$ fg</pre><p>This will bring the most recently stopped or backgrounded job to the foreground and display its output in the terminal.</p><h4>24. jobs</h4><p>The “jobs” command is used to view a list of the commands that are currently running in the background in a Unix-like operating system. When you run a command in the background, it continues to execute while you are free to enter other commands in the terminal.</p><p>To use the “jobs” command, you simply need to type “jobs” and press enter. For example:</p><pre>$ jobs</pre><p>This will display a list of the commands running in the background, along with their job numbers.</p><p>You can use the “fg” command to bring a command running in the background to the foreground. For example:</p><pre>$ fg %1</pre><p>This will bring the command with job number 1 to the foreground and display its output in the terminal.</p><p>You can use the “kill” command to stop a command running in the background. For example:</p><pre>$ kill %1</pre><p>This will stop the command with job number 1.</p><h4>25. kill</h4><p>The “kill” command is used to stop a process or a group of processes in a Unix-like operating system. To use the “kill” command, you can type “kill” followed by the process ID or process group ID of the process you want to stop. For example:</p><pre>$ kill 1234</pre><p>This will stop the process with the process ID 1234.</p><p>You can also use the “kill” command to stop a process by its name. For example:</p><pre>$ killall firefox</pre><p>This will stop all processes with the name “firefox”.</p><p>You can use the “ps” command to view a list of the processes running on the system and their process IDs. For example:</p><pre>$ ps aus</pre><p>This will display a list of the processes, along with their process IDs, user IDs, and other information.</p><p>You can use the “-9” option to send a “SIGKILL” signal to the process, which cannot be ignored or caught. For example:</p><pre>$ kill -9 1234</pre><p>This will stop the process with the process ID 1234, even if it is not responding to other signals.</p><p><strong>26. top</strong></p><p>The “top” command is a utility in Unix-like operating systems that displays information about the processes running on the system. When you run the “top” command, it displays a list of the processes, along with their process IDs, user IDs, CPU usage, and memory usage. The processes are sorted by CPU usage, with the most CPU-intensive processes at the top of the list.</p><p>To use the “top” command, you can simply type “top” and press enter. For example:</p><pre>$ top</pre><p>This will display the list of processes in the terminal.</p><p>You can press “q” to exit the “top” command.</p><p>You can use the “k” command to kill a process by its process ID. For example:</p><pre>$ k 1234</pre><p>This will stop the process with the process ID 1234.</p><p>You can use the “h” command to view a list of the available commands.</p><p>You can use the “r” command to renice a process, which changes the priority of the process. For example:</p><pre>$ r 1234 -5</pre><p>This will increase the priority of the process with the process ID 1234 by 5.</p><h4><strong>27. ps</strong></h4><p>The “ps” command is a utility in Unix-like operating systems that displays information about the processes running on the system. To use the “ps” command, you can simply type “ps” and press enter. For example:</p><pre>$ ps</pre><p>This will display a list of the processes running in the current terminal session, along with their process IDs.</p><p>You can use various options to customize the output of the “ps” command. For example, the “-aux” options will display all processes running on the system, along with their process IDs, user IDs, and other information.</p><pre>$ ps aux</pre><p>You can use the “-f” option to display the full command line for each process.</p><pre>$ ps -f</pre><p>You can use the “-u” option to display information about a specific user. For example:</p><pre>$ ps -u john</pre><p>This will display a list of the processes running under the user “john”.</p><p>You can use the “-p” option to display information about a specific process. For example:</p><pre>$ ps -p 1234</pre><p>This will display information about the process with the process ID 1234.</p><h4>28. chmod</h4><p>The “chmod” command is used to change the permissions of a file or directory in a Unix-like operating system. Permissions determine who can read, write, or execute a file or directory.</p><p>To use the “chmod” command, you can type “chmod” followed by the permissions you want to set and the name of the file or directory. The permissions are specified using a three-digit octal number. The first digit represents the permissions for the owner of the file, the second digit represents the permissions for the group the file belongs to, and the third digit represents the permissions for everyone else.</p><p>Here are some examples of how to use the “chmod” command:</p><p>To set read and write permissions for the owner, and read-only permissions for everyone else:</p><pre>$ chmod 644 file.txt</pre><p>To set read, write, and execute permissions for the owner, and read-only permissions for everyone else:</p><pre>$ chmod 744 file.txt</pre><p>To set read, write, and execute permissions for the owner, and read and execute permissions for everyone else:</p><pre>$ chmod 755 file.txt</pre><p>To set read, write, and execute permissions for the owner, and no permissions for everyone else:</p><pre>$ chmod 700 file.txt</pre><p>You can use the “-R” option to recursively change the permissions of a directory and all its contents. For example:</p><pre>$ chmod -R 755 directory</pre><p>This will set read, write, and execute permissions for the owner, and read and execute permissions for everyone else, for the “directory” and all its contents.</p><h4>29. chown</h4><p>The “chown” command is used to change the owner of a file or directory in a Unix-like operating system. The owner of a file or directory has special privileges, such as the ability to read, write, or execute the file, or change the permissions of the file or directory.</p><p>To use the “chown” command, you can type “chown” followed by the new owner and the name of the file or directory. For example:</p><pre>$ chown john file.txt</pre><p>This will change the owner of “file.txt” to “john”.</p><p>You can also specify the group that the file or directory belongs to. For example:</p><pre>$ chown john:users file.txt</pre><p>This will change the owner of “file.txt” to “john” and the group to “users”.</p><p>You can use the “-R” option to recursively change the owner of a directory and all its contents. For example:</p><pre>$ chown -R john:users directory</pre><p>This will change the owner of the “directory” and all its contents to “john” and the group to “users”.</p><p>You can use the “chgrp” command to change the group that a file or directory belongs to. For example:</p><pre>$ chgrp users file.txt</pre><p>This will change the group of “file.txt” to “users”.</p><h4>30. ln</h4><p>The “ln” command is used to create a link to a file or directory in a Unix-like operating system. A link is a special file that points to another file or directory, and can be used to access the target file or directory as if it were in the same location as the link. There are two types of links: hard links and symbolic links.</p><p>A hard link is a direct link to the target file or directory, and is created using the “-f” option of the “ln” command. For example:</p><pre>$ ln -f file.txt link</pre><p>This will create a hard link named “link” to the file “file.txt”.</p><p>A symbolic link is a indirect link to the target file or directory, and is created using the “-s” option of the “ln” command. For example:</p><pre>$ ln -s file.txt link</pre><p>This will create a symbolic link named “link” to the file “file.txt”.</p><p>You can use the “-s” option to create a symbolic link to a directory. For example:</p><pre>$ ln -s directory link</pre><p>This will create a symbolic link named “link” to the directory “directory”.</p><p>You can use the “-f” option to force the creation of a link, even if a file or directory with the same name already exists.</p><p>You can use the “-n” option to prevent the “ln” command from following symbolic links.</p><h4>31. tar</h4><p>The “tar” command is a utility in Unix-like operating systems that allows users to create and manipulate tape archives (TAR). TAR is a popular file format for archiving data, and the “tar” command is a convenient way to create and manipulate TAR archives.</p><p>To use the “tar” command, you can type “tar” followed by the command and the options you want to use. The most common commands are:</p><ul><li>“cf” — create a TAR archive</li><li>“xf” — extract the files from a TAR archive</li><li>“tf” — list the contents of a TAR archive</li></ul><p>To create a TAR archive, you can use the “cf” command followed by the name of the TAR archive and the list of files and directories to include. For example:</p><pre>$ tar cf archive.tar file1 file2 directory1</pre><p>This will create a TAR archive called “archive.tar” containing the files “file1” and “file2” and the directory “directory1”.</p><p>To extract the files from a TAR archive, you can use the “xf” command followed by the name of the TAR archive. For example:</p><pre>$ tar xf archive.tar</pre><p>This will extract the contents of the file “archive.tar” into the current directory.</p><p>To list the contents of a TAR archive, you can use the “tf” command followed by the name of the TAR archive. For example:</p><pre>$ tar tf archive.tar</pre><p>This will display a list of the files and directories contained in the TAR archive.</p><p>You can use various options to customize the behavior of the “tar” command. For example:</p><ul><li>“-v” — verbose output (display the names of the files as they are processed)</li><li>“-z” — compress the TAR archive using gzip</li><li>“-j” — compress the TAR archive using bzip2</li><li>“-c” — create a TAR archive</li><li>“-x” — extract the files from a TAR archive</li><li>“-t” — list the contents of a TAR archive</li></ul><p>Here is an example of a more advanced tar command:</p><pre>$ tar -czvf archive.tar.gz directory1</pre><p>This will create a gzip-compressed TAR archive called “archive.tar.gz” containing the contents of the directory “directory1” verbosely.</p><h4>32. gzip</h4><p>The “gzip” command is a utility in Unix-like operating systems that allows users to compress and decompress files. Gzip is a popular file compression algorithm that is widely used on the internet and in Unix-like operating systems.</p><p>To use the “gzip” command, you can type “gzip” followed by the name of the file you want to compress or decompress. For example:</p><pre>$ gzip file1</pre><p>This will compress the file “file1” and create a new file called “file1.gz”. The original file will be deleted.</p><p>To decompress a gzip-compressed file, you can use the “-d” option. For example:</p><pre>$ gzip -d file1.gz</pre><p>This will decompress the file “file1.gz” and create a new file called “file1”. The original file will be deleted.</p><p>You can use various options to customize the behavior of the “gzip” command. For example:</p><ul><li>“-v” — verbose output (display the names of the files as they are processed)</li><li>“-k” — keep the original file (do not delete it)</li><li>“-r” — process files recursively (compress or decompress all files in a directory and its subdirectories)</li></ul><p>Here is an example of a more advanced gzip command:</p><pre>$ gzip -vrk directory1</pre><p>This will compress all the files in the directory “directory1” and its subdirectories recursively, displaying the names of the files as they are processed, and keeping the original files.</p><h4>33. bzip2</h4><p>The “bzip2” command is a utility in Unix-like operating systems that allows users to compress and decompress files using the bzip2 compression algorithm. Bzip2 is a popular file compression algorithm that is widely used on the internet and in Unix-like operating systems.</p><p>To use the “bzip2” command, you can type “bzip2” followed by the name of the file you want to compress or decompress. For example:</p><pre>$ bzip2 file1</pre><p>This will compress the file “file1” and create a new file called “file1.bz2”. The original file will be deleted.</p><p>To decompress a bzip2-compressed file, you can use the “-d” option. For example:</p><pre>$ bzip2 -d file1.bz2</pre><p>This will decompress the file “file1.bz2” and create a new file called “file1”. The original file will be deleted.</p><p>You can use various options to customize the behavior of the “bzip2” command. For example:</p><ul><li>“-v” — verbose output (display the names of the files as they are processed)</li><li>“-k” — keep the original file (do not delete it)</li><li>“-r” — process files recursively (compress or decompress all files in a directory and its subdirectories)</li></ul><p>Here is an example of a more advanced bzip2 command:</p><pre>$ bzip2 -vrk directory1</pre><p>This will compress all the files in the directory “directory1” and its subdirectories recursively, displaying the names of the files as they are processed, and keeping the original files.</p><h4>34. zip</h4><p>The “zip” command is a utility in Unix-like operating systems that allows users to create a ZIP archive from a set of files and directories. ZIP is a popular file format for compressing and archiving data, and the “zip” command is a convenient way to create a ZIP archive.</p><p>To use the “zip” command, you can type “zip” followed by the name of the ZIP archive and the list of files and directories to include. For example:</p><pre>$ zip archive.zip file1 file2 directory1</pre><p>This will create a ZIP archive called “archive.zip” containing the files “file1” and “file2” and the directory “directory1”.</p><p>You can use various options to customize the creation of the ZIP archive. For example:</p><ul><li>“-r” — include files and directories recursively</li><li>“-9” — use maximum compression</li><li>“-j” — store the files without creating directories</li><li>“-m” — delete the original files after adding them to the archive</li></ul><p>Here is an example of a more advanced zip command:</p><pre>$ zip -r9 archive.zip directory1</pre><p>This will create a ZIP archive called “archive.zip” containing the contents of the directory “directory1” recursively, using maximum compression.</p><h4>35. unzip</h4><p>The “unzip” command is a utility in Unix-like operating systems that allows users to extract the contents of a ZIP archive. ZIP is a popular file format for compressing and archiving data, and the “unzip” command is a convenient way to extract the contents of a ZIP archive.</p><p>To use the “unzip” command, you can type “unzip” followed by the name of the ZIP archive. For example:</p><pre>$ unzip archive.zip</pre><p>This will extract the contents of the file “archive.zip” into the current directory.</p><p>You can use various options to customize the extraction. For example:</p><ul><li>“-d” — specify the directory to extract the files to</li><li>“-o” — overwrite existing files without prompting</li><li>“-j” — extract the files without creating directories</li><li>“-n” — do not overwrite newer files</li></ul><p>Here is an example of a more advanced unzip command:</p><pre>$ unzip -d /path/to/extract -o archive.zip</pre><p>This will extract the contents of the file “archive.zip” into the directory “/path/to/extract”, overwriting existing files without prompting.</p><h4>36. ssh</h4><p>The “ssh” command is a utility in Unix-like operating systems that allows users to securely connect to a remote computer using the Secure Shell (SSH) protocol. SSH is a secure network protocol that is used to establish an encrypted connection between a client and a server.</p><p>To use the “ssh” command, you can type “ssh” followed by the username and the hostname or IP address of the remote computer. For example:</p><pre>$ ssh user@example.com</pre><p>This will connect to the host “example.com” as the user “user”. You will be prompted to enter your password.</p><p>You can use various options to customize the connection. For example:</p><ul><li>“-p” — specify the port number to use for the connection</li><li>“-i” — specify the path to the private key file to use for authentication</li><li>“-L” — forward a local port to a port on the remote host</li><li>“-R” — forward a port on the remote host to a local port</li></ul><p>Here is an example of a more advanced ssh command:</p><pre>$ ssh -p 2222 -i ~/.ssh/id_rsa user@example.com</pre><p>This will connect to the host “example.com” as the user “user” using port 2222 and the private key file “~/.ssh/id_rsa”.</p><p>Once connected to the remote host, you can run commands on the remote computer as if you were sitting in front of it. When you are finished, you can type “exit” to disconnect from the remote host.</p><h4>37. scp</h4><p>The “scp” command is a utility in Unix-like operating systems that allows users to securely transfer files between computers using the Secure Copy Protocol (SCP). SCP is a secure version of the “cp” command, which transfers files over the network using an encrypted SSH connection.</p><p>To use the “scp” command, you can type “scp” followed by the source file or directory and the destination file or directory. For example:</p><pre>$ scp /path/to/source user@example.com:/path/to/destination</pre><p>This will transfer the file or directory at “/path/to/source” to the user “user” on the host “example.com” in the directory “/path/to/destination”.</p><p>You can use various options to customize the file transfer. For example:</p><ul><li>“-P” — specify the port number to use for the SSH connection</li><li>“-r” — recursive (transfer directories and their contents)</li><li>“-C” — compress the data during transfer</li><li>“-p” — preserve file permissions, timestamps, and ownership</li></ul><p>Here is an example of a more advanced scp command:</p><pre>$ scp -PrC /path/to/source user@example.com:/path/to/destination</pre><p>This will transfer the file or directory at “/path/to/source” to the user “user” on the host “example.com” in the directory “/path/to/destination”, transferring directories and their contents recursively, compressing the data during transfer, and preserving file permissions, timestamps, and ownership.</p><h4>38. rsync</h4><p>The “rsync” command is a utility in Unix-like operating systems that allows users to synchronize files and directories between two locations. Rsync works by transferring only the differences between the files, which makes it efficient for transferring large files over a network.</p><p>To use the “rsync” command, you can type “rsync” followed by the source file or directory and the destination file or directory. For example:</p><pre>$ rsync /path/to/source /path/to/destination</pre><p>This will synchronize the file or directory at “/path/to/source” with the file or directory at “/path/to/destination”.</p><p>You can use various options to customize the synchronization. For example:</p><ul><li>“-a” — preserve file permissions, timestamps, and symbolic links</li><li>“-v” — verbose output (display the file names as they are transferred)</li><li>“-z” — compress the data during transfer</li><li>“-r” — recursive (synchronize directories and their contents)</li></ul><p>Here is an example of a more advanced rsync command:</p><pre>$ rsync -avzr /path/to/source /path/to/destination</pre><p>This will synchronize the file or directory at “/path/to/source” with the file or directory at “/path/to/destination”, preserving file permissions, timestamps, and symbolic links, displaying verbose output, compressing the data during transfer, and synchronizing directories and their contents recursively.</p><h4>39. curl</h4><p>The “curl” command is a utility in Unix-like operating systems that allows users to transfer data to or from a server using various protocols, including HTTP, HTTPS, FTP, and more. Curl is a non-interactive command-line tool, which means it can be run from the terminal without the need for user input.</p><p>To use the “curl” command, you can type “curl” followed by the URL of the server to transfer data to or from. For example:</p><pre>$ curl https://example.com/</pre><p>This will send an HTTP GET request to the server at “<a href="https://example.com/">https://example.com/</a>&quot; and display the response.</p><p>You can use various options to customize the data transfer. For example:</p><ul><li>“-o” — specify the name of the file to save the response to</li><li>“-O” — save the response to a file with the same name as the file on the server</li><li>“-X” — specify the HTTP method to use (e.g. GET, POST, etc.)</li><li>“-d” — specify data to send with the request</li></ul><p>Here is an example of a more advanced curl command:</p><pre>$ curl -o download.zip -X POST -d &#39;{&quot;key&quot;:&quot;value&quot;}&#39; https://example.com/download</pre><p>This will send an HTTP POST request with data to the server at “<a href="https://example.com/download">https://example.com/download</a>&quot;, and save the response to a file called “download.zip”.</p><h4>40. wget</h4><p>The “wget” command is a utility in Unix-like operating systems that allows users to download files from the Internet. Wget is a non-interactive command-line tool, which means it can be run from the terminal without the need for user input.</p><p>To use the “wget” command, you can type “wget” followed by the URL of the file to download. For example:</p><pre>$ wget https://example.com/file.zip</pre><p>This will download the file “file.zip” from the URL “<a href="https://example.com/file.zip">https://example.com/file.zip</a>&quot;.</p><p>You can use various options to customize the download. For example:</p><ul><li>“-O” — specify the name of the file to save the download as</li><li>“-P” — specify the directory to save the download in</li><li>“-c” — continue an interrupted download</li><li>“-t” — specify the number of retries</li></ul><p>Here is an example of a more advanced wget command:</p><pre>$ wget -O download.zip -P /home/user/downloads -c -t 5 https://example.com/file.zip</pre><p>This will download the file “file.zip” from the URL “<a href="https://example.com/file.zip">https://example.com/file.zip</a>&quot;, save it as “download.zip” in the directory “/home/user/downloads”, continue an interrupted download if possible, and retry the download up to 5 times.</p><h4>41. ping</h4><p>The “ping” command is a utility in Unix-like operating systems that allows users to test the reachability of a host on the Internet. Ping works by sending Internet Control Message Protocol (ICMP) “echo request” packets to the host and waiting for an “echo reply” in return.</p><p>To use the “ping” command, you can type “ping” followed by the domain name or IP address of the host to ping. For example:</p><pre>$ ping example.com</pre><p>This will ping the host “example.com”.</p><p>You can use various options to customize the ping. For example:</p><ul><li>“-c” — specify the number of packets to send</li><li>“-i” — specify the interval between packets (in seconds)</li><li>“-s” — specify the size of the packets (in bytes)</li><li>“-t” — ping the host until stopped</li></ul><p>Here is an example of a more advanced ping:</p><pre>$ ping -c 5 -i 2 -s 128 example.com</pre><p>This will ping the host “example.com” with 5 packets of size 128 bytes, with an interval of 2 seconds between each packet.</p><h4>42. traceroute</h4><p>The “traceroute” command is a utility in Unix-like operating systems that allows users to trace the route of packets from their computer to a destination on the Internet. Traceroute works by sending packets to the destination with increasing time-to-live (TTL) values, and displaying the IP addresses of the intermediate routers that the packets pass through.</p><p>To use the “traceroute” command, you can type “traceroute” followed by the domain name or IP address of the destination. For example:</p><pre>$ traceroute example.com</pre><p>This will display the route of packets from your computer to the domain “example.com”.</p><p>You can use various options to customize the traceroute. For example:</p><ul><li>“-I” — use ICMP packets instead of UDP packets</li><li>“-T” — use TCP packets instead of UDP packets</li><li>“-p” — specify the port number to use</li><li>“-m” — specify the maximum number of hops to trace</li></ul><p>Here is an example of a more advanced traceroute:</p><pre>$ traceroute -I -m 15 example.com</pre><p>This will use ICMP packets and trace the route of packets to the domain “example.com” for up to 15 hops.</p><h4>43. nslookup</h4><p>The “nslookup” command is a utility in Unix-like operating systems that allows users to look up information about domain names and IP addresses using the Domain Name System (DNS). DNS is a distributed database that maps domain names to IP addresses and other information about domain names.</p><p>To use the “nslookup” command, you can type “nslookup” followed by the domain name or IP address to look up. For example:</p><pre>$ nslookup example.com</pre><p>This will display the DNS information for the domain “example.com”.</p><p>You can use various options to customize the DNS lookup. For example:</p><ul><li>“-type” — specify the type of DNS record to look up (e.g. A, MX, etc.)</li><li>“-class” — specify the class of the DNS record (e.g. IN, CH, etc.)</li><li>“-query” — specify the type of query to perform (e.g. domain, reverse, etc.)</li><li>“-server” — specify the DNS server to use</li></ul><p>Here is an example of a more advanced DNS lookup:</p><pre>$ nslookup -type=MX example.com</pre><p>This will look up the MX (mail exchange) records for the domain “example.com”.</p><h4>44. dig</h4><p>The “dig” command is a utility in Unix-like operating systems that allows users to look up information about domain names and IP addresses using the Domain Name System (DNS). DNS is a distributed database that maps domain names to IP addresses and other information about domain names.</p><p>To use the “dig” command, you can type “dig” followed by the domain name or IP address to look up. For example:</p><pre>$ dig example.com</pre><p>This will display the DNS information for the domain “example.com”.</p><p>You can use various options to customize the DNS lookup. For example:</p><ul><li>“-t” — specify the type of DNS record to look up (e.g. A, MX, etc.)</li><li>“-x” — perform a reverse DNS lookup</li><li>“-c” — specify the class of the DNS record (e.g. IN, CH, etc.)</li><li>“-f” — specify a file with a list of domain names to look up</li></ul><p>Here is an example of a more advanced DNS lookup:</p><pre>$ dig -t MX example.com</pre><p>This will look up the MX (mail exchange) records for the domain “example.com”.</p><h4>45. whois</h4><p>The “whois” command is a utility in Unix-like operating systems that allows users to look up information about domain names and IP addresses. Whois is a service that maintains a database of information about domain names and IP addresses, including the name of the owner, the name servers, and the date of expiration.</p><p>To use the “whois” command, you can type “whois” followed by the domain name or IP address to look up. For example:</p><pre>$ whois example.com</pre><p>This will display the Whois information for the domain “example.com”.</p><p>You can use various options to customize the Whois lookup. For example:</p><ul><li>“-h” — specify a Whois server to use</li><li>“-T” — specify the type of object to look up (e.g. domain, IP address, etc.)</li><li>“-i” — specify the attribute to look up (e.g. name, email, etc.)</li></ul><p>Here is an example of a more advanced Whois lookup:</p><pre>$ whois -h whois.example.com -T domain -i name example.com</pre><p>This will look up the Whois information for the domain “example.com” using the Whois server “whois.example.com” and display the name of the domain owner.</p><h4>46. nmap</h4><p>The “nmap” command is a utility in Unix-like operating systems that allows users to scan networks and perform network mapping. Nmap is short for “Network Mapper” and is a powerful tool for network administrators to scan networks and identify live hosts, open ports, and services running on those hosts.</p><p>To use the “nmap” command, you can type “nmap” followed by the name or IP address of the host or network to scan. For example:</p><pre>$ nmap 192.168.1.0/24</pre><p>This will scan the network with the IP range of 192.168.1.0 to 192.168.1.255 for live hosts and open ports.</p><p>You can use various options to customize the scan. For example:</p><ul><li>“-sS” — perform a SYN scan</li><li>“-sU” — perform a UDP scan</li><li>“-p” — specify the ports to scan</li><li>“-o” — save the scan results to a file</li><li>“-v” — enable verbose mode</li></ul><p>Here is an example of a more advanced scan:</p><pre>$ nmap -sS -p 1-1024 -o scan.txt 192.168.1.0/24</pre><p>This will perform a SYN scan of ports 1 to 1024 on the network with the IP range of 192.168.1.0 to 192.168.1.255 and save the results to a file named “scan.txt”.</p><h4>47. telnet</h4><p>The “telnet” command is a utility in Unix-like operating systems that allows users to connect to a remote machine using the Telnet protocol. Telnet is a network protocol that allows a user to remotely log in to a server and interact with it as if they were sitting at the console of the machine.</p><p>To use the “telnet” command, you can type “telnet” followed by the name or IP address of the remote machine and the port number to connect to. For example:</p><pre>$ telnet remote-machine 80</pre><p>This will connect to the remote machine on port 80, which is the default port for the HTTP protocol.</p><p>Once you are connected, you will be prompted to enter your username and password.</p><p>You can use various Telnet commands to manage the Telnet session.</p><p>Here are some common Telnet commands:</p><ul><li>“open” — connect to a remote host</li><li>“close” — close the Telnet connection</li><li>“quit” — exit the Telnet command</li></ul><p>You can use the “-l” option to specify a username to use when logging in to the remote host.</p><p>You can use the “-8” option to force the use of an 8-bit data path, which is necessary for certain types of data.</p><p>You can use the “-x” option to disable the use of encryption.</p><h4>48. sftp</h4><p>The “sftp” command is a utility in Unix-like operating systems that allows users to transfer files to and from a remote machine securely using the Secure File Transfer Protocol (SFTP). SFTP is a secure version of FTP that uses Secure Shell (SSH) to encrypt the data being transferred.</p><p>To use the “sftp” command, you can type “sftp” followed by the name of the remote machine. For example:</p><pre>$ sftp remote-machine</pre><p>This will open an SFTP session with the remote machine, and you will be prompted to enter your username and password.</p><p>Once you are logged in, you can use various SFTP commands to transfer files and manage the SFTP session.</p><p>Here are some common SFTP commands:</p><ul><li>“get” — download a file from the remote machine</li><li>“put” — upload a file to the remote machine</li><li>“ls” — list the files in the current directory on the remote machine</li><li>“cd” — change the current directory on the remote machine</li><li>“pwd” — display the current directory on the remote machine</li><li>“quit” — close the SFTP session and exit the “sftp” command</li></ul><p>You can use the “-v” option to enable verbose mode, which displays detailed information about the SFTP session.</p><p>You can use the “-P” option to specify the port number to use for the SFTP connection.</p><h4>49. ftp</h4><p>The “ftp” command is a utility in Unix-like operating systems that allows users to transfer files to and from a remote machine using the File Transfer Protocol (FTP). FTP is a widely used protocol for transferring files over a network.</p><p>To use the “ftp” command, you can type “ftp” followed by the name of the remote machine. For example:</p><pre>$ ftp remote-machine</pre><p>This will open an FTP session with the remote machine, and you will be prompted to enter your username and password.</p><p>Once you are logged in, you can use various FTP commands to transfer files and manage the FTP session.</p><p>Here are some common FTP commands:</p><ul><li>“get” — download a file from the remote machine</li><li>“put” — upload a file to the remote machine</li><li>“ls” — list the files in the current directory on the remote machine</li><li>“cd” — change the current directory on the remote machine</li><li>“pwd” — display the current directory on the remote machine</li><li>“quit” — close the FTP session and exit the “ftp” command</li></ul><p>You can use the “-v” option to enable verbose mode, which displays detailed information about the FTP session.</p><p>You can use the “-d” option to enable debugging mode, which displays even more detailed information about the FTP session.</p><h4>50. rlogin</h4><p>The “rlogin” command is used to log in to a remote machine using the Remote Login (rlogin) protocol in a Unix-like operating system. The rlogin protocol allows a user to log in to a remote machine and interact with it as if they were sitting at the console of the machine.</p><p>To use the “rlogin” command, you can type “rlogin” followed by the name of the remote machine. For example:</p><pre>$ rlogin remote-machine</pre><p>This will log you in to the remote machine and open a terminal session on the machine.</p><p>You can specify a username on the remote machine by using the “-l” option. For example:</p><pre>$ rlogin -l john remote-machine</pre><p>This will log you in to the remote machine as the user “john”.</p><p>You can use the “-8” option to force the use of an 8-bit data path, which is necessary for certain types of data.</p><p>You can use the “-x” option to disable the use of encryption.</p><p>You can use the “-K” option to disable the use of Kerberos authentication.</p><p>In conclusion, the terminal is a valuable tool for developers and system administrators. This blog introduced 50 essential commands for navigating the file system, manipulating files and directories, and performing various tasks from the command line. By learning these commands, users can become more efficient and productive in their use of the terminal. Thank you for reading and we hope you found this blog helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b923595d4f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>