<?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 Samuel Orji on Medium]]></title>
        <description><![CDATA[Stories by Samuel Orji on Medium]]></description>
        <link>https://medium.com/@chidubemsamuel?source=rss-225f8b923054------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZygXCam3nKL0sr1j7o6gaQ.jpeg</url>
            <title>Stories by Samuel Orji on Medium</title>
            <link>https://medium.com/@chidubemsamuel?source=rss-225f8b923054------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 11:59:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chidubemsamuel/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[Bash scripting]]></title>
            <link>https://medium.com/@chidubemsamuel/bash-scripting-5e5b452b62fc?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e5b452b62fc</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 07:42:53 GMT</pubDate>
            <atom:updated>2026-08-05T09:23:37.762Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this personal project, I practiced hands-on bash scripting for automating tasks on Linux machines.</h4><figure><img alt="The Bourne-Again Shell (Bash) logo on gray BG" src="https://cdn-images-1.medium.com/max/597/0*AAf737Of699bN2yG" /><figcaption>Bash logo</figcaption></figure><h3>Introduction</h3><p>Bash scripting is the process of writing a sequence of commands in a text file to automate repetitive tasks on Unix-like operating systems.</p><p>Instead of typing commands manually into a terminal, it is saved into a reusable script file (.sh) to save time and reduce errors.</p><h3>Objectives</h3><ul><li>Create and run a simple Bash script</li><li>Apply variables in Bash scripting</li><li>Pass arguments to Bash scripts</li><li>Use arrays in Bash</li><li>Use arithmetic operators in Bash scripts</li><li>Apply conditional and case statements to Bash scripts</li><li>Apply loop statements to Bash scripts</li></ul><h3>Creating a simple Bash script</h3><p>To do this, I:</p><ul><li>Made a new directory named <strong>scripts</strong> to host all bash scripts</li><li>Moved to the new scripts directory</li></ul><pre>mkdir scripts<br>cd scripts</pre><ul><li>Created a new script file named <strong>hello.sh </strong>using <strong>cat</strong> so it opens from the terminal automatically:</li></ul><pre>cat &gt; hello.sh</pre><ul><li>Wrote the following to hello.sh in the blank line that followed<strong>:</strong></li></ul><pre>echo &#39;Hello Dubem!&#39;</pre><ul><li>Pressed Ctrl D to close hello.sh and return to scripts directory</li><li>Confirmed it works by running the new script using <strong>bash</strong> command:</li></ul><pre>bash hello.sh</pre><p><strong>Hello Dubem!</strong> was displayed on the terminal showing that the script works.</p><p>Tried using the universal shell command <strong>./</strong> to run the new script:</p><pre>./hello.sh</pre><p>Permission was denied meaning I don’t have execute access for hello.sh. By default, file owners do not have execute access on Linux. The bash command does not need execute access but it only works for bash shell.</p><p>Corrected this by adding execute permission for myself using:</p><pre>chmod u+x hello.sh</pre><p>Finally, used the ./ command again and <strong>Hello Dubem!</strong> — it worked.</p><p><em>Note: The ./ command usually follows the shell specified by the shebang line. The shebang (#!) line is usually added to the top of a script to help a shell understand the script. This way, </em><strong><em>bash</em></strong><em> can interprete a script written for </em><strong><em>zsh</em></strong><em>.</em></p><h4>Running scripts as a command</h4><p>At first, the new script could only be run successfully from the scripts directory. To ensure it runs as a command from any location, it has to be added to the <strong>PATH</strong> variable. To do this, I:</p><p>Looked through the contents of the PATH variable using:</p><pre>echo $PATH</pre><p>Got the folder path for the scripts directory using:</p><pre>pwd</pre><p>Output — /<strong>home/dubem/scripts</strong></p><p>Added the /<strong>home/dubem/scripts</strong> path to PATH variable using:</p><pre>export PATH=$PATH:/home/dubem/scripts</pre><p>Confimed that I can now run hello.sh script as a command without <strong>bash</strong> or <strong>./</strong> from any location. It worked!!!</p><figure><img alt="I can now run hello.sh script as a command without bash or ./ from any location." src="https://cdn-images-1.medium.com/max/386/1*uOVbokKpLcigSzHQgEa4aQ.png" /><figcaption>Success!</figcaption></figure><h3>Using variables in bash scripting</h3><p>To practice this I:</p><ul><li>Opened <strong>hello.sh</strong> for editing on nano text editor</li></ul><pre>nano hello.sh</pre><ul><li>Added a line that asks a question about daily goals</li><li>Entered next line to prompt the user to fill in the goals variable</li><li>Added a final line to respond and apply the goals variable</li></ul><pre>echo &quot;What are your goals today&quot;<br>read goals<br>echo &quot;Goodluck with $goals&quot;</pre><ul><li>Returned to the terminal and ran hello.sh to confirm</li><li>Entered my goal for the day in the prompt and tapped Enter</li></ul><p>Output shows that the variable works perfectly.</p><figure><img alt="The modified hello.sh command works" src="https://cdn-images-1.medium.com/max/394/1*xDUL8UxkBs8DdrBiy5fNPw.png" /><figcaption>Success!</figcaption></figure><p><em>Note: <br>The </em><strong><em>read</em></strong><em> command is the most realistic way to work with variables.<br>Sentences containing variables must be flanked by a double quote “” and the dollar sign $ used to indicate a variable.<br>Variables can be integers, strings, or characters.</em></p><h4>Commands as variables</h4><p>Commands that change over time also function as variables. Such as <em>whoami </em>and <em>date </em>commands. whoami returns the username while date returns date, time, and timezone.</p><figure><img alt="tested whoami and date commands" src="https://cdn-images-1.medium.com/max/395/1*ooUVRR5BCt_k-kv9xZ4LEg.png" /></figure><p>To practice applying these commands as variables, I:</p><ul><li>Edited the first and second line of the hello.sh script to add them</li></ul><pre>echo &quot;Hello, $(whoami)&quot;<br>echo &quot;What are your goals today $(date)&quot;</pre><ul><li>Saved it and returned to the terminal to run hello.sh again</li></ul><p>Output shows it worked:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*m64Aj9sHibowIrpgdfxzig.png" /><figcaption>success!</figcaption></figure><p><em>Note:<br>A command must be enclosed in parenthesis () to run properly as a variable.</em></p><h4>Constant variables</h4><p>These variables cannot be changed and are created using the <strong>readonly</strong> command. Example:</p><pre>readonly pi=3.142</pre><figure><img alt="as expected, trying to change pi returned warning that pi is a readonly variable" src="https://cdn-images-1.medium.com/max/401/1*VbZgs-bt7rrSCIHR-vtWGQ.png" /></figure><p>As expected, trying to change the value of pi returned a warning that pi is a readonly variable.</p><h3>Passing arguments to Bash scripts</h3><p>To practice this, I:</p><ul><li>Created a new script named count_lines.sh</li></ul><pre>cat &gt; count_lines.sh<br>#!/bin/bash<br><br>echo -n &quot;Please enter a filename: &quot;<br>read filename<br>nlines=$(wc -l &lt; $filename)<br>echo &quot;There are $nlines lines in $filename&quot;</pre><ul><li>Ran the script and entered hello.sh as the filename when prompted</li><li>Confirmed that the script works:</li></ul><figure><img alt="Ran the script and entered hello.sh as the filename when prompted and confirmed that it works" src="https://cdn-images-1.medium.com/max/473/1*WpKj7xvLPcB83FFOc9Ni6Q.png" /></figure><ul><li>Edited the script using <strong>nano</strong> so that filenames can be passed as part of the command line argument on the terminal. With nano, I:</li><li>Removed the two command lines following the shebang line</li><li>Added <strong>$1</strong> as the new variable to replace <strong>$filename</strong> on the last two lines and exited nano.</li></ul><pre>#!/bin/bash<br><br>nlines=$(wc -l &lt; $1)<br>echo &quot;There are $nlines lines in $1&quot;</pre><ul><li>Confirmed this by running the command and it worked:</li></ul><pre>count_lines.sh hello.sh</pre><figure><img alt="It worked. I did not have to fill in any filename this time." src="https://cdn-images-1.medium.com/max/500/1*9BhvdUuQNLcjMU-cMXVhNA.png" /><figcaption>Success! I did not have to fill in any filename this time.</figcaption></figure><p><em>Note:<br>$1 is a positional parameter that passes the second element in a command line argument to the specified script.</em></p><h4>Passing multiple arguments to a bash script</h4><p>To achieve this, I:</p><ul><li>Edited the count_lines.sh script to accept up to three arguments</li></ul><pre>#!/bin/bash<br><br>n1=$(wc -l &lt; $1)<br>n2=$(wc -l &lt; $2)<br>n3=$(wc -l &lt; $3)<br><br>echo &quot;There are $n1 lines in $1&quot;<br>echo &quot;There are $n2 lines in $2&quot;<br>echo &quot;There are $n3 lines in $3&quot;</pre><ul><li>Confirmed that it worked:</li></ul><figure><img alt="Edited the script to be able to accept three arguments and count the lines of three files." src="https://cdn-images-1.medium.com/max/810/1*Eylvq6sv7QnPNQopqzmJdA.png" /><figcaption>Success! I counted the lines of three files.</figcaption></figure><h3>Using arrays in Bash scripts</h3><p>To practice using arrays, I:</p><ul><li>Opened the hello.sh script on nano</li><li>Decided to list some items that I need to reach my goal</li><li>Listed the items in an array instead of doing it line by line</li><li>Added an echo line to print the array items</li><li>Added a echo line in between to help the narrative</li></ul><pre><br>items=(&quot;pc&quot; &quot;internet_access&quot; &quot;power_source&quot;)<br><br>echo &#39;These are the items needed to achieve your goals&#39;<br><br>echo ${items[*]}</pre><p>Confirmed that it works:</p><figure><img alt="Successfull added an array line to my script and it worked well on the terminal." src="https://cdn-images-1.medium.com/max/465/1*HvQwEmpV-KFdtk4fU6dLSA.png" /><figcaption>Success! The script still works.</figcaption></figure><p><em>Note: <br>Array elements can be omitted. To omit the second element in an array on the terminal, apply the unset num[1] command in the script after the array line. Counting usually starts from 0.<br>Different data types can be added to an array.</em></p><h3>Using arithmetic operators in Bash scripting</h3><p>First I practiced using addition to add up the filesize of two files:</p><ul><li>Created a file named addition.sh using cat</li><li>Wrote the following into it:</li></ul><pre>#!/bin/bash<br><br>fs1=$(du -b $1 | cut -f1)<br>fs2=$(du -b $2 | cut -f1)<br><br>echo &quot;File size of $1 is: $fs1&quot;<br>echo &quot;File size of $2 is: $fs2&quot;<br><br>total=$(($fs1 + $fs2))<br><br>echo &quot;Total size is: $total&quot;</pre><p><em>Note: <br></em><strong><em>du -b</em></strong><em> called the filesize and filename of the files. pipe(|) redirected the outputs to </em><strong><em>cut -f1</em></strong><em> which removed the filenames leaving just the filesizes (fs1, fs2). The fifth line holds the actual addition command.</em></p><p>Confirmed that it works:</p><figure><img alt="Running the addition.sh script returned the total of two filesizes" src="https://cdn-images-1.medium.com/max/658/1*ggTWpmLA5SS2wq1ALSu4-A.png" /><figcaption>Success!</figcaption></figure><h4>Other arithmetic operators</h4><p>Subtraction: -</p><p>Multiplication: *</p><p>Division: /</p><p>Power: **</p><h3>Conditional and case statements in Bash scripts</h3><p>To practice this gradually, I:</p><p>Edited my hello.sh script to add an <strong>if</strong> statement in 3rd and 4th lines</p><pre>#! /bin/bash<br><br>echo &quot;Hello, $(whoami)&quot;<br><br>if [ $(whoami) = &#39;root&#39; ]; then<br>   echo &quot;You are root&quot;<br>fi<br><br>echo &quot;What are your goals today $(date)&quot;<br><br>read goals<br><br>items=(&quot;pc&quot; &quot;internet_access&quot; &quot;power_source&quot;)<br><br>echo &#39;These are the items needed to achieve your goals&#39;<br><br>echo ${items[*]}<br><br>echo &quot;Goodluck with $goals&quot;</pre><p>Confirmed that it works by running the script as root user (sudo):</p><pre>sudo ./hello.sh</pre><p>Output:</p><figure><img alt="Second line shows that the if statement worked" src="https://cdn-images-1.medium.com/max/519/1*k5IV8Zz4TUL68uGSF-nCkA.png" /><figcaption>Second line of the output shows that the if statement worked</figcaption></figure><p><em>P. S: I changed the colour of my command terminal from here.</em></p><p>Applied <strong>else</strong> condition by adding it after the if statement in the script</p><pre>else<br>    echo &quot;You are not root&quot;</pre><p>Confirmed that it works by running hello.sh without root priviledges</p><p>Output:</p><figure><img alt="Confirmed the else statement works by not using sudo" src="https://cdn-images-1.medium.com/max/483/1*uo76AfEqGNy20jiLc2rBmw.png" /></figure><ul><li>Practiced using <strong>elif</strong> statements by replacing the former if/else statement with a statement that accommodates elif.</li><li>Added a few other lines to improve the script</li></ul><pre>echo &#39;How old are you?&#39;<br><br>read age<br><br>if [ $age -lt 13 ]; then<br> echo &quot;You are a kid.&quot;<br>elif [ $age -lt 20 ]; then<br> echo &quot;You are a teenager.&quot;<br>elif [ $age -lt 65 ]; then<br> echo &quot;You are an adult.&quot;<br>else<br> echo &quot;You are an elder.&quot;<br>fi</pre><p>Confirmed that it works by running hello.sh</p><p>Output:</p><figure><img alt="The just added conditional statement that includes the elif condition worked perfectly." src="https://cdn-images-1.medium.com/max/494/1*BXXc6GnOUwFa9D-42SGJpg.png" /><figcaption>Success!</figcaption></figure><p><em>Note: <br>There can be many elif conditions but only one else condition in an if statement.<br>A statement containing if, elif, and else conditions can be written on a single line but must be seperated by semi-colons.<br>If statements can also be nested under another if statement like this:</em></p><pre>if [ $TEMP -gt 5 ]; then<br>   if [ $TEMP -lt 15 ]; then<br>      echo &quot;The weather is cold.&quot;<br>   elif [ $TEMP -lt 25 ]; then<br>      echo &quot;The weather is nice.&quot;<br>   else<br>      echo &quot;The weather is hot.&quot;<br>   fi<br>else<br>   echo &quot;It&#39;s freezing outside ...&quot;<br>fi</pre><h3>Loop statements in Bash scripts</h3><p>To practice the <strong>for</strong> loop, I:</p><p>Replaced the <em>echo ${items[*]}</em> line with a <strong>for</strong> statement in <strong>hello.sh</strong> script</p><pre>items=(&quot;pc&quot; &quot;internet_access&quot; &quot;power_source&quot;)<br><br>echo &#39;These are the items needed to achieve your goals&#39;<br><br>for i in ${items[@]};do<br>   echo $i<br>done</pre><p>This made a slight change to the output after running hello.sh:</p><figure><img alt="The content of items array are listed one on a line instead of on the same line as the former echo ${items[*]} command. Much better!" src="https://cdn-images-1.medium.com/max/512/1*gPnNT4o8asLl8x_qIViwgQ.png" /></figure><p>The content of <strong>items</strong> array are now listed one on a line instead of all on the same line as the former <em>echo ${items[*]} </em>command. Much better!</p><p>To practice <strong>while</strong> loop and <strong>break, </strong>I:</p><p>Added a <strong>while</strong> statement with a <strong>break</strong> command so it stops after one line. I added this after the conditional statement.</p><pre>while [ $age -le 26 ];do<br> echo &quot;Vibrant Gen-Z.&quot;<br>break<br>done</pre><p>Confirmed that it worked:</p><figure><img alt="The while statement worked well" src="https://cdn-images-1.medium.com/max/520/1*pZfsI4u6MY-r1iKYtkAzVQ.png" /></figure><p><em>Note: <br></em><strong><em>if</em></strong><em> statements can be nested under loop statements. <br></em><strong><em>break</em></strong><em> or </em><strong><em>continue</em></strong><em> can follow after. </em><strong><em>break</em></strong><em> ends a loop and </em><strong><em>continue</em></strong><em> extends it. <br>The </em><strong><em>until</em></strong><em> loop contradicts the </em><strong><em>while</em></strong><em> loop but statements have same structure.</em></p><h3>Functions in Bash</h3><p>I learnt that a function is a less tedious way of repeating commands within a script. A function is defined, thus:</p><pre>function_name () {<br>commands<br>}</pre><p>To repeat the commands listed under a function, all that is needed is the function_name.</p><h3>Conclusion</h3><p>Through this project, I successfully practiced bash scripting and applied several modifications that help bash scripts handle task automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e5b452b62fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Linux OS alongside Windows without a USB drive]]></title>
            <link>https://medium.com/@chidubemsamuel/install-linux-os-alongside-windows-without-a-usb-drive-9ef5c832b6bf?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ef5c832b6bf</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-08-20T11:12:40.403Z</atom:updated>
            <content:encoded><![CDATA[<h4>I found a way to install the latest Ubuntu version 26.04 to run alongside pre-installed Windows without using an external drive.</h4><figure><img alt="Ubuntu Logo" src="https://cdn-images-1.medium.com/max/539/0*sv6clyj5HVcODi3N" /><figcaption>Ubuntu by Canonical</figcaption></figure><h3>Introduction</h3><p>In the course of my freelance journey as an IT expert, I installed the most developer friendly operating system — Linux on a client PC. Research showed that Ubuntu is the most viable option.</p><p>Ubuntu is a popular, open-source Linux operating system developed and maintained by the British software company, Canonical. The latest version of Ubuntu 26.04.</p><h3>Prerequisites</h3><p>Before going ahead, I made the following preparations:</p><ol><li>Ensured that all critical files and important data were saved to Google Drive.</li><li>Visited the <a href="https://ubuntu.com/download/desktop">official Ubuntu website</a> to download the Ubuntu for desktop ISO file. It was saved in the <strong>Downloads</strong> folder.</li></ol><figure><img alt="Ubuntu 26.04 LTS download page" src="https://cdn-images-1.medium.com/max/1024/1*Yq-jH4gIh3m3baHOMkACwA.jpeg" /><figcaption>Ubuntu for desktop download page</figcaption></figure><h3>Objectives</h3><ul><li>Created space through disk partition</li><li>Set up Linux installer without external drive</li><li>Run the installation of Ubuntu</li></ul><h4>Note that this procedure was done on Windows 10 pro.</h4><p>There’s not much difference on Windows 11.</p><h3>Create space on my drive using Windows</h3><p>I created two spaces on the hard drive. A large partition where Linux will actually live and out of it I carved out a small partition to act as a “virtual USB”.</p><h4>To create the large disk partition, I:</h4><ul><li>Right-clicked the Start menu icon and selected <strong>Disk Management</strong>.</li><li>Right-clicked the partition named <strong>(C:)</strong> and selected <strong>Shrink Volume</strong>.</li><li>Entered my desired amount of free space in MB (200 GB = 204800 MB) into the box that says “Enter the amount of space to shrink in MB,”.</li><li>Clicked <strong>Shrink </strong>and found a new partition named “Unallocated space”.</li></ul><figure><img alt="Creating a disk partition on windows — Shrink volume pop-up window image" src="https://cdn-images-1.medium.com/max/806/1*MA7-thhbERrULhkVN4hVyw.jpeg" /><figcaption>The C: partition and the Shrink Volume window</figcaption></figure><h4><strong>To create the smaller partition, I:</strong></h4><ul><li>Right-clicked new Unallocated space and selected <strong>New Simple Volume</strong>.</li><li>Set the size to <em>7000 </em>MB (enough to hold the Ubuntu ISO files).</li><li>Assigned a drive letter (L: for Linux — anyone works).</li><li>Formatted it as <strong>FAT32</strong> (not NTFS).</li><li>Named the small partition <em>LINUXINSTAL</em>.</li></ul><figure><img alt="small partition carved out to act as a “virtual USB installer”" src="https://cdn-images-1.medium.com/max/328/1*h8ESYpSskO-X2N5flNOG1g.jpeg" /><figcaption>The smaller partition</figcaption></figure><h3>Set up installer without external drive</h3><p>To finish setting up the Linux Installer without an external drive, I had to extract the Ubuntu ISO files and boot the installer.</p><h4><strong>To extract the Ubuntu ISO files, I:</strong></h4><ul><li>Went to the <strong>Downloads</strong> folder.</li><li>Double-clicked the downloaded Ubuntu ISO file and it automatically mounted as a virtual disc named <strong><em>DVD Drive (F:) Ubuntu 26.04 amd</em></strong>.</li><li>Copied every single file and folder from the virtual disc.</li><li>Pasted them directly into the root of the new LINUXINSTAL partition.</li></ul><figure><img alt="LINUXINSTAL folder containing pasted Ubuntu ISO files" src="https://cdn-images-1.medium.com/max/1024/1*ZZERLSZBKxSK8tMM0i2V8A.jpeg" /><figcaption>LINUXINSTAL folder</figcaption></figure><p>Now that the files are sitting in the LINUXINSTAL FAT32 partition, I proceeded to trick the computer into booting from it directly.</p><h4>To Boot the Installer, I:</h4><ul><li>Held down the <strong>Shift </strong>key on my keyboard and selected <strong>Restart</strong> power option from the Windows Start Menu.</li><li>Selected <strong>Use a device </strong>from the menu of advanced options showing on the blue screen that appeared.</li><li>Clicked the device option named “<strong>UEFI…”</strong>(The result of the virtual USB created earlier)<strong> </strong>and the computer rebooted.</li><li>Selected <strong>Try or Install Ubuntu </strong>from the GNU GRUB menu (the Linux bootloader) that appeared.</li></ul><p>Then the Ubuntu desktop started booting up.</p><figure><img alt="Ubuntu’s first boot on my PC captured using my phone." src="https://cdn-images-1.medium.com/max/800/1*EDGlTcpAkJyTZTOFnKeCyA.jpeg" /><figcaption>Ubuntu first boot-up on my PC</figcaption></figure><h3>The Final Installation Process</h3><p>The installation process involved certain options that were mostly easy and intuitive.</p><p><strong>As for the critical installation options, I:</strong></p><ul><li>Clicked the <strong>Install Ubuntu</strong> icon on the desktop.</li><li>Selected “Install alongside Windows” on the <strong>Installation type</strong> screen, not “Erase disk and install Ubuntu.” That would wipe out the Windows machine.</li><li>Selected the remaining Unallocated Space (the 200 GB which I created earlier) as the location.</li><li>Set the mount point to / (the root directory where Linux installs everything).</li><li>Chose <strong><em>ext4</em></strong> as the file system.</li><li>Proceeded with the installation prompts (setting up your username, password, and timezone).</li><li>Restarted the PC immediately after the installation finished.</li></ul><p>Now, the GNU GRUB screen prompts the user to choose between booting into <strong>Windows</strong> or <strong>Ubuntu Linux </strong>whenever the PC is turned on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnYPnrHsXUnnkoEwyXsWaA.png" /><figcaption>GNU GRUB Screen</figcaption></figure><h3>Finally</h3><p>I no longer need the temporary LINUXINSTAL partition.</p><p><strong>To clear up the space, I:</strong></p><ul><li>Opened Disk Management in Windows</li><li>Right-clicked the LINUXINSTAL partition</li><li>Selected <strong>Delete Volume </strong>to remove it.</li><li>Right-clicked the <strong>C:</strong> drive and selected <strong>Extend Volume</strong> to reclaim the extra space.</li></ul><h3>Conclusion</h3><p>Through this freelance project, I successfully:</p><ul><li>Created a disk partition</li><li>Booted Linux installer without an external drive</li><li>Installed Ubuntu Linux on my PC.</li></ul><p>Looking forward to doing more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ef5c832b6bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coordinating permissions in Windows]]></title>
            <link>https://medium.com/@chidubemsamuel/coordinating-permissions-in-windows-67400bab4b1b?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/67400bab4b1b</guid>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 18:22:06 GMT</pubDate>
            <atom:updated>2026-07-31T18:23:35.643Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I practiced managing user permissions on a Windows virtual machine.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/0*8dCHxkLpfs1bDS-3" /><figcaption>Windows logo by Logo.wine</figcaption></figure><h3>Introduction</h3><p>Windows permissions control what users, groups, and apps can do to files, folders, and system resources. The main types are NTFS file permissions, network share permissions, and app privacy permissions. This lab is focused on NTFS file permissions using PowerShell.</p><h3>Objectives</h3><ul><li>Access administrative privileges to use Windows PowerShell</li><li>View file and folder permissions using PowerShell commands</li><li>Modify permissions for both files and directories by granting and removing specific permissions using ICACLS in PowerShell.</li><li>Modify the permissions for groups using PowerShell</li></ul><h3>Windows PowerShell</h3><p>To access administrative privileges on Windows PowerShell, I:</p><ul><li>Found Windows PowerShell from the <strong>Start</strong> menu</li><li>Right clicked the application and selected <strong>Run as Administrator</strong> from the pop-up menu.</li></ul><h3>Permissions</h3><p>There were a couple of files in the virtual machine that needed new file permissions. See how I dealt with it.</p><h4>Instance 1</h4><p>In the<strong> </strong>Documents<strong> </strong>folder<strong>, </strong>a file named <strong>important_document </strong>needs updated permissions so that a user <strong>Kara</strong> only has read access. To do this, I:</p><p>Viewed existing permissions for the file using this command:</p><pre>ICACLS C:\Users\Qwiklab\Documents\important_document</pre><p>Output shows Kara has read and write permissions:</p><pre>C:\Users\Qwiklab\Documents\important_document QWIKLABS-BB-5A8\Kara:(R,W)<br>                                              NT AUTHORITY\SYSTEM:(I)(F)<br>                                              BUILTIN\Administrators:(I)(F)<br>                                              BUILTIN\Users:(I)(RX)<br>                                              Everyone:(I)(RX)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Removed all Kara’s access to the file first:</p><pre>ICACLS C:\Users\Qwiklab\Documents\important_document /remove &quot;Kara&quot;</pre><p>Granted Kara only read permission using:</p><pre>ICACLS C:\Users\Qwiklab\Documents\important_document /grant &quot;Kara:(r)&quot;</pre><p>Confirmed the update by viewing permissions again. Output shows success</p><pre>C:\Users\Qwiklab\Documents\important_document QWIKLABS-BB-066\Kara:(R)<br>                                              NT AUTHORITY\SYSTEM:(I)(F)<br>                                              BUILTIN\Administrators:(I)(F)<br>                                              BUILTIN\Users:(I)(RX)<br>                                              Everyone:(I)(RX)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Kara now has only read permission for the file.</p><h4>Instance 2</h4><p>In a folder called Secret, I need to grant read permission to Phoebe and write to Kara, who already has read permission. To do this I:</p><p>Listed existing permissions</p><pre>ICACLS C:\Users\Qwiklab\Secret\</pre><p>Confirmed that Phoebe has no access and Kara can only read:</p><pre>C:\Users\Qwiklab\Secret\ QWIKLABS-BB-066\Kara:(R)<br>                         NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)<br>                         BUILTIN\Administrators:(I)(OI)(CI)(F)<br>                         BUILTIN\Users:(I)(RX)<br>                         BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)<br>                         Everyone:(I)(RX)<br>                         Everyone:(I)(OI)(CI)(IO)(GR,GE)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Granted Phoebe read access using:</p><pre>ICACLS C:\Users\Qwiklab\Secret\ /grant &quot;Phoebe:(r)&quot;</pre><p>Granted Kara write access using:</p><pre>ICACLS C:\Users\Qwiklab\Secret\ /grant &quot;Kara:(w)&quot;</pre><p>Verified this and output shows success:</p><pre>C:\Users\Qwiklab\Secret\ QWIKLABS-BB-066\Phoebe:(R)<br>                         QWIKLABS-BB-066\Kara:(R,W)<br>                         NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)<br>                         BUILTIN\Administrators:(I)(OI)(CI)(F)<br>                         BUILTIN\Users:(I)(RX)<br>                         BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)<br>                         Everyone:(I)(RX)<br>                         Everyone:(I)(OI)(CI)(IO)(GR,GE)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Phoebe can now view the contents of the Secret folder while Kara now enjoys both read and write access.</p><h4>Instance 3</h4><p>On a folder called <strong>Music</strong>, I have to remove write access for <strong>Everyone</strong> so they can only read from the folder. To do this, I:</p><p>Confirmed the former permissions using:</p><pre>ICACLS C:\Users\Qwiklab\Music\</pre><p>Saw that Everyone can both read and write to the folder:</p><pre>C:\Users\Qwiklab\Music\ Everyone:(R,W)<br>                        NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)<br>                        BUILTIN\Administrators:(I)(OI)(CI)(F)<br>                        BUILTIN\Users:(I)(RX)<br>                        BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)<br>                        Everyone:(I)(RX)<br>                        Everyone:(I)(OI)(CI)(IO)(GR,GE)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Removed all access to the folder for Everyone since this is the only way to ensure write access is removed:</p><pre>ICACLS C:\Users\Qwiklab\Music\ /remove &quot;Everyone&quot;</pre><p>Proceeded to now grant Everyone fresh read only permission:</p><pre>ICACLS C:\Users\Qwiklab\Music\ /grant &quot;Everyone:(r)&quot;</pre><p>Verified this and it’s done:</p><pre>C:\Users\Qwiklab\Music\ Everyone:(R)<br>                        NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)<br>                        BUILTIN\Administrators:(I)(OI)(CI)(F)<br>                        BUILTIN\Users:(I)(RX)<br>                        BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)<br>                        Everyone:(I)(RX)<br>                        Everyone:(I)(OI)(CI)(IO)(GR,GE)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Everyone now has read only access to the Music folder.</p><h4>Instance 4</h4><p>In the documents folder, another file named <strong>not_so_important_document </strong>needs to be modified so that the group called <strong>Authenticated Users</strong> has <strong>Write</strong> access. To achieve this, I:</p><p>Perused the former permission setup:</p><pre>ICACLS C:\Users\Qwiklab\Documents\not_so_important_document</pre><p>Verified that <strong>Authenticated Users </strong>has no access yet:</p><pre>C:\Users\Qwiklab\Documents\not_so_important_document <br>NT AUTHORITY\SYSTEM:(I)(F)<br>BUILTIN\Administrators:(I)(F)<br>BUILTIN\Users:(I)(RX)<br>Everyone:(I)(RX)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Granted the group write access using:</p><pre>ICACLS C:\Users\Qwiklab\Documents\not_so_important_document /grant &quot;Authenticated Users:(w)&quot;</pre><p>Confirmed that this was successsful:</p><pre>C:\Users\Qwiklab\Documents\not_so_important_document <br>NT AUTHORITY\Authenticated Users:(W)<br>NT AUTHORITY\SYSTEM:(I)(F)<br>BUILTIN\Administrators:(I)(F)<br>BUILTIN\Users:(I)(RX)<br>Everyone:(I)(RX)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Authenticated Users can now write to the not_so_important_document.</p><h4>Instance 5</h4><p>Another file in the Documents folder — <strong>public_document </strong>needs to be readable by every user. To achieve this, I:</p><p>Viewed the list of existing permissions as usual:</p><pre>ICACLS C:\Users\Qwiklab\Documents\public_document</pre><p>Found that no user has access yet:</p><pre>C:\Users\Qwiklab\Documents\public_document NT AUTHORITY\SYSTEM:(I)(F)<br>                                           BUILTIN\Administrators:(I)(F)<br>                                           BUILTIN\Users:(I)(RX)<br>                                           Everyone:(I)(RX)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Added read permission for Everyone using:</p><pre>ICACLS C:\Users\Qwiklab\Documents\public_document /grant &quot;Everyone:(r)&quot;</pre><p>Viewed the permissions again to make sure it worked:</p><pre>C:\Users\Qwiklab\Documents\public_document Everyone:(R)<br>                                           NT AUTHORITY\SYSTEM:(I)(F)<br>                                           BUILTIN\Administrators:(I)(F)<br>                                           BUILTIN\Users:(I)(RX)<br>                                           Everyone:(I)(RX)<br><br>Successfully processed 1 files; Failed processing 0 files</pre><p>Everyone can now read the public_document file.</p><h3>Conclusion</h3><p>At the end, I successfully modified permissions for both files and directories on PowerShell using ICACLS on a Windows VM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67400bab4b1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coordinating permissions on Linux]]></title>
            <link>https://medium.com/@chidubemsamuel/coordinating-permissions-on-linux-fe7518e0b5c6?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe7518e0b5c6</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 18:29:01 GMT</pubDate>
            <atom:updated>2026-07-31T18:24:58.668Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I practiced managing file/folder ownership and user permissions on a Linux VM</h4><figure><img alt="Linux logo — Tux the penguin" src="https://cdn-images-1.medium.com/max/700/0*q7fj_YAi0_boy011" /><figcaption>Linux logo</figcaption></figure><h3>Introduction</h3><p>Linux permissions control access to files and directories using read, write, and execute operations assigned to user (owner), group, and others. This file permission model form the backbone of system security.</p><h3>Objectives</h3><ul><li>Change permissions within a file and folder in Linux</li><li>Change the ownership of a specific file and folder</li></ul><h3>Checking file permissions</h3><p>To do this, I;</p><p>Navigated to the directory where the file is located:</p><pre>cd /home/qwiklab/documents</pre><p>Listed the permission of the important_document file with this command:</p><pre>ls -l important_document</pre><p>The output shows read and write permissions for the owner alone:</p><pre>-rw------- 1 student student 16 Aug  4 11:38 important_document</pre><p><em>For clarity, the first character is a dash indicating that this is a file permission information. The following three characters show owner permissions. The next three show group permissions and the last three show permissions for others. A dash on any of those indicate no permission.</em></p><h3>Changing file permissions</h3><p>I added execute permissions to the owner using the command:</p><pre>sudo chmod 700 important_document</pre><p>I checked using the command applied earlier and output shows additional execute permission for the owner and nothing for group or others:</p><pre>-rwx------ 1 student student 16 Aug  4 11:38 important_document</pre><p><em>There is another method for updating permissions but this method is preferred for its simplicity. In the other method the command would be:</em></p><pre>sudo chmod u+x important_document</pre><h3>Changing folder permissions</h3><p>In the same directory, there’s a subdirectory called <strong>secret_folder. </strong>I have to change the permissions for this. The owner should have all permissions. The group should have only write permission. People other than the owner and the group should have no permissions. To do this, I:</p><p>Checked the current permissions using:</p><pre>ls -ld secret_folder/</pre><p>Output:</p><pre>drw-r--r-- 2 root root 4096 Aug  4 11:38 secret_folder/</pre><p>Calculated the permission code: owner has all i.e. 4+2+1=7. Group has only write which is 2. Others have none which is 0. This brought me to the command below:</p><pre>sudo chmod 720 secret_folder/</pre><p>I confirmed the permissions update using the same command used above:</p><pre>drwx-w---- 2 root root 4096 Aug  4 11:38 secret_folder/</pre><p>Other method:</p><pre>sudo chmod u+x,g+w-r,o-r secret_folder/</pre><p>This would produce same result.</p><h3>Changing owners</h3><p>Here, there’s also a folder called <strong>taco. </strong>To change the owner, I:</p><p>Examined the file info to see the former owner using:</p><pre>ls -ld taco/</pre><p>Output shows it’s owned by the root user:</p><pre>drwxr-xr-x 2 root root 4096 Aug  4 11:38 taco/</pre><p>Changed the owner to another user named <strong>cook:</strong></p><pre>sudo chown cook /home/qwiklab/taco</pre><p>To confirm this, I examined the file info again, and now:</p><pre>drwxr-xr-x 2 cook root 4096 Aug  4 11:38 taco/</pre><p>Cook is the new owner!</p><h3>Conclusion</h3><p>Yay. I successfully:</p><ul><li>Changed file and folder permissions using chmod</li><li>Changed file owner using chown.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe7518e0b5c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Packaging software and archiving files on Windows]]></title>
            <link>https://medium.com/@chidubemsamuel/packaging-software-and-archiving-files-on-windows-124e5aa0d438?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/124e5aa0d438</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 17:03:26 GMT</pubDate>
            <atom:updated>2026-07-30T17:06:06.473Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I practiced installing and removing software in the Windows, and worked with zipped files.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/0*YfIdJMwL1rEs6fXr" /><figcaption>Windows logo by Logo.wine</figcaption></figure><h3>Introduction</h3><p>Successfully installed a text editor, called Sublime Text using the graphical interface(GUI) on Windows. Then, I extracted/unextracted .tar files using GUI and Powershell.</p><h3>Objectives</h3><ul><li>Install and Uninstall applications on Windows GUI</li><li>Extract files using 7-Zip</li><li>Archive files using Windows PowerShell</li></ul><h3>Installing and uninstalling software on Windows GUI</h3><p>First, I installed the sublime text editor. To do this, I:</p><ul><li>Visited <a href="https://www.sublimetext.com/"><strong>https://www.sublimetext.com/</strong></a><strong> </strong>on Google Chrome</li><li>Downloaded the Sublime Text package file from the official website</li><li>Opened the Downloads folder on File Explorer to find the new package</li><li>Double-clicked the .exe file to begin the download process</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*ICTTDoQTXgvczlPB" /><figcaption>Sublime Text first download section</figcaption></figure><ul><li>Left the folder location at the default and clicked <strong>Next</strong> to proceed</li><li>Clicked <strong>Install</strong> on the following section and the installation loaded until complete.</li><li>Confirmed the installation by searching for the Sublime Text app in the search bar.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/0*BzuxXfBOPFX7G5IL" /><figcaption>Sublime Text is now available.</figcaption></figure><p>To uninstall the GIMP application, I:</p><ul><li>Clicked the <strong>Start</strong> button to open the Start menu</li><li>Searched for GIMP so I don’t have to look through the app list</li><li>Right-clicked the GIMP app</li><li>Selected <strong>Uninstall</strong> from the menu that appeared and confirmed it.</li></ul><h3>Extracting using 7-Zip</h3><p>7-Zip has been pre-downloaded. To extract the files in<strong> example.tar</strong>, I:</p><ul><li>Opened File Explorer to search for it</li><li>Navigated to <strong>C:\Users\Qwiklab\Downloads </strong>and found it</li><li>Clicked-and-dragged the file to Desktop</li><li>Right-clicked the example.tar file from Desktop</li><li>Hovered over the 7-Zip option and selected <strong>Extract Here</strong></li></ul><p>Now I can see the contents of the example.tar file on the Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/0*9dWbUwWyU7EtXJGs" /><figcaption>example.tar and its extracted content</figcaption></figure><h3>Archiving files with PowerShell</h3><p>To practice this, I:</p><ul><li>Right-clicked Windows PowerShell and selected <strong>Run as Administrator</strong></li><li>Navigated to the <strong>C:\Users\Qwiklab\Documents </strong>folder:</li></ul><pre>cd C:\Users\Qwiklab\Documents\</pre><ul><li>Created a .zip archive called planets.zip using the command:</li></ul><pre>Compress-Archive -Path Earth, Mercury, Venus Planets.zip</pre><p>That is how I archive the three files: Earth, Mercury, and Venus.</p><h3>Conclusion</h3><p>With that, I sucessfully:</p><ul><li>Installed and uninstalled files on Windows</li><li>Extracted archived files using 7-Zip</li><li>Archived files using PowerShell.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=124e5aa0d438" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Packaging software and archiving files on Linux]]></title>
            <link>https://medium.com/@chidubemsamuel/packaging-software-and-archiving-files-on-linux-80516b8e6756?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/80516b8e6756</guid>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 07:11:43 GMT</pubDate>
            <atom:updated>2026-07-29T07:11:43.312Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I practiced installing and removing software in Linux, and working with zipped files.</h4><figure><img alt="Linux logo and mascot — Tux the penguin" src="https://cdn-images-1.medium.com/max/700/0*iSEKx-N7ZGp4aZZV" /><figcaption>Linux logo</figcaption></figure><h3>Introduction</h3><p>Software packaging is the process of organising application files, configuration settings, and dependencies into a single standardized format for easy distribution and installation.</p><p>File archiving is the process of compressing data to cover less space. This maximises storage space, reduces cost of data transfers, etc.</p><h3>Objectives</h3><ul><li>Install and uninstall programs</li><li>Archive and unarchive files on a Linux VM.</li></ul><h3>Installing available packages</h3><p>To install the Sublime Text editor package which already exists in the machine, I entered the following command into the Linux bash terminal:</p><pre>sudo dpkg -i /home/qwiklab/downloads/sublime-text_build-3211_amd64.deb</pre><p>This returned errors because the Sublime text editor package has some dependencies that are not installed on the VM yet.</p><pre>Selecting previously unselected package sublime-text.<br>(Reading database ... 36788 files and directories currently installed.)<br>Preparing to unpack .../sublime-text_build-3211_amd64.deb ...<br>Unpacking sublime-text (3211) ...<br>dpkg: dependency problems prevent configuration of sublime-text:<br> sublime-text depends on libgtk-3-0; however:<br>  Package libgtk-3-0 is not installed.<br><br>dpkg: error processing package sublime-text (--install):<br> dependency problems - leaving unconfigured<br>Processing triggers for mime-support (3.62) ...<br>Processing triggers for hicolor-icon-theme (0.17-2) ...<br>Errors were encountered while processing:<br> sublime-text</pre><p>To fix this, I used the command below and entered y for yes as prompted to finish the installation:</p><pre>sudo apt install -f</pre><p>To confirm that Sublime Text has been properly installed, I typed:</p><pre>dpkg -s sublime-text</pre><p>The output is in affirmation:</p><pre>Package: sublime-text<br>Status: install ok installed<br>Priority: optional<br>Section: editors<br>Installed-Size: 34033<br>Maintainer: Sublime HQ Pty Ltd <br>Architecture: amd64<br>Version: 3211</pre><h3>Extracting an archive</h3><p>To unarchive a file known as extract_me.tar, I:</p><ul><li>Changed to the file location using the command:</li></ul><pre>cd /home/qwiklab/downloads</pre><ul><li>Used the command below to extract the archived files:</li></ul><pre>sudo tar -xvf extract_me.tar</pre><p>A file named great_job was extracted :</p><pre>home/qwiklab/extract_me/<br>home/qwiklab/extract_me/great_job</pre><h3>Archiving files</h3><p>I practiced this by archiving three files in the <strong>/home/qwiklab/documents</strong> folder named <strong>Earth</strong>, <strong>Mercury</strong>, and <strong>Venus </strong>into a file known as <strong>Planets.tar.</strong></p><p>To do this, I returned to the home directory and entered the command:</p><pre>tar -cvf Planets.tar --absolute-names /home/qwiklab/documents/Earth \<br>/home/qwiklab/documents/Mercury /home/qwiklab/documents/Venus</pre><p>Planet.tar was added to the <strong>/home/qwiklab/documents </strong>folder and contained the three files.</p><h3>Installing unavailable packages</h3><p>Since the 7-Zip package is not available in my machine, I used a command which automatically downloads a package and its dependencies before making a successful installation:</p><pre>sudo apt install p7zip-full</pre><p>I confirmed the installation midway by typing <strong>y</strong> for yes when prompted.</p><pre>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>The following additional packages will be installed:<br>  p7zip<br>Suggested packages:<br>  p7zip-rar<br>The following NEW packages will be installed:<br>  p7zip p7zip-full<br>0 upgraded, 2 newly installed, 0 to remove and 21 not upgraded.<br>Need to get 1540 kB of archives.<br>After this operation, 5780 kB of additional disk space will be used.<br>Do you want to continue? [Y/n] y<br>Get:1 http://deb.debian.org/debian buster/main amd64 p7zip amd64 16.02+dfsg-6 [376 kB]<br>Get:2 http://deb.debian.org/debian buster/main amd64 p7zip-full amd64 16.02+dfsg-6 [1164 kB]<br>Fetched 1540 kB in 0s (8625 kB/s)<br>debconf: delaying package configuration, since apt-utils is not installed<br>Selecting previously unselected package p7zip.<br>(Reading database ... 48397 files and directories currently installed.)<br>Preparing to unpack .../p7zip_16.02+dfsg-6_amd64.deb ...<br>Unpacking p7zip (16.02+dfsg-6) ...<br>Selecting previously unselected package p7zip-full.<br>Preparing to unpack .../p7zip-full_16.02+dfsg-6_amd64.deb ...<br>Unpacking p7zip-full (16.02+dfsg-6) ...<br>Setting up p7zip (16.02+dfsg-6) ...<br>Setting up p7zip-full (16.02+dfsg-6) ...</pre><p>I verified the installation using the dpkg command as before and it was OK.</p><h3>Uninstalling packages</h3><p>Here, I uninstalled an image-editing software called GIMP using the command below:</p><pre>sudo apt remove gimp</pre><p>As always I confirmed the decision midway:</p><pre>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>The following packages were automatically installed and are no longer required:<br>  fonts-droid-fallback fonts-noto-mono ghostscript gimp-data gsfonts<br>  i965-va-driver intel-media-va-driver libaa1 libamd2 libaom0 libasound2<br>  libasound2-data libasyncns0 libavcodec58 libavformat58 libavutil56<br>  libbabl-0.1-0 libblas3 libcaca0 libcamd2 libccolamd2 libcholmod3<br>  libchromaprint1 libcodec2-0.8.1 libcolamd2 libcrystalhd3<br>  libcupsfilters1 libcupsimage2 libde265-0 libexiv2-14 libflac8<br>  libgegl-0.4-0 libgegl-common libgexiv2-2 libgfortran5 libgimp2.0<br>  libgme0 libgs9 libgs9-common libgsm1 libheif1 libigdgmm5 libijs-0.35<br>  libilmbase23 libjbig2dec0 liblapack3 libmetis5 libmng1 libmp3lame0<br>  libmpg123-0 libmypaint-1.3-0 libmypaint-common libnuma1 libogg0<br>  libopenexr23 libopenjp2-7 libopenmpt0 libopus0 libpaper-utils libpaper1<br>  libpoppler-glib8 libpoppler82 libpulse0 libraw19 libsdl1.2debian<br>  libshine3 libslang2 libsnappy1v5 libsndfile1 libsoxr0 libspeex1<br>  libssh-gcrypt-4 libsuitesparseconfig5 libswresample3 libswscale5<br>  libtheora0 libtwolame0 libumfpack5 libva-drm2 libva-x11-2 libva2<br>  libvdpau-va-gl1 libvdpau1 libvorbis0a libvorbisenc2 libvorbisfile3<br>  libvpx5 libwavpack1 libwebpdemux2 libwebpmux3 libwmf0.2-7 libx264-155<br>  libx265-165 libxcb-xfixes0 libxvidcore4 libzvbi-common libzvbi0<br>  mesa-va-drivers mesa-vdpau-drivers poppler-data va-driver-all<br>  vdpau-driver-all<br>Use &#39;sudo apt autoremove&#39; to remove them.<br>The following packages will be REMOVED:<br>  gimp<br>0 upgraded, 0 newly installed, 1 to remove and 21 not upgraded.<br>After this operation, 19.5 MB disk space will be freed.<br>Do you want to continue? [Y/n] y<br>(Reading database ... 48496 files and directories currently installed.)<br>Removing gimp (2.10.8-2) ...<br>Processing triggers for mime-support (3.62) ...<br>Processing triggers for desktop-file-utils (0.23-4) ...</pre><p>I verified that gimp is gone using:</p><pre>dpkg -s gimp</pre><p>The output confirms this:</p><pre>dpkg-query: package &#39;gimp&#39; is not installed and no information is available<br>Use dpkg --info (= dpkg-deb --info) to examine archive files.</pre><h3>Conclusion</h3><p>At the end of this lab, I successfully:</p><ul><li>Installed software packages using <strong>dpkg</strong> and <strong>apt</strong></li><li>Extracted archived files and archived files using <strong>tar</strong></li><li>Uninstalled a software package.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80516b8e6756" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disk partitioning and formatting in Windows]]></title>
            <link>https://medium.com/@chidubemsamuel/disk-partitioning-and-formatting-in-windows-021ea37c874a?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/021ea37c874a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 15:16:52 GMT</pubDate>
            <atom:updated>2026-07-30T17:08:36.084Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I partitioned and formatted a disk drive in a Windows VM.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/0*tAimLEbqfm2oE_Hi" /><figcaption>Windows disk management application homepage from Microsoft Learn</figcaption></figure><h3>Introduction</h3><p>On a new disk drive, at least one partition is required in order to be able to write files to the file system. Different partitions have different filesystem formats, depending on their purpose.</p><p>A disk partition that acts as a swap for main memory will have a different format than the default user-facing file systems. Partitions, like those used for system recovery, also have different formats.</p><h3>Objectives</h3><ul><li>Partition a disk drive into one or more partitions</li><li>Format a partition to a different filesystem format.</li></ul><h3>Partitioning a disk on Windows</h3><p>To view the disk structure of a Windows system and proceed to partition the disk, I:</p><ul><li>Right-clicked the Windows <strong>Start</strong> icon</li><li>Selected <strong>Disk Management</strong> to open the application</li><li>Noticed the VM has access to two disks, one of which contains 49.89GB unallocated space, and is labeled “Offline”</li></ul><figure><img alt="the VM has access to two disks, one of which contains unallocated space, and is labeled “Offline”." src="https://cdn-images-1.medium.com/max/580/0*IUpcCInyPKhxZdkE" /></figure><ul><li>Right clicked on the left part of the unallocated space and selected <strong>Online</strong>. This mounted the disk, and assigned it the drive letter <strong>D—</strong> making it available for partitioning</li></ul><figure><img alt="Image showing the mounted disk, assigned it the drive letter D:\" src="https://cdn-images-1.medium.com/max/578/0*rEbPWpQVjsOKh8c3" /></figure><ul><li>Right clicked on the new D:\ drive and selected <strong>Shrink Volume</strong> from the pop-up menu to shrink out <strong>20,480MB. </strong>This is the first step to creating a new 20GB partition</li></ul><figure><img alt="Created a new 20GB unallocated partition" src="https://cdn-images-1.medium.com/max/535/0*fbMi5dmInaeb89Xf" /></figure><ul><li>Proceeded to format the new partition to complete the process</li><li>Right clicked on it and selected <strong>New Simple Volume</strong> from the pop-up menu</li><li>Selected <strong>Next</strong> at the bottom of the partition configuration wizard that appeared</li></ul><figure><img alt="Partition formatting window pop-up" src="https://cdn-images-1.medium.com/max/581/0*edzkdop_I0cYVAQK" /></figure><ul><li>Accepted the default size on the size setting section so that the new partition takes up the full space.</li><li>Set the drive letter to <strong>E</strong> in the next section</li><li>Selected <strong>NTFS</strong> filesystem format in the next section and left all other settings as default</li><li>Verified that the settings made were correct in the last section and clicked <strong>Finish</strong>.</li></ul><p>With that, the disk partitioning was fully created and all partitions now appear as configured.</p><figure><img alt="The second disk now consists of two partitions: D: and E: of 30GB and 20GB, respectively." src="https://cdn-images-1.medium.com/max/582/0*orNQZSeA4YKFDnD4" /><figcaption>The second disk now consists of two partitions: <strong>D:</strong> and <strong>E:</strong> of 30GB and 20GB, respectively.</figcaption></figure><h3>Formatting a partition</h3><p>I practiced this by changing the filesystem format of the <strong>E</strong> drive partition created earlier. To do this, I:</p><ul><li>Right clicked on the <strong>E </strong>partition, and selected <strong>Format</strong></li><li>Selected <strong>FAT32</strong> from the format list that appeared and clicked <strong>OK</strong></li><li>Clicked OK to dismiss the confirmation alert warning that followed.</li></ul><p>With this, the E partition was successfully formatted to FAT32 and the new format was shown in the disk information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*IbdsebONd_GMpszY" /></figure><h3>Conclusion</h3><p>At the end of this lab, I successfully:</p><ul><li>Created disk partitions on Windows</li><li>Formatted a partition to a different filesystem format.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=021ea37c874a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disk partitioning and formatting in Linux]]></title>
            <link>https://medium.com/@chidubemsamuel/disk-partitioning-and-formatting-in-linux-d6bdb507e15f?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6bdb507e15f</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 21:25:24 GMT</pubDate>
            <atom:updated>2026-07-28T19:55:06.901Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I partitioned and formatted a disk drive on a Linux VM.</h4><figure><img alt="My linux PC disk storage information. Used for reference purposes only. This lab was done on a VM" src="https://cdn-images-1.medium.com/max/960/1*y_GNk6hZ0BoUYT_MUQ4TLQ.png" /><figcaption>My Linux disk storage information.</figcaption></figure><h3>Introduction</h3><p>Disk partitioning and formatting are the essential steps used to prepare a storage drive for use. Partitioning divides a drive into separate logical sections while formatting installs a file system on those sections so that an operating system can communicate with the drive partition.</p><h3>Objectives</h3><ul><li>Partition a disk drive into one or more partitions</li><li>Determine whether block devices are mounted or unmounted</li><li>Format partitions to different file and filesystem formats</li></ul><h3>Understanding disk’s structure</h3><p>First I took time to explore the disk’s current block devices and partitions.</p><p>To view the block devices and partitions on the system, I entered the command:</p><pre>lsblk</pre><p>From the output, there are two block devices (disk) with 12 partitions (part) each. The mounted disk is <strong>sdb</strong>. This is true if a filepath is listed in the <strong>Mountpoint</strong> column. Therefore, <strong>sda</strong> drive is unmounted and inaccessible.</p><pre>NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT<br>sda         8:0    0   10G  0 disk <br>|-sda1      8:1    0  4.9G  0 part <br>|-sda2      8:2    0   16M  0 part <br>|-sda3      8:3    0    2G  0 part <br>|-sda4      8:4    0   16M  0 part <br>|-sda5      8:5    0    2G  0 part <br>|-sda6      8:6    0  512B  0 part <br>|-sda7      8:7    0  512B  0 part <br>|-sda8      8:8    0   16M  0 part <br>|-sda9      8:9    0  512B  0 part <br>|-sda10     8:10   0  512B  0 part <br>|-sda11     8:11   0    8M  0 part <br>`-sda12     8:12   0   32M  0 part <br>sdb         8:16   0   10G  0 disk <br>|-sdb1      8:17   0  5.9G  0 part /etc/hosts<br>|-sdb2      8:18   0   16M  0 part <br>|-sdb3      8:19   0    2G  0 part <br>| `-vroot 253:0    0    2G  1 dm   <br>|-sdb4      8:20   0   16M  0 part <br>|-sdb5      8:21   0    2G  0 part <br>|-sdb6      8:22   0  512B  0 part <br>|-sdb7      8:23   0  512B  0 part <br>|-sdb8      8:24   0   16M  0 part <br>|-sdb9      8:25   0  512B  0 part <br>|-sdb10     8:26   0  512B  0 part <br>|-sdb11     8:27   0    8M  0 part <br>`-sdb12     8:28   0   32M  0 part  </pre><p>To view the mounted disk in readable format, I used the command below:</p><pre>df -h</pre><p>The output shows storage space information for the <strong>sdb</strong> drive since it is the only mounted device:</p><pre>Filesystem      Size  Used Avail Use% Mounted on<br>overlay         5.7G  809M  4.9G  14% /<br>tmpfs            64M     0   64M   0% /dev<br>tmpfs           290M     0  290M   0% /sys/fs/cgroup<br>shm              64M     0   64M   0% /dev/shm<br>/dev/sdb1       5.7G  809M  4.9G  14% /etc/hosts</pre><p>To display more information on the partitions, I used the command below:</p><pre>sudo fdisk -l</pre><p>Seeing a lot of information, I decided to view partitions on the mounted drive alone:</p><pre>sudo fdisk -l /dev/sdb</pre><p>This shows more details on the partitions and their format:</p><pre>Disk /dev/sdb: 10 GiB, 10737418240 bytes, 20971520 sectors<br>Disk model: PersistentDisk  <br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes<br>Disklabel type: gpt<br>Disk identifier: FDF53EEC-3010-3049-B247-42C11C16F682<br><br>Device       Start      End  Sectors  Size Type<br>/dev/sdb1  8704000 20971486 12267487  5.9G Linux filesystem<br>/dev/sdb2    20480    53247    32768   16M ChromeOS kernel<br>/dev/sdb3  4509696  8703999  4194304    2G ChromeOS root fs<br>/dev/sdb4    53248    86015    32768   16M ChromeOS kernel<br>/dev/sdb5   315392  4509695  4194304    2G ChromeOS root fs<br>/dev/sdb6    16448    16448        1  512B ChromeOS kernel<br>/dev/sdb7    16449    16449        1  512B ChromeOS root fs<br>/dev/sdb8    86016   118783    32768   16M Linux filesystem<br>/dev/sdb9    16450    16450        1  512B ChromeOS reserved<br>/dev/sdb10   16451    16451        1  512B ChromeOS reserved<br>/dev/sdb11      64    16447    16384    8M BIOS boot<br>/dev/sdb12  249856   315391    65536   32M EFI System<br><br>Partition 7 does not start on physical sector boundary.<br>Partition 9 does not start on physical sector boundary.<br>Partition 10 does not start on physical sector boundary.<br>Partition table entries are not in disk order.</pre><h3>Partitioning using fdisk</h3><p>To partition the unmounted drive, I started <strong>fdisk</strong> in interactive mode using the command below:</p><pre>sudo fdisk /dev/sda</pre><p>The output shows <strong>fdisk </strong>in interactive mode with some instructions on how to safely use fdisk including the help command:</p><pre>Welcome to fdisk (util-linux 2.33.1).<br>Changes will remain in memory only, until you decide to write them.<br>Be careful before using the write command.<br><br>GPT PMBR size mismatch (18874524 != 20971519) will be corrected by write.<br>The backup GPT table is not on the end of the device. This problem will be corrected by write.<br><br>Command (m for help): </pre><p>I entered the <strong>m</strong> command for help and it returned all commands for safely interacting with fdisk:</p><pre>Command (m for help): m<br><br>Help:<br><br>  GPT<br>   M   enter protective/hybrid MBR<br><br>  Generic<br>   d   delete a partition<br>   F   list free unpartitioned space<br>   l   list known partition types<br>   n   add a new partition<br>   p   print the partition table<br>   t   change a partition type<br>   v   verify the partition table<br>   i   print information about a partition<br><br>  Misc<br>   m   print this menu<br>   x   extra functionality (experts only)<br><br>  Script<br>   I   load disk layout from sfdisk script file<br>   O   dump disk layout to sfdisk script file<br><br>  Save &amp; Exit<br>   w   write table to disk and exit<br>   q   quit without saving changes<br><br>  Create a new label<br>   g   create a new empty GPT partition table<br>   G   create a new empty SGI (IRIX) partition table<br>   o   create a new empty DOS partition table<br>   s   create a new empty Sun partition table<br><br><br>Command (m for help): </pre><p>To free up space so I can create a new partition, I deleted all default partitions in the unmounted <strong>sda</strong> drive using the <strong>d </strong>command. I repeated it until all 12 partitions were deleted.</p><pre>Command (m for help): d<br>Partition number (1-12, default 12):<br><br>Partition 12 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-11, default 11): <br><br>Partition 11 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-10, default 10): <br><br>Partition 10 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-9, default 9): <br><br>Partition 9 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-8, default 8): <br><br>Partition 8 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-7, default 7): <br><br>Partition 7 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-6, default 6): <br><br>Partition 6 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-5, default 5): <br><br>Partition 5 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-4, default 4): <br><br>Partition 4 has been deleted.<br><br>Command (m for help): d<br>Partition number (1-3, default 3): <br><br>Partition 3 has been deleted.<br><br>Command (m for help): d<br>Partition number (1,2, default 2): <br><br>Partition 2 has been deleted.<br><br>Command (m for help): d<br>Selected partition 1<br>Partition 1 has been deleted.<br><br>Command (m for help): </pre><p>To create a new 1GB partition, I:</p><ul><li>Applied the <strong>n</strong> command for creating a new partition</li><li>Pressed <strong>Enter</strong> twice to select default value for <strong>Partition number (1)</strong>and <strong>First sector (2048)</strong></li><li>Type <strong>2097200</strong> as the Last sector value and pressed <strong>Enter</strong></li></ul><p>This created a 1GB partition and automatically assigned “Linux filesystem”.</p><pre>Command (m for help): n<br>Partition number (1-128, default 1): <br>First sector (34-20971486, default 2048): <br>Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-20971486, default 20971486): 2097200<br><br>Created a new partition 1 of type &#39;Linux filesystem&#39; and of size 1023 MiB.<br><br>Command (m for help):</pre><p>I created another partition using the remaining available space. To do this I pressed <strong>Enter</strong> all through after applying the <strong>n</strong> command:</p><pre>Command (m for help): n<br>Partition number (2-128, default 2): <br>First sector (2097201-20971486, default 2099200): <br>Last sector, +/-sectors or +/-size{K,M,G,T,P} (2099200-20971486, default 20971486): <br><br>Created a new partition 2 of type &#39;Linux filesystem&#39; and of size 9 GiB.<br><br>Command (m for help): </pre><p>This created a 9GB partition with default number 2, as well as default first and last sectors. It was also assigned the default Linux filesystem.</p><h3><strong>Changing partition types on Linux</strong></h3><p>To change the first partition to a “Linux swap” type, I:</p><ul><li>Applied the <strong>t</strong> command on fdisk</li><li>Selected the first partition by typing <strong>1</strong> and then pressing <strong>Enter</strong></li><li>Used the command <strong>L</strong> to view a list of all partition types</li><li>Typed 19 to select “Linux swap”</li></ul><pre>Command (m for help): t<br>Partition number (1,2, default 2): 1<br>Partition type (type L to list all types): L<br>  1 EFI System                     C12A7328-F81F-11D2-BA4B-00A0C93EC93B<br>  2 MBR partition scheme           024DEE41-33E7-11D3-9D69-0008C781F39F<br>  3 Intel Fast Flash               D3BFE2DE-3DAF-11DF-BA40-E3A556D89593<br>  4 BIOS boot                      21686148-6449-6E6F-744E-656564454649<br>  5 Sony boot partition            F4019732-066E-4E12-8273-346C5641494F<br>  6 Lenovo boot partition          BFBFAFE7-A34F-448A-9A5B-6213EB736C22<br>  7 PowerPC PReP boot              9E1A2D38-C612-4316-AA26-8B49521E5A8B<br>  8 ONIE boot                      7412F7D5-A156-4B13-81DC-867174929325<br>  9 ONIE config                    D4E6E2CD-4469-46F3-B5CB-1BFF57AFC149<br> 10 Microsoft reserved             E3C9E316-0B5C-4DB8-817D-F92DF00215AE<br> 11 Microsoft basic data           EBD0A0A2-B9E5-4433-87C0-68B6B72699C7<br> 12 Microsoft LDM metadata         5808C8AA-7E8F-42E0-85D2-E1E90434CFB3<br> 13 Microsoft LDM data             AF9B60A0-1431-4F62-BC68-3311714A69AD<br> 14 Windows recovery environment   DE94BBA4-06D1-4D40-A16A-BFD50179D6AC<br> 15 IBM General Parallel Fs        37AFFC90-EF7D-4E96-91C3-2D7AE055B174<br> 16 Microsoft Storage Spaces       E75CAF8F-F680-4CEE-AFA3-B001E56EFC2D<br> 17 HP-UX data                     75894C1E-3AEB-11D3-B7C1-7B03A0000000<br> 18 HP-UX service                  E2A1E728-32E3-11D6-A682-7B03A0000000<br> 19 Linux swap                     0657FD6D-A4AB-43C4-84E5-0933C84B4F4F<br> 20 Linux filesystem               0FC63DAF-8483-4772-8E79-3D69D8477DE4<br> 21 Linux server data              3B8F8425-20E0-4F3B-907F-1A25A76F98E8<br> 22 Linux root (x86)               44479540-F297-41B2-9AF7-D131D5F0458A</pre><p>To save all the changes made so far, I:</p><ul><li>Used the <strong>v</strong> command to verify the changes</li></ul><pre>Command (m for help): v<br>No errors detected.<br>Header version: 1.0<br>Using 2 out of 128 partitions.<br>A total of 4013 free sectors is available in 2 segments (the largest is 1007 KiB).</pre><ul><li>Applied the <strong>w</strong> command to write the changes to the disk</li></ul><pre>Command (m for help): w<br>The partition table has been altered.<br>Calling ioctl() to re-read partition table.<br>Syncing disks.</pre><h3>Formatting partitions using mkfs</h3><p>Next, I formatted the second partition into <strong>ext4</strong>, the most popular Linux filesystem. First, I confirmed that the new partitions are showing well by listing the disk structure on the system:</p><pre>lsblk</pre><p>The output shows that the <strong>sda</strong> drive is showing as partitioned earlier:</p><pre>NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT<br>sda         8:0    0   10G  0 disk <br>|-sda1      8:1    0 1023M  0 part <br>`-sda2      8:2    0    9G  0 part <br>sdb         8:16   0   10G  0 disk <br>|-sdb1      8:17   0  5.9G  0 part /etc/hosts<br>|-sdb2      8:18   0   16M  0 part <br>|-sdb3      8:19   0    2G  0 part <br>| `-vroot 253:0    0    2G  1 dm   <br>|-sdb4      8:20   0   16M  0 part <br>|-sdb5      8:21   0    2G  0 part <br>|-sdb6      8:22   0  512B  0 part <br>|-sdb7      8:23   0  512B  0 part <br>|-sdb8      8:24   0   16M  0 part <br>|-sdb9      8:25   0  512B  0 part <br>|-sdb10     8:26   0  512B  0 part <br>|-sdb11     8:27   0    8M  0 part <br>`-sdb12     8:28   0   32M  0 part </pre><p>I proceeded to format the second partition of the sda drive to ext4 using:</p><pre>sudo mkfs -t ext4 /dev/sda2</pre><p>Output:</p><pre>mke2fs 1.44.5 (15-Dec-2018)<br>Discarding device blocks: done                            <br>Creating filesystem with 2359035 4k blocks and 589824 inodes<br>Filesystem UUID: 3e68d65f-3029-4232-8f45-b924de3862bd<br>Superblock backups stored on blocks: <br>        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632<br><br>Allocating group tables: done                            <br>Writing inode tables: done                            <br>Creating journal (16384 blocks): done<br>Writing superblocks and filesystem accounting information: done </pre><p>After that, I mounted sda2 on the <strong>/home/my_drive</strong> directory:</p><pre>sudo mount /dev/sda2 /home/my_drive</pre><p>I verified the success using <strong>lsblk. </strong>The output shows that sda2 is mounted:</p><pre>NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT<br>sda         8:0    0   10G  0 disk <br>|-sda1      8:1    0 1023M  0 part <br>`-sda2      8:2    0    9G  0 part /home/my_drive<br>sdb         8:16   0   10G  0 disk <br>|-sdb1      8:17   0  5.9G  0 part /etc/hosts<br>|-sdb2      8:18   0   16M  0 part <br>|-sdb3      8:19   0    2G  0 part <br>| `-vroot 253:0    0    2G  1 dm   <br>|-sdb4      8:20   0   16M  0 part <br>|-sdb5      8:21   0    2G  0 part <br>|-sdb6      8:22   0  512B  0 part <br>|-sdb7      8:23   0  512B  0 part <br>|-sdb8      8:24   0   16M  0 part <br>|-sdb9      8:25   0  512B  0 part <br>|-sdb10     8:26   0  512B  0 part <br>|-sdb11     8:27   0    8M  0 part <br>`-sdb12     8:28   0   32M  0 part </pre><h3>Conclusion</h3><p>At the end of this lab, I successfully:</p><ul><li>Created partitions on Linux</li><li>Formatted partitions to specific types and filesystems</li><li>Mounted a partition onto accessible locations in Linux.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6bdb507e15f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Process maintenance on Windows]]></title>
            <link>https://medium.com/@chidubemsamuel/process-maintenance-on-windows-1927aa568c56?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/1927aa568c56</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 11:21:39 GMT</pubDate>
            <atom:updated>2026-07-27T11:21:39.823Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I practiced maintaining processes through PowerShell on a Windows virtual machine.</h4><figure><img alt="Windows logo from Logo.wine" src="https://cdn-images-1.medium.com/max/547/0*f6rlzclHEgEEcBA8" /><figcaption>Windows logo by Logo.wine</figcaption></figure><h3>Introduction</h3><p>Processes are active, running instances of a program. They have unique IDs (PID), own memory spaces, and assigned system resources.</p><h3>Objective</h3><ul><li>Collect process information using the Task Viewer</li><li>Terminate a specific process using Windows PowerShell</li><li>Terminate multiple processes using Windows PowerShell</li></ul><p>On Windows, information on running processes can be gotten from the graphical interface through the <strong>Task Viewer</strong> application.</p><h3>Terminating a specific process</h3><p>To do this, I opened the Windows PowerShell terminal in <strong>Administrative</strong> mode. From there I used the following command to reveal the super long list of running processes:</p><pre>Get-Process</pre><p>Since it was too long to read or spot suspicious processes, I searched for a specific malicious process which was found through the logs:</p><pre>Get-Process -Name &quot;totally_not_malicious&quot;</pre><p>The output shows a process with the id 7164:</p><pre>Handles  NPM(K)  PM(K)   WS(K)  CPU(s)   Id   SI ProcessName<br>-------  ------  -----   -----  ------   --   -- -----------<br>    209      14   2724   10996  271.06   7164  1 totally_not_malicious</pre><p>To end the process, I paired the command below with the process id:</p><pre>taskkill /F /PID 7164</pre><p>Output:</p><pre>SUCCESS: The process with PID 7164 has been terminated.</pre><p>To verify that the malicious process is no longer running, I searched for it again using the same command that found it. It returned an error showing that the process does not exist.</p><pre>Get-Process : Cannot find a process with the name &quot;totally_not_malicious&quot;. Verify the process name and call the cmdlet<br>again.<br>At line:1 char:1<br>+ Get-Process -Name &quot;totally_not_malicious&quot;<br>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>    + CategoryInfo          : ObjectNotFound: (totally_not_malicious:String) [Get-Process], ProcessCommandException<br>    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand</pre><h3>Terminate multiple processes</h3><p>There were also multiple unwanted processes containing the word “razzle” also running on the VM. To find them, I added “wildcards” asterisks to the command:</p><pre>Get-Process -Name &quot;*razzle*&quot;</pre><p>This returned two processes containing “razzle” in the names.</p><pre>Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName<br>-------  ------    -----      -----     ------     --  -- -----------<br>    209      14     2784      11028     572.89   2120   1 my_cat_razzle<br>    209      14     2824      11036     572.83   7052   1 razzle_dazzle</pre><p>I terminated these processes one after another using the <strong>taskkill</strong> command and their PIDs same way I ended the malicious process earlier. Then, I confirmed they no longer exist using same command that found them.</p><h3>Conclusion</h3><p>With that, I successfully:</p><ul><li>Searched specific processes using <strong>Get-Process </strong>and other parameters.</li><li>Terminated processes on Windows PowerShell using <strong>taskkill</strong> command.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1927aa568c56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Process maintenance on Linux]]></title>
            <link>https://medium.com/@chidubemsamuel/process-maintenance-on-linux-d6e871fa5d74?source=rss-225f8b923054------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6e871fa5d74</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Samuel Orji]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 18:30:47 GMT</pubDate>
            <atom:updated>2026-07-26T18:30:47.717Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this lab, I used special commands to efficiently maintain processes on a Linux virtual machine.</h4><figure><img alt="Linux logo and mascot — Tux the penguin" src="https://cdn-images-1.medium.com/max/700/0*4HrN7peSxcW59nAa" /><figcaption>Linux logo</figcaption></figure><h3>Introduction</h3><p>A process is an active, running instance of a program. It has a unique process ID (PID), memory space, and assigned system resources.</p><h4>Objective</h4><ul><li>List processes on a Linux machine</li><li>Manage processes on Linux</li></ul><h3>Terminate unwanted processes</h3><p>To do this, I started by listing all currently running processes using:</p><pre>ps -aux</pre><p>This made finding a specific process very tough. I decided to search for the two suspicious processes found through logs named <strong>totally_not_malicious</strong>. I used this command:</p><pre>ps -aux | grep &quot;totally_not_malicious&quot;</pre><p>From the output, the two lines below are the two malicious processes:</p><pre>root              315  0.0  0.0   7232   520 ?             S     15:29   0:00 sudo nohup bash /home/totally_not_malicious<br>root              320  0.0  0.1   3652   892 ?             S     15:29   0:00 bash /home/totally_not_malicious</pre><p>I stopped the two processes using the kill command and their PID (specified in the second column above) like this:</p><pre>sudo kill 315<br>sudo kill 320</pre><p>After this action, I verified that the processes no longer exist using the same command that exposed them.</p><p>To terminate multiple processes, same command is entered one after another along with the id for each process.</p><h3>Conclusion</h3><p>At the end of this lab, I successfully:</p><ul><li>Listed processes using the <strong>ps</strong> command</li><li>Filtered for specific processes using <strong>|</strong> and <strong>grep.</strong></li><li>Terminated unwanted processes using the <strong>kill</strong> command.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6e871fa5d74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>