<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nnamdi Kingsley Egwudobi</title>
    <description>The latest articles on DEV Community by Nnamdi Kingsley Egwudobi (@nnamdi_egwudobi).</description>
    <link>https://dev.to/nnamdi_egwudobi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4259238%2F78044de6-73da-42b9-a139-8adc5f701b90.png</url>
      <title>DEV Community: Nnamdi Kingsley Egwudobi</title>
      <link>https://dev.to/nnamdi_egwudobi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nnamdi_egwudobi"/>
    <language>en</language>
    <item>
      <title>Mastering Linux: A Beginner's Guide to Essential Commands</title>
      <dc:creator>Nnamdi Kingsley Egwudobi</dc:creator>
      <pubDate>Sun, 22 Nov 2026 20:12:40 +0000</pubDate>
      <link>https://dev.to/nnamdi_egwudobi/mastering-linux-a-beginners-guide-to-essential-commands-43ag</link>
      <guid>https://dev.to/nnamdi_egwudobi/mastering-linux-a-beginners-guide-to-essential-commands-43ag</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Linux is a free, open-source operating system that quietly runs most of the internet. The servers behind websites, Android phones, cloud platforms like AWS and Azure, and nearly every container you will ever meet in DevOps are all powered by Linux. If you want a career in cloud engineering or DevOps, Linux isn't optional. It is the ground you build on.&lt;/p&gt;

&lt;p&gt;I'll be honest about where I started. I'm used to writing, designing and clicking my way through friendly screens, so a black window with a blinking cursor felt intimidating. I assumed one wrong command would break the whole computer, and that only "real programmers" could use it. I was wrong on both counts.&lt;/p&gt;

&lt;p&gt;After finishing the Basic Linux Commands module, the terminal feels less like a locked door and more like a very fast, very literal assistant. In this post I'll share the commands I learned, show them in action with annotated screenshots, explain how they apply to real DevOps work, and admit where I struggled.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note on the screenshots:&lt;/strong&gt; they're captured from real command output in a practice environment, then annotated with numbered callouts.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Key Commands Learned
&lt;/h2&gt;

&lt;p&gt;Everything in Linux lives inside one tree that starts at &lt;code&gt;/&lt;/code&gt; (root). Once I understood that, navigation made sense.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft9p0l3pabtzk4amhsxt7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft9p0l3pabtzk4amhsxt7.png" alt=" " width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Filesystem navigation
&lt;/h3&gt;

