<?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 hamza malik on Medium]]></title>
        <description><![CDATA[Stories by hamza malik on Medium]]></description>
        <link>https://medium.com/@hamzajjmalik?source=rss-a56b1ff734b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7xwVlnsxBDd2BvHFnyE1-A.jpeg</url>
            <title>Stories by hamza malik on Medium</title>
            <link>https://medium.com/@hamzajjmalik?source=rss-a56b1ff734b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:31:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hamzajjmalik/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[Mastering Essential Linux Commands for DevOps Engineers]]></title>
            <link>https://blog.devops.dev/mastering-essential-linux-commands-for-devops-engineers-1535b0bb3202?source=rss-a56b1ff734b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1535b0bb3202</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[hamza malik]]></dc:creator>
            <pubDate>Sun, 28 Apr 2024 22:41:02 GMT</pubDate>
            <atom:updated>2024-04-30T17:30:54.104Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong></p><p>Efficiency and proficiency are essential in the dynamic landscape of DevOps. As cloud technologies continue to evolve, mastering essential Linux commands becomes increasingly crucial for DevOps engineers. This article serves as a comprehensive guide, delving into a myriad of Linux commands essential for effective system management and troubleshooting. Whether you’re navigating AWS environments, automating infrastructure with Terraform, or optimizing workflows with CI/CD pipelines, this guide provides the insights and practical knowledge to excel in your DevOps journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65a2s4xLCVOnkGLzJwy7Sg.jpeg" /></figure><p><strong>System Information Commands:</strong></p><p>Let’s start by exploring commands that help us gather vital system information:</p><ul><li>lscpu: Display CPU architecture information.</li><li>lsusb: List USB devices.</li><li>lsmod: Show the status of modules in the Linux Kernel.</li><li>lshw: List hardware configuration.</li><li>uptime: Show how long the system has been running.</li><li>df: Display disk space usage statistics.</li><li>free: Display amount of free and used memory in the system.</li><li>cat /etc/os-release: Show information about the operating system.</li><li>ps: Display information about active processes.</li><li>top: Display and manage the top processes in real-time.</li></ul><p><em>Example:</em><br>To check the CPU architecture of your system, run the command:</p><pre>lscpu</pre><p>This will provide detailed information about the CPU, including its architecture, cores, and more.</p><p><strong>Networking Commands:</strong></p><p>Networking plays a crucial role in modern DevOps environments. Let’s explore more commands:</p><ul><li>iptraf: Interactive color-based IP LAN monitor.</li><li>iftop: Display bandwidth usage on an interface.</li><li>nload: Monitor network traffic bandwidth usage.</li><li>mtr: Combines the functionality of traceroute and ping.</li><li>netcat: Utility for reading from and writing to network connections.</li><li>ss: Display socket statistics.</li><li>arp: Display and modify the ARP cache.</li><li>route: Display or manipulate the IP routing table.</li><li>tcpdump: Capture and analyze network packets.</li><li>netstat: Display network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.</li></ul><p><em>Example:</em><br>To monitor network traffic bandwidth usage, use the command:</p><pre>nload</pre><p>This will display a real-time graph of incoming and outgoing traffic for each network interface.</p><p><strong>Performance Monitoring and Statistics:</strong></p><p>Monitoring system performance is essential for ensuring optimal operation:</p><ul><li>sar: Collect, report, or save system activity information.</li><li>atop: Advanced interactive process viewer.</li><li>htop: Interactive process viewer.</li><li>dstat: Versatile resource statistics tool.</li><li>iostat: Report CPU statistics and input/output statistics for devices and partitions.</li><li>vmstat: Report virtual memory statistics.</li><li>pidstat: Report statistics for Linux tasks (processes) and all their threads.</li><li>sar -n DEV: Display network statistics.</li></ul><p><em>Example:</em><br>To monitor CPU usage and disk I/O in real-time, use the command:</p><pre>htop</pre><p>This will provide an interactive view of CPU and memory usage, as well as a list of running processes.</p><p>User Information and Management: Managing users and groups is a fundamental aspect of system administration:</p><ul><li>sudo: Execute a command as another user.</li><li>groups: Display group membership.</li><li>chgrp: Change file group ownership.</li><li>usermod: Modify a user account.</li><li>passwd: Change user password.</li><li>id: Display user and group information.</li><li>who: Show who is logged on.</li><li>su: Run a command with substitute user and group ID.</li><li>useradd: Create a new user account.</li><li>userdel: Delete a user account.</li><li>passwd -l: Lock a user account.</li></ul><p><em>Example:</em><br>To add a new user to the system, use the command:</p><pre>sudo useradd -m newuser</pre><p>This will create a new user account and a home directory for the user.</p><p><strong>File and Directory Commands:</strong></p><p>File and directory management is another critical aspect of system administration:</p><ul><li>chmod: Change file mode bits.</li><li>chown: Change file owner and group.</li><li>du: Estimate file space usage.</li><li>fdisk: Manipulate disk partition table.</li><li>find: Search for files in a directory hierarchy.</li><li>grep: Search for patterns in files.</li><li>tar: Manipulate tape archives.</li><li>zip/unzip: Package and compress files.</li><li>rsync: Efficient file synchronization.</li><li>scp: Secure file copy.</li></ul><p><em>Example:</em><br>To search for a file named “example.txt” in the current directory and its subdirectories, use the command:</p><pre>find . -name &quot;example.txt</pre><p>This will return the path to the file if it exists.</p><p><strong>Conclusion:</strong></p><p>Mastering essential Linux commands is a foundational skill for DevOps engineers. By understanding how to gather system information, troubleshoot network issues, monitor performance, manage users and files, we can effectively streamline our workflow and enhance our productivity. As we continue to navigate the complexities of modern IT environments, these commands serve as invaluable tools in our arsenal. So, roll up your sleeves, dive into the command line, and unleash the power of Linux in your DevOps journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1535b0bb3202" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/mastering-essential-linux-commands-for-devops-engineers-1535b0bb3202">Mastering Essential Linux Commands for DevOps Engineers</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>