<?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: Priyanka</title>
    <description>The latest articles on DEV Community by Priyanka (@nandhureddy95).</description>
    <link>https://dev.to/nandhureddy95</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2813668%2Fad7fdff3-b367-45c2-a5b3-71b6894bb774.png</url>
      <title>DEV Community: Priyanka</title>
      <link>https://dev.to/nandhureddy95</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nandhureddy95"/>
    <language>en</language>
    <item>
      <title>Linux for DevOps</title>
      <dc:creator>Priyanka</dc:creator>
      <pubDate>Mon, 17 Mar 2025 09:52:21 +0000</pubDate>
      <link>https://dev.to/nandhureddy95/linux-for-devops-8ph</link>
      <guid>https://dev.to/nandhureddy95/linux-for-devops-8ph</guid>
      <description>&lt;h1&gt;
  
  
  Linux for DevOps Engineers: Essential Guide
&lt;/h1&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Linux is the backbone of modern DevOps engineering. Whether you're managing servers, automating deployments, or troubleshooting infrastructure, Linux skills are essential. This guide covers Linux commands and tasks from &lt;strong&gt;basic to expert level&lt;/strong&gt;, helping you navigate system administration, security, automation, and cloud environments.&lt;/p&gt;

&lt;p&gt;Linux Commands for DevOps Engineers&lt;br&gt;
System Monitoring &amp;amp; Performance&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;top - Display real-time system resource usage&lt;/li&gt;
&lt;li&gt;htop - Interactive process viewer&lt;/li&gt;
&lt;li&gt;uptime - Show system uptime&lt;/li&gt;
&lt;li&gt;free -m - Display memory usage&lt;/li&gt;
&lt;li&gt;df -h - Show disk space usage&lt;/li&gt;
&lt;li&gt;du -sh  - Get directory size&lt;/li&gt;
&lt;li&gt;iostat - CPU and I/O statistics
Process Management&lt;/li&gt;
&lt;li&gt;ps aux - List running processes&lt;/li&gt;
&lt;li&gt;kill  - Terminate a process&lt;/li&gt;
&lt;li&gt;pkill -9  - Kill process by name&lt;/li&gt;
&lt;li&gt;nohup  &amp;amp; - Run command in the background&lt;/li&gt;
&lt;li&gt;jobs - List background processes&lt;/li&gt;
&lt;li&gt;fg %1 - Bring job to foreground
Networking&lt;/li&gt;
&lt;li&gt;ip a - Show IP addresses&lt;/li&gt;
&lt;li&gt;netstat -tulnp - Show open ports&lt;/li&gt;
&lt;li&gt;ss -tulnp - Alternative to netstat&lt;/li&gt;
&lt;li&gt;ping  - Check connectivity&lt;/li&gt;
&lt;li&gt;curl -I  - Get HTTP headers&lt;/li&gt;
&lt;li&gt;wget  - Download file&lt;/li&gt;
&lt;li&gt;traceroute  - Trace network path
User &amp;amp; Permission Management&lt;/li&gt;
&lt;li&gt;whoami - Show current user&lt;/li&gt;
&lt;li&gt;id - Show user ID and groups&lt;/li&gt;
&lt;li&gt;sudo su -  - Switch user&lt;/li&gt;
&lt;li&gt;chmod 755  - Change file permissions&lt;/li&gt;
&lt;li&gt;chown user:group  - Change file owner
File &amp;amp; Directory Operations&lt;/li&gt;
&lt;li&gt;ls -lah - List files with details&lt;/li&gt;
&lt;li&gt;cp -r   - Copy directories&lt;/li&gt;
&lt;li&gt;mv   - Move or rename files&lt;/li&gt;
&lt;li&gt;rm -rf  - Remove directory&lt;/li&gt;
&lt;li&gt;find /path -name "file.txt" - Search file by name&lt;/li&gt;
&lt;li&gt;grep "pattern" file.txt - Search inside files
Package Management&lt;/li&gt;
&lt;li&gt;apt update &amp;amp;&amp;amp; apt upgrade -y - Update (Debian/Ubuntu)&lt;/li&gt;
&lt;li&gt;yum update -y - Update (RHEL/CentOS)&lt;/li&gt;
&lt;li&gt;dnf install  - Install package (Fedora)
Log Management&lt;/li&gt;
&lt;li&gt;tail -f /var/log/syslog - View live logs&lt;/li&gt;
&lt;li&gt;journalctl -xe - View system logs
SSH &amp;amp; Remote Access&lt;/li&gt;
&lt;li&gt;ssh user@host - Connect via SSH&lt;/li&gt;
&lt;li&gt;scp file user@host:/path - Copy file via SSH&lt;/li&gt;
&lt;li&gt;rsync -avz   - Sync files&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Practical Challenges &amp;amp; Solutions
&lt;/h2&gt;

&lt;p&gt;Challenge 1: System Monitoring &amp;amp; Optimization&lt;br&gt;
Q1: How do you find the process consuming the most CPU?&lt;br&gt;
 Use top or htop and check the column with the highest CPU usage.&lt;br&gt;
Q2: How do you check free memory on a system?&lt;br&gt;
 Run free -m to see available and used memory.&lt;br&gt;
Q3: How do you determine which directory is consuming the most space?&lt;br&gt;
 Use du -sh * | sort -hr to sort directories by size.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Challenge 2: Process &amp;amp; Job Management&lt;/strong&gt;&lt;br&gt;
Q1: How do you list all running processes?&lt;br&gt;
Solution: Run ps aux to view all active processes.&lt;br&gt;
Q2: How do you kill a process by its name?&lt;br&gt;
Solution: Use pkill -9  to terminate it.&lt;br&gt;
Q3: How do you bring a background job to the foreground?&lt;br&gt;
Solution: Use fg % to move the job to the foreground.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Challenge 3: Networking &amp;amp; Connectivity&lt;/strong&gt;&lt;br&gt;
Q1: How do you find the system's IP address?&lt;br&gt;
Solution: Run ip a to display network interfaces and their IP addresses.&lt;br&gt;
Q2: How do you check which ports are open?&lt;br&gt;
Solution: Use netstat -tulnp or ss -tulnp to list listening ports.&lt;br&gt;
Q3: How do you download a file from the internet?&lt;br&gt;
Solution: Use wget  or curl -O .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Challenge 4: User &amp;amp; File Permissions&lt;/strong&gt;&lt;br&gt;
Q1: How do you create a new user and switch to it?&lt;br&gt;
 Run sudo useradd  and then su - .&lt;br&gt;
Q2: How do you give a file read, write, and execute permissions for its owner?&lt;br&gt;
 Use chmod 700  to set the correct permissions.&lt;br&gt;
Q3: How do you change the ownership of a file?&lt;br&gt;
 Run chown user:group  to assign a new owner.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Challenge 5: Remote Access &amp;amp; File Transfer&lt;/strong&gt;&lt;br&gt;
Q1: How do you connect to a remote server using SSH?&lt;br&gt;
 Use ssh &lt;a href="mailto:user@host"&gt;user@host&lt;/a&gt;.&lt;br&gt;
Q2: How do you securely transfer a file to a remote server?&lt;br&gt;
 Use scp  user@host:/path.&lt;br&gt;
Q3: How do you synchronize a local directory with a remote one?&lt;br&gt;
 Run rsync -avz   to copy only changes.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>kubernetes</category>
      <category>docker</category>
      <category>terraform</category>
    </item>
  </channel>
</rss>