&lt;p&gt;Think of these as moving around a building: &lt;code&gt;pwd&lt;/code&gt; tells you which room you're in, &lt;code&gt;cd&lt;/code&gt; walks you to another, and &lt;code&gt;ls&lt;/code&gt; shows what's inside.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pwd&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shows where you are right now&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;ls&lt;/code&gt; / &lt;code&gt;ls -l&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Lists files (&lt;code&gt;-l&lt;/code&gt; adds permissions, owner, size)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cd&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Moves into another directory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mkdir&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Creates a directory (&lt;code&gt;-p&lt;/code&gt; makes parents too)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deletes files (&lt;code&gt;rm -r&lt;/code&gt; for folders, and there's no undo)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8hvsz8l7sr8pxp7p3ygn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8hvsz8l7sr8pxp7p3ygn.png" alt=" " width="800" height="253"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. File management
&lt;/h3&gt;

&lt;p&gt;These are the everyday tools for handling files. The one that impressed me most was &lt;code&gt;grep&lt;/code&gt;, which finds a needle in a haystack of text. Combining commands with &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; (run the next one only if the first succeeds) felt like writing my first tiny script.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;touch&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Creates an empty file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Copies a file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mv&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Moves or renames a file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cat&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Prints a file's contents&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;grep&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Searches for text inside files&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fimsckcgieuqx3umcuk0m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fimsckcgieuqx3umcuk0m.png" alt=" " width="800" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Users and permissions
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;sudo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Runs one command with admin rights&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;usermod&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Changes a user account (e.g. &lt;code&gt;sudo usermod -aG docker nnamdi&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;chmod&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Changes who can read, write or execute&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;chown&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Changes a file's owner&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;sudo&lt;/code&gt; is the key: use it sparingly, because it lets you change almost anything. Permissions confused me until I saw them as three groups of three letters:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcvs0ni2w22yyiqnwzdz0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcvs0ni2w22yyiqnwzdz0.png" alt=" " width="799" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Process management
&lt;/h3&gt;

&lt;p&gt;Every running program is a &lt;em&gt;process&lt;/em&gt; with an ID (PID). Knowing how to see and stop one is how you rescue a frozen server.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Snapshot of running processes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;top&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Live view of CPU, memory and processes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kill&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Stops a process by its PID&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fth1nn5dnc2x2y1xhk7dn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fth1nn5dnc2x2y1xhk7dn.png" alt=" " width="800" height="359"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Package management
&lt;/h3&gt;

&lt;p&gt;Instead of hunting for installers online, Linux uses a &lt;em&gt;package manager&lt;/em&gt; that downloads, installs and updates software for you in one command (usually with &lt;code&gt;sudo&lt;/code&gt;). Which one you use depends on your Linux family:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2t3pr3oilxc10ymok2r5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2t3pr3oilxc10ymok2r5.png" alt=" " width="799" height="385"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Real-World Application
&lt;/h2&gt;

&lt;p&gt;These aren't classroom exercises. They are the daily tools of the jobs I'm aiming for.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgy8zqkpbnpnk0i5rk5lo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgy8zqkpbnpnk0i5rk5lo.png" alt=" " width="800" height="343"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;System administration:&lt;/strong&gt; Admins use &lt;code&gt;ps&lt;/code&gt;, &lt;code&gt;top&lt;/code&gt; and &lt;code&gt;kill&lt;/code&gt; to find and stop a runaway process, &lt;code&gt;chmod&lt;/code&gt; and &lt;code&gt;chown&lt;/code&gt; to control access, and &lt;code&gt;apt&lt;/code&gt; or &lt;code&gt;dnf&lt;/code&gt; to keep servers updated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cybersecurity:&lt;/strong&gt; &lt;code&gt;grep&lt;/code&gt; is a detective's magnifying glass. Searching a log for failed logins, like the &lt;code&gt;ERROR&lt;/code&gt; search in my demo, is how suspicious activity gets spotted. Tight file permissions also follow the principle of least privilege.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DevOps:&lt;/strong&gt; Deployment scripts are Linux commands in a file. A CI/CD pipeline typically logs into a server, copies files with &lt;code&gt;cp&lt;/code&gt;/&lt;code&gt;mv&lt;/code&gt;, sets permissions with &lt;code&gt;chmod&lt;/code&gt;, and installs dependencies with a package manager.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud computing:&lt;/strong&gt; Launch an AWS EC2 instance and you're handed a Linux terminal. Docker containers and Kubernetes nodes run on Linux too, so these commands follow you everywhere in the cloud. In short, learning Linux basics is learning the language that DevOps teams use to talk to their servers.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Challenges &amp;amp; Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Challenges.&lt;/strong&gt; The biggest was fear of destructive commands. &lt;code&gt;rm&lt;/code&gt; has no recycle bin, and I double-checked every path before pressing Enter. Second, permission numbers like &lt;code&gt;750&lt;/code&gt; looked like random digits until I learned the r=4, w=2, x=1 trick. Third, small typos matter: Linux is case-sensitive and takes spaces seriously. Finally, I kept mixing up &lt;code&gt;apt&lt;/code&gt;, &lt;code&gt;yum&lt;/code&gt; and &lt;code&gt;dnf&lt;/code&gt; before realising they are the same idea for different distributions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Most exciting command.&lt;/strong&gt; &lt;code&gt;grep&lt;/code&gt; wins for me. Pulling the two error lines out of a log in a split second felt like a superpower, and I can already see how useful it will be with thousands of lines. A close second is &lt;code&gt;chmod&lt;/code&gt;, because it taught me that security is built from small, deliberate decisions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaway.&lt;/strong&gt; The terminal isn't scary once you read commands as short sentences: a verb (&lt;code&gt;cp&lt;/code&gt;, &lt;code&gt;mv&lt;/code&gt;), then what you're acting on. Practising in a safe test folder removed most of my fear.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This module changed how I see computers. I started out nervous about the command line, and I'm finishing with real confidence in navigating files, managing permissions and processes, and installing software. More importantly, I now understand why Linux is the foundation of DevOps and cloud engineering.&lt;/p&gt;

&lt;p&gt;To keep improving, I plan to practise daily in a Linux virtual machine, write small Bash scripts to automate repetitive tasks, and explore commands like &lt;code&gt;find&lt;/code&gt;, &lt;code&gt;ssh&lt;/code&gt; and &lt;code&gt;systemctl&lt;/code&gt;. I also want to document each new lesson in a blog post like this one, because teaching is how I learn best.&lt;/p&gt;

&lt;p&gt;If you're just starting out, open a terminal, make a practice folder, and break things safely. That's where the learning happens.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Thanks for reading! What was the first Linux command you learned? Tell me in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>devops</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
