<?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 Ravindra Singh on Medium]]></title>
        <description><![CDATA[Stories by Ravindra Singh on Medium]]></description>
        <link>https://medium.com/@robinthakur7723?source=rss-e054cf19803c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BbFMBRSDCFg5pQqWa5vxuA@2x.jpeg</url>
            <title>Stories by Ravindra Singh on Medium</title>
            <link>https://medium.com/@robinthakur7723?source=rss-e054cf19803c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 18:13:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@robinthakur7723/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[Linux Tips & Trick]]></title>
            <link>https://medium.com/@robinthakur7723/linux-tips-trick-ec92a3eb748e?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec92a3eb748e</guid>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 10:13:19 GMT</pubDate>
            <atom:updated>2025-10-09T10:13:19.599Z</atom:updated>
            <content:encoded><![CDATA[<p>🧹 Master Linux Like a Pro: Delete Files Smartly! ⚙️</p><p>You can delete all files whose names start with E in Linux using the rm command with a wildcard (*).</p><p>Here’s the basic command 👇</p><pre> rm E*</pre><p>📘 Explanation:</p><p>rm → remove (delete) command</p><p>E* → means any file starting with “E”, followed by any number of characters</p><p>---</p><p>⚠️ Be Careful!</p><p>This will delete all matching files in the current directory without asking for confirmation.<br>To confirm each file before deleting:</p><pre>rm -i E*</pre><p>💡 If you only want to delete files (not folders):</p><pre>find . -maxdepth 1 -type f -name &#39;E*&#39; -delete</pre><p>🧹 If you want to delete from all subdirectories too:</p><pre>find . -type f -name &#39;E*&#39; -delete</pre><p><strong>Thanks 🙏</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec92a3eb748e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ What is LTRC in SAP?]]></title>
            <link>https://medium.com/@robinthakur7723/what-is-ltrc-in-sap-5ea516149bc7?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ea516149bc7</guid>
            <category><![CDATA[slt]]></category>
            <category><![CDATA[sapiens]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 07:02:19 GMT</pubDate>
            <atom:updated>2025-10-08T07:02:19.186Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>LTRC</strong> is the <strong>monitoring and administration cockpit</strong> for SLT. It&#39;s used for <strong>real-time replication</strong> of data from a source system (like Oracle or SAP ERP) to a target system (typically SAP HANA or SAP BW).</p><p>T-Code → LTRC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLxwtf8_wkTbWCAbVJydbw.png" /></figure><h3>📌 Key Features of LTRC</h3><p>🟢 <strong>Monitor Replication Status→ </strong>See if each Mass Transfer (replication config) is running, stopped, or has errors.</p><p>⚙️ <strong>Activate/Deactivate Replication → </strong>Start or stop replication for specific Mass Transfer IDs.</p><p>📋 <strong>View Logs → </strong>Review application and system logs related to replication.</p><p>🔍 <strong>Detailed Object View → </strong>See replication status at table level — like load status, replication latency, etc.</p><p>🧹 <strong>Reset/Reload Tables → </strong>You can reinitialize replication for individual tables or all objects in a Mass Transfer ID.</p><p>🧠 Tips and Best Practices<br><strong>Use health check regularly</strong> to detect silent failures.<br><strong>Monitor latency</strong> to ensure near real-time replication.<br><strong>Log retention</strong>: Be cautious of logs growing too large. Clean up when needed.<br><strong>Don’t overload</strong> SLT with large initial loads during peak hours, it can impact performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ea516149bc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top most asked commands in Linux administration interviews]]></title>
            <link>https://medium.com/@robinthakur7723/top-most-asked-commands-in-linux-administration-interviews-b460a5abf042?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b460a5abf042</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[administration]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 06:45:41 GMT</pubDate>
            <atom:updated>2024-09-23T06:45:41.488Z</atom:updated>
            <content:encoded><![CDATA[<h3>File System and Disk Management</h3><pre>ls: List directory contents<br>ls -a (for hidden folders starting with . )</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*p9h89bfBLUIqqa-rBF3kyw.png" /></figure><pre>df: Display disk space usage<br><br>df -h</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*yrpwWA7jbv9iPYpOYPFJhw.png" /></figure><p><strong>du</strong>: Check file or directory size</p><pre>du -sh /home/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*_9FF3ocSDKkBVTy20qQ1Vg.png" /></figure><p><strong>lsblk</strong>: List block devices (disks)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*2VA5_EjK2tgciqqV2-gyWA.png" /></figure><h3>File and Directory Permissions</h3><p><strong>chmod</strong>: Change file permissions</p><pre>chmod 755 script.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*QjOJ_P6fICOgwa3lfHQ3dw.png" /></figure><p><strong>chown</strong>: Change file owner and group</p><pre>chown user:usergroup file.txt</pre><p><strong>umask</strong>: Display or set default file permissions</p><pre>umask 022</pre><h3>Process Management</h3><p><strong>ps</strong>: View running processes</p><pre>ps aux</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*N8nKmRe4n0rldnFwEKtgDw.png" /></figure><p><strong>top</strong> / <strong>htop</strong>: Monitor system resource usage</p><pre>top</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*PdurJP7PgmnrYwEWecHDmg.png" /></figure><p><strong>kill / </strong><strong>killall</strong>: Terminate processes</p><pre>kill -9 &lt;PID&gt;<br>killall nginx</pre><p><strong>nice / </strong><strong>renice</strong>: Change process priority</p><pre>nice -n 10 ./script.sh<br>renice -n 5 -p &lt;PID&gt;</pre><p><strong>strace</strong>: Trace system calls</p><pre>strace -p &lt;PID&gt;<br>#&lt;PID&gt; : Process ID</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*Ga14lIeUkiiUaXaG227QvQ.png" /></figure><h3>Network Troubleshooting</h3><p><strong>ping</strong>: Check connectivity to a host</p><pre>ping www.google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*2_huxoSUI5e3DNVenulWFg.png" /></figure><p><strong>ifconfig</strong> / <strong>ip a</strong>: Display network interfaces</p><pre>ip a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nlpw9f946gh54NKxAblYaA.png" /></figure><p><strong>netstat / </strong><strong>ss</strong>: Display network connections and open ports</p><pre>ss -tuln</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KyxwEQZI7IrmUbMQqEYmTA.png" /></figure><p><strong>traceroute</strong>: Trace the path to a host</p><pre>traceroute google.com</pre><p><strong>nslookup / </strong><strong>dig</strong>: DNS lookup for domain name resolution</p><pre>nslookup google.com<br>dig google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X6yzgiknJb3sgIFhZsdCmQ.png" /></figure><p><strong>nmap</strong>: Scan open ports on a network</p><pre>nmap &lt;Ip Address&gt;</pre><h3>User Management</h3><p><strong>useradd / </strong><strong>userdel</strong>: Add or delete a user</p><pre>sudo useradd username<br>sudo userdel username</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*XNR59safsRdiFN0lKySj3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkUYEuVzovohUfUqoO9Q9w.png" /></figure><p><strong>usermod</strong>: Modify user account</p><pre>sudo usermod -aG sudo username</pre><p><strong>passwd</strong>: Change user password</p><pre>passwd username</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4EtWRTcK_KXmpJhu1exzQ.png" /></figure><p><strong>groupadd / </strong><strong>groupdel</strong>: Add or delete a group</p><pre>sudo groupadd groupname <br>sudo groupdel groupname</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*R7La5DEtEeB1qVJ6S7kHQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*2nmsR_F_Uower0_UwkR2eQ.png" /><figcaption>Group Crreated</figcaption></figure><h3>System Monitoring and Logging</h3><p><strong>dmesg</strong>: View kernel messages</p><pre>dmesg | tail</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*MGVfcZ2uFxZxBIIQrhWrFg.png" /></figure><p><strong>journalctl</strong>: View systemd logs</p><pre>journalctl -xe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4YMvbeO8gx6D1Y2IgELIQ.png" /></figure><p><strong>uptime</strong>: Display how long the system has been running</p><pre>uptime</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*96UKgRMjsBU-8crvDoTAVQ.png" /></figure><p><strong>free</strong>: Display memory usage</p><pre>free -h</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*0r0APwTtE4dCWckbdslQfw.png" /></figure><p><strong>vmstat</strong>: Report virtual memory statistics</p><pre>vmstat 1 5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*8picvCHdWTP7S7NHa96lyg.png" /></figure><h3>Package Management</h3><p><strong>apt / </strong><strong>yum</strong>: Install and manage packages</p><pre>sudo apt update &amp;&amp; sudo apt install nginx<br>sudo yum install httpd</pre><p><strong>dpkg</strong>: Package management for Debian-based systems</p><pre>dpkg -l</pre><p><strong>rpm</strong>: Package management for Red Hat-based systems</p><pre>rpm -qa </pre><h3>Archiving and Compression</h3><p><strong>tar</strong>: Archive and extract files</p><pre>tar -cvf archive.tar file1 file2<br>tar -xvf archive.tar</pre><p><strong>gzip / </strong><strong>gunzip</strong>: Compress or decompress files</p><pre>gzip file.txt<br>gunzip file.txt.gz</pre><h3>System and Service Management</h3><p><strong>systemctl</strong>: Manage systemd services</p><pre>systemctl start nginx<br>systemctl stop nginx<br>systemctl restart nginx<br>systemctl status nginx</pre><p><strong>service</strong>: Older systems for managing services</p><pre>service apache2 status</pre><p><strong>shutdown / </strong><strong>reboot</strong>: Shutdown or restart the system</p><pre>sudo shutdown now<br>sudo reboot</pre><h3>Backup and Recovery</h3><p><strong>rsync</strong>: Synchronize files and directories</p><pre>rsync -av /source/ /destination/</pre><p><strong>crontab</strong>: Schedule jobs</p><pre>crontab -e</pre><h4>By understanding and practicing these commands, you’ll be well-prepared for most Linux administration interview scenarios.</h4><h3>👋 If you find this helpful, please click the clap 👏</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b460a5abf042" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aws services purely used for DevOps]]></title>
            <link>https://medium.com/@robinthakur7723/aws-services-purely-used-for-devops-aed82ceb251d?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/aed82ceb251d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[aws-cli]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cicd]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Sat, 14 Sep 2024 14:08:11 GMT</pubDate>
            <atom:updated>2024-09-14T14:08:11.656Z</atom:updated>
            <content:encoded><![CDATA[<h4>AWS offers several services that are ideal for DevOps practices, enabling automation, continuous integration/continuous delivery (CI/CD), monitoring, and more. Key AWS services used for DevOps include</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*YoSMcNmQmjZsbPGrRFVXUA.png" /></figure><ol><li>AWS CodePipeline: Automates the CI/CD process, allowing for fast and reliable updates to applications and infrastructure.</li></ol><pre>Create a pipeline<br><br>aws codepipeline create-pipeline — pipeline &lt;pipeline-file&gt;</pre><p>2. AWS CodeBuild: A fully managed build service that compiles source code, runs tests, and produces ready-to-deploy software packages.<br>3. AWS CodeDeploy: Automates code deployment to any instance, including Amazon EC2 instances, AWS Lambda, and on-premises servers.</p><pre>Start a build<br><br>aws codebuild start-build — project-name &lt;project-name&gt;</pre><p>3. AWS CodeDeploy: Automates code deployment to any instance, including Amazon EC2 instances, AWS Lambda, and on-premises servers.</p><pre>AWS CodeDeploy<br><br>aws deploy create-deployment — application-name &lt;app-name&gt; — deployment-group-name &lt;group-name&gt; — s3-location bucket=&lt;bucket-name&gt;,bundleType=&lt;zip&gt;,key=&lt;key&gt;</pre><p>4. AWS CodeCommit: A fully managed source control service that makes it easy for teams to host secure Git repositories.</p><pre>AWS CodeCommit<br><br>aws codecommit create-repository — repository-name &lt;repo-name&gt;</pre><p>5. AWS Elastic Beanstalk: A service for deploying and scaling web applications and services developed in various languages.</p><pre>Deploy an application<br><br>eb create &lt;environment-name&gt;</pre><p>6. Amazon EC2: Provides resizable compute capacity in the cloud, perfect for running development, testing, and production environments.</p><pre>Launch an instance<br><br>aws ec2 run-instances — image-id &lt;ami-id&gt; — instance-type &lt;instance-type&gt; — key-name &lt;key-pair&gt;</pre><p>7. Amazon ECS (Elastic Container Service): A highly scalable container orchestration service that makes it easy to run, stop, and manage containers.</p><pre>Create a cluster<br><br>aws ecs create-cluster — cluster-name &lt;cluster-name&gt;</pre><p>8. Amazon EKS (Elastic Kubernetes Service): Allows you to run Kubernetes on AWS without needing to install or manage the control plane.</p><pre>Amazon EKS (Elastic Kubernetes Service)<br><br>aws eks create-cluster — name &lt;cluster-name&gt; — role-arn &lt;role-arn&gt; — resources-vpc-config subnetIds=&lt;subnet-ids&gt;,securityGroupIds=&lt;sg-ids&gt;</pre><p>9. AWS Lambda: Serverless compute service that allows you to run code in response to events without provisioning or managing servers.</p><pre>Create a function<br><br>aws lambda create-function — function-name &lt;function-name&gt; — runtime &lt;runtime&gt; — role &lt;role-arn&gt; — handler &lt;handler-name&gt; — zip-file fileb://&lt;zip-file-path&gt;</pre><p>10. AWS CloudFormation: Provides infrastructure as code, enabling you to model and provision AWS and third-party application resources.</p><pre>Create a stack<br><br>aws cloudformation create-stack — stack-name &lt;stack-name&gt; — template-body file://&lt;template-file&gt;</pre><p>11. AWS OpsWorks: A configuration management service that provides managed instances of Chef and Puppet.</p><pre>Create a stack<br><br>aws opsworks create-stack — name &lt;stack-name&gt; — region &lt;region&gt;</pre><p>12. Amazon CloudWatch: Provides monitoring and logging services for AWS resources and applications, key for performance and operational visibility.</p><pre>Create a log Group <br><br>aws logs create-log-group — log-group-name &lt;log-group-name&gt;</pre><p>13. AWS Systems Manager: Centralized management service for managing infrastructure and applications, improving security and monitoring.</p><pre>Run a Command <br><br>aws ssm send-command — instance-ids &lt;instance-id&gt; — document-name &lt;document-name&gt;</pre><p>14. AWS X-Ray: Helps with debugging and analyzing applications, providing a view into the performance of microservices.</p><pre>Create a group for traces<br><br>aws xray create-group — group-name &lt;group-name&gt; — filter-expression &lt;expression&gt;</pre><p>15. AWS Step Functions: Provides orchestration for serverless microservices, automating workflows and integrating different AWS services.</p><pre>Create a state machine<br><br>aws stepfunctions create-state-machine — name &lt;state-machine-name&gt; — definition &lt;definition-json&gt; — role-arn &lt;role-arn&gt;</pre><p>These services streamline the DevOps lifecycle, providing automation, collaboration, monitoring, and scalability.</p><h3>👋 If you find this helpful, please click the clap 👏</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aed82ceb251d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Easily Find and Remove Duplicate Files in Linux ]]></title>
            <link>https://medium.com/@robinthakur7723/how-to-easily-find-and-remove-duplicate-files-in-linux-099a7316bea8?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/099a7316bea8</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Fri, 13 Sep 2024 16:10:38 GMT</pubDate>
            <atom:updated>2024-09-13T16:10:38.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WySzYD7PaZjz6iUaB_rxCg.jpeg" /></figure><p>Finding duplicate files on your Linux system can free up valuable disk space and improve performance.</p><h4>Why Should You Remove Duplicate Files?</h4><ul><li><strong>Free up disk space:</strong> Over time, duplicated files can take up a significant amount of storage.</li><li><strong>Keep things organized:</strong> Avoid confusion and make sure you’re always working with the most recent version of your files.</li><li><strong>Improve performance:</strong> Fewer files mean faster search times and system performance.</li></ul><h4>Tools to Find Duplicate Files in Linux</h4><p><strong>fdupes</strong> — A powerful tool specifically for finding duplicate files.<br><strong>find</strong> and <strong>md5sum</strong> — Built-in Linux commands to manually check for duplicates.</p><h4>Using fdupes</h4><p>The fdupes tool compares file sizes, MD5 checksums, and then byte-by-byte comparison to find duplicates. It’s quick, reliable, and simple to use.</p><p>Install fdupes</p><pre>sudo yum install epel-release<br>sudo yum install fdupes</pre><h4>Find Duplicate Files</h4><pre><br>fdupes -r &lt;directory&gt;<br><br>NOte:&gt; -r stands for &quot;recursive,&quot; meaning it will search through the directory and all its subdirectories.</pre><pre>**For example, to find duplicates in the /home/user/Documents folder, use<br><br>fdupes -r /home/user/Documents</pre><h4>Delete Duplicate Files</h4><p>If you want to delete the duplicate files automatically, use this command</p><pre>fdupes -rdN &lt;directory&gt;</pre><p>-d deletes the duplicates.</p><p>-N skips confirmation for each file</p><h4>Review Before Deleting</h4><pre>fdupes -rdi &lt;directory&gt;</pre><p>-i asks you before deleting each duplicate file.</p><h3>👋 If you find this helpful, please click the clap 👏</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=099a7316bea8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Replica Set and Replication Controller in Kubernetes]]></title>
            <link>https://medium.com/@robinthakur7723/understanding-replica-set-and-replication-controller-in-kubernetes-9972d52061bf?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9972d52061bf</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Fri, 13 Sep 2024 07:15:30 GMT</pubDate>
            <atom:updated>2024-09-13T07:15:30.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Kubernetes helps manage applications by organizing them into containers and ensuring they run smoothly. Two important tools that help with this are the <strong>ReplicaSet</strong> and the <strong>ReplicationController</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*jQR6BL9fKuvfQvrlGC8Efg.png" /></figure><h4>Replication Controller</h4><p>A ReplicationController (RC) makes sure that a specific number of copies (pods) of your app are always running. If one pod crashes or stops, it will automatically create a new one to keep things balanced.</p><h4>Key Features:</h4><p>Keeps the app running: Ensures the right number of pods are always running.<br>Scaling: You can increase or decrease the number of pods manually.<br>Fixes problems: Automatically creates a new pod if one stops working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*hwCmqlider-RRek6RRRokA.png" /></figure><p>apiVersion: v1<br>kind: ReplicationController<br>metadata:<br> name: rc1<br>spec:<br> replicas: 3<br> selector:<br> app: os1<br> template:<br> metadata:<br> name: mypod<br> labels:<br> app: os1<br> spec:<br> containers:<br> — name: myc1<br> image: vimal13/apache-webserver-php</p><p><a href="https://github.com/Ravindraaa/K8s/blob/master/rc1.yml">Get Code</a></p><blockquote>&gt; replicas : 3 means 3 pods will always run.<br>&gt; selector finds the pods that the controller manages.<br>&gt; template defines what each pod will look like, including the container image and port.</blockquote><pre>Create a ReplicationController<br>kubectl apply -f &lt;replicationcontroller.yaml&gt;</pre><pre>View all ReplicationControllers<br>kubectl get rc</pre><pre>Describe a specific ReplicationController<br>kubectl describe rc &lt;rc_name&gt;</pre><pre>Scale a ReplicationController<br> kubectl scale rc &lt;rc_name&gt; — replica= 4 <br> **note: — replica=4 == 4 copies are created </pre><pre>Delete a ReplicationController<br> kubectl delete rc &lt;rc-name&gt;</pre><h4>ReplicaSet</h4><p>A <strong>ReplicaSet (RS)</strong> is the updated version of the ReplicationController. It does the same job but offers more flexibility. It’s also often used with <strong>Deployments</strong>, which allow for even more advanced management of your app.</p><h4>Key Features:</h4><p>Keeps your app available: Just like the ReplicationController, it ensures the right number of pods are running.<br>Better pod selection: Uses more advanced rules to choose which pods it controls.<br>Works with Deployments: Often used in combination with Deployments for features like rolling updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*l06FQ0LXMhxAQLdyEyQoNA.png" /></figure><p>apiVersion: apps/v1<br>kind: ReplicaSet<br>metadata:<br> name: myweb-rs<br>spec:<br> replicas: 3<br> selector:<br> matchLabels:<br> env: prod<br> matchExpressions:<br> — { key: team, operator: In, values: [team1, team2] }<br> — { key: tier, operator: In, values: [frontend ]}<br> template:<br> metadata:<br> name: webpod<br> labels: <br> env: prod # Should match the selector<br> team: team1<br> tier: frontend <br> spec:<br> containers: # Should be ‘containers’, not ‘container’<br> — name: webc1<br> image: vimal13/apache-webserver-php</p><p><a href="https://github.com/Ravindraaa/K8s/blob/master/ReplicaSet.yml">Get Code</a></p><blockquote>&gt; replicas: 3 means 3 pods should always be running.<br>&gt; matchLabels defines how it chooses the pods it controls.<br>&gt; template defines the container’s image and settings.</blockquote><pre>Create a ReplicaSet<br>kubectl apply -f &lt;replicaset.yaml&gt;</pre><pre>View all ReplicaSets<br>kubectl get rs</pre><pre>Describe a specific ReplicaSet<br>kubectl describe rs &lt;replicaset-name&gt;</pre><pre>Scale a ReplicaSet<br>kubectl scale rs &lt;replicaset-name&gt; — replicas=&lt;number&gt;</pre><pre>Delete a ReplicaSet<br>kubectl delete rs &lt;replicaset-name&gt;</pre><pre>View all Pods managed by a ReplicaSet<br>kubectl get pods — selector=app=&lt;app-label&gt;</pre><h4>Differences Between ReplicationController and ReplicaSet</h4><p>Flexibility: ReplicaSets offer better control with more advanced pod selection.<br>Modern use: ReplicationController is older, while ReplicaSet is newer and works well with modern tools like Deployments.</p><h4>When to Use Each?</h4><p>Use <em>ReplicationController</em> if working with older systems.<br>Use <em>ReplicaSet</em> for newer applications, especially when you need more control and flexibility.</p><h3>👋 If you find this helpful, please click the clap 👏</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9972d52061bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Complete Guide to Storage in Kubernetes: Persistent Volume (PV), Persistent Volume Claim (PVC)…]]></title>
            <link>https://medium.com/@robinthakur7723/a-complete-guide-to-storage-in-kubernetes-persistent-volume-pv-persistent-volume-claim-pvc-3b06a23e35ce?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b06a23e35ce</guid>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Wed, 11 Sep 2024 07:55:04 GMT</pubDate>
            <atom:updated>2024-09-11T07:55:04.257Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Complete Guide to Storage in Kubernetes: Persistent Volume (PV), Persistent Volume Claim (PVC), and Storage Class</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*5UCXDw_fxWZ4zd1rMfTSWg.png" /></figure><h3>Persistent Volume (PV)</h3><p>A <strong>Persistent Volume</strong> (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically by a Storage Class. It is a resource in the cluster, independent of the lifecycle of a pod, meaning it exists beyond the lifespan of pods that access it.<br><strong>Reclaim Policy</strong>: Determines what happens to the PV after it’s no longer used. This can be Retain, Recycle, or Delete.<br>Example PV YAML file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*e9_mZUY6L_IJnmbWAKwavQ.png" /></figure><p>apiVersion: v1<br>kind: PersistentVolume<br>metadata:<br> name: my-pv<br>spec:<br> capacity:<br> storage: 5Gi<br> accessModes:<br> — ReadWriteOnce<br> persistentVolumeReclaimPolicy: Retain<br> storageClassName: my-storage-class<br> hostPath:<br> path: /mnt/data<br>Note: Correct the Indentation</p><p><strong>capacity</strong>: Defines the amount of storage allocated.<br> <strong>accessModes</strong>:<br>ReadWriteOnce: The volume can be mounted as read-write by a single node.<br>ReadOnlyMany: The volume can be mounted as read-only by multiple nodes.<br>ReadWriteMany: The volume can be mounted as read-write by many nodes.<br><strong>persistentVolumeReclaimPolicy</strong>: Defines what happens when the volume is released. In the above example, the volume is retained after use.</p><p>Command to apply the PV<br>kubectl apply -f my-pv.yaml</p><h3>Persistent Volume Claim (PVC)</h3><p>A <strong>Persistent Volume Claim (PVC)</strong> is a request for storage by a user. Pods use PVCs to request PVs with a specific size and access mode. The PVC is then bound to an appropriate PV that meets its requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*sUx-UHMaAzsslxKj74i2Bg.png" /></figure><p>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br> name: my-pvc<br>spec:<br> accessModes:<br> — ReadWriteOnce<br> resources:<br> requests:<br> storage: 5Gi<br> storageClassName: my-storage-class<br>#Note : Correct the Indentation</p><p><em>resources.requests.storage: The amount of storage requested.<br>storageClassName: Ensures that the PVC binds to a PV with a matching storage class</em></p><p>Command to apply the PVC<br>kubectl apply -f my-pvc.yaml</p><h3>Storage Class</h3><p>A <strong>Storage Class</strong> defines a way to dynamically provision storage. It allows administrators to define classes of storage, such as “fast” or “slow”, depending on the underlying storage technology. The Storage Class specifies the type of storage (e.g., AWS EBS, Google Persistent Disk, or Azure Disk) and the provisioner for dynamic storage allocation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*M9DrGbAlt79eOxBbUQ2_QQ.png" /></figure><p>apiVersion: storage.k8s.io/v1<br>kind: StorageClass<br>metadata:<br> name: my-storage-class<br>provisioner: kubernetes.io/aws-ebs<br>parameters:<br> type: gp2<br> fsType: ext4</p><p><strong><em>provisioner</em></strong><em>: The type of storage to be provisioned (AWS EBS, GCE PD, etc.).<br></em><strong><em>parameters</em></strong><em>: Additional parameters such as disk type, filesystem type, etc.</em></p><p>Command to apply the Storage Class<br>kubectl apply -f my-storage-class.yaml</p><p>List all the Storage Class <br>kubectl get sc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TmXo5VDargUvPdX0M1bLKw.png" /><figcaption>List all the Storage Class</figcaption></figure><h4>Quick Summary:<br>PV: Provisioned storage in the cluster.<br>PVC: A user’s request for storage.<br>Storage Class: Defines storage types and dynamic provisioning</h4><h3>👋 If you find this helpful, please click the clap 👏</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b06a23e35ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LINUX COMMANDS which we use commonly in real-time scenarios]]></title>
            <link>https://medium.com/@robinthakur7723/linux-commands-which-we-use-commonly-in-real-time-scenarios-619506629a57?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/619506629a57</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[redhat-linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Sun, 08 Sep 2024 14:56:45 GMT</pubDate>
            <atom:updated>2024-09-08T14:56:45.888Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*hLpjm7ZFvLufNB8_Bn2tcw.png" /></figure><h4>Basic Linux Commands</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*Hm5aESoEBK8wreORAy5REA.png" /></figure><p>ls — List directory contents<br>cd — Change directory<br>pwd — Print working directory<br>mkdir — Create a new directory<br>rmdir — Remove a directory<br>rm -r — Remove directory recursively<br>touch — Create a new file<br>echo — Print text to the terminal or file<br>cat — Concatenate and display file contents<br>cp — Copy files or directories<br>mv — Move or rename files or directories<br>clear — Clears the screen<br>exit — Exit the shell or current session<br>rm — Remove files or directories</p><h4>Getting Help at Command Line</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*SmUiO4iPbso4PFYUR8_C3A.png" /></figure><p>man — Display the manual for a command<br>info — Display information about a command<br> — help — Display help for a command<br>whatis — Brief description of a command<br>apropos — Search for commands related to a keyword</p><h4>Working with Directories</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*tIrvLF8bFREI5zVAVS6D4w.png" /></figure><p>cd — Change directory<br>mkdir — Create a new directory<br>rmdir — Remove a directory<br>pwd — Print working directory<br>ls — List directory contents</p><h4>File and Directory Permission</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*hiWNzMX9_DSKYCw-uScD4w.png" /></figure><p>chmod — Change file mode (permissions)<br>chown — Change file owner and group<br>chgrp — Change group ownership<br>umask — Set default file permissions</p><h4>Viewing Files and the Nano Editor</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*6nfTgTlZOOkbyRRHMbu6UA.png" /></figure><p>cat — Display file contents<br>more — View file contents one screen at a time<br>less — View file contents with backward movement<br>nano — Simple text editor</p><h4>Editing Files in vi</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*xhfkIhpEJyOcevH5fKH9Dg.png" /></figure><p>vi — Text editor with two modes: command and insert<br>vim — Improved version of vi<br>:w — Save file in vi/vim<br>:q — Quit vi/vim<br>:wq — Save and quit vi/vim<br>:q! — Quit vi/vim without saving</p><h4>Deleting, Copying, Moving and Renaming</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*JjF4LO6bn-pv6tKwjVrNlQ.png" /></figure><p>rm — Remove files or directories<br>cp — Copy files or directories<br>mv — Move or rename files or directories<br>rename — Rename multiple files</p><h3>👋 If you find this helpful, please click the clap 👏</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=619506629a57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Linux Terminal Hacks for Efficiency]]></title>
            <link>https://medium.com/@robinthakur7723/essential-linux-terminal-hacks-for-efficiency-5b451e1d40fc?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b451e1d40fc</guid>
            <category><![CDATA[linux-terminal]]></category>
            <category><![CDATA[li̇nux]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Sat, 07 Sep 2024 17:38:54 GMT</pubDate>
            <atom:updated>2024-09-07T17:38:54.910Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tips, tricks and shortcuts in Linux terminal for better productivity and ease of use.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*J_APWYJWz8HscP0vuocQiA.png" /></figure><h3>1. Clearing terminal:</h3><p>Use Ctrl + L to clean the terminal instead of typing clear every time.</p><h3>2. Tab auto complete cmds:</h3><p>Most of us are aware of tab completion for folders and files, but the same works for commands as well.</p><h3>3. Alias:</h3><p>Alias is a short command that we can set (a few are set by default).</p><p>eg: set the word “u”, for sudo apt update.</p><pre>alias get=&quot;systemctl&quot;<br>alias install=&#39;yum install&quot;<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PR8lEcIt1lrX0gTk3nzStQ.png" /></figure><p>Now use get in the place of systemctl and get to install any package (yum install) .<br>Note**<br>this Alias is Temp. alias</p><p><em>Note: To set aliases permanently add them in .bashrc.</em></p><p><em>Open .bashrc with any editor, and add them to the last line. Save, exit and reload bash with “source .bashrc”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*cba9IWi1C57qTENxG9wz9A.png" /></figure><p>There are several built-in aliases, such as ll is alias for ls -la and etc. To list all, just use alias w/o any other options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ZeeqSAAAqv7XJkfow8NlA.png" /><figcaption>Remove an alias set using cmd with unalias &lt;alias-name&gt;</figcaption></figure><blockquote>Remove an alias set using cmd with unalias &lt;alias-name&gt;</blockquote><h3>4. Navigate the commands:</h3><p>Assume you have typed a long command but forgot to add something at the beginning or at somewhere near to start of the command.</p><p>Instead of scrolling all the way, just use Ctrl A. Similarly Ctrl E goes to the end of the line, Ctrl U removes the cmd text prior to the cursor position.</p><p>Ctrl W removes one word before the cursor, Ctrl F to move the cursor forward and Ctrl B to move it backwards.</p><h3>5. cd ~ vs cd — :</h3><p>the cd (without ~) or cd with ~ (tilde represents home dir) brings you to the home dir from anywhere.</p><p>“cd — ” however switches to the previous dir we were in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IeKpxv6IbOfWwdLWvvjenw.png" /></figure><h3>6. pushd and popd:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYqXht0cpXNhaArdq6Qn1w.png" /></figure><p>When you use “pushd /path/&quot;, you switch the current directory to &quot;/path/”, while also saving the previous directory onto the directory stack. Then, when you use popd, it removes the top directory from the stack and changes the current directory back to it.&quot;</p><h3>7. hostnamectl:</h3><p>Change hostname for easy identification of machine.</p><pre>hostnamctl set-hostname &lt;name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*2lwFwN0uV8Sb15C2bYfZXw.png" /></figure><p>You can also set your domain name as hostname.</p><h3><strong>8. Get Public IP:</strong></h3><p>Get public ip using ifconfig.me</p><pre>curl ifconfig.me</pre><h3>9. Re run the previous command:</h3><p>Similar to point 3, but you don’t necessarily need to go back to the start (Use those shortcuts for modification in the middle or towards the end).</p><p>We can re run the previous command using !! with the left out commands.</p><pre>$ echo &quot;hello&quot;</pre><pre>$ sudo !!</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*NHuS4eOZlIT4wxQ2VcTrKQ.png" /></figure><h3>10. Re run the previous command arg:</h3><p>Say you did ls on a directory, but you realised, you wanted to switch to it instead.</p><pre>$ commad &lt;args&gt;<br>$ 2nd command !$</pre><h3>11. background and foreground task:</h3><p>If you’re editing a file and need to do something else in the terminal, use `Ctrl+Z` to suspend the task. Then, handle your other tasks and resume the editing with `fg`. This method isn’t specific to any editor and works with various applications.</p><h3>12. Man page and help:</h3><p>No need to remember all the details for a cmd. Use the below to retrieve them.</p><ul><li>man : for info about utilities and programs.</li><li>help : for quick info about built-in shell cmds</li></ul><pre>man wc</pre><pre>help cd</pre><h3>13. Ctrl Q:</h3><p>Used Ctrl S to save our changes? In terminal this key combination freezes the terminal. To unfreeze use ctrl q.</p><h3>14. Font Management</h3><p>To increase the terminal font size use Ctrl and + button, to reduce it, use Ctrl and — button.</p><h3>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b451e1d40fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Count(*) vs Count(1) in SQL: What’s the Difference? ]]></title>
            <link>https://medium.com/@robinthakur7723/count-vs-count-1-in-sql-whats-the-difference-e52e624cd284?source=rss-e054cf19803c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e52e624cd284</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Ravindra Singh]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 12:22:35 GMT</pubDate>
            <atom:updated>2024-09-05T12:22:35.693Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever written SQL queries, you’ve likely used count() to get the number of rows in a table. But have you ever wondered what the difference is between count(* )and count(1) ? Let’s dive in and see which one is better and why!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*YpJt1brCWpOlELydSXIwBQ.png" /></figure><h3>What Does COUNT() Do? 🧮</h3><p>The count() function is used to count the number of rows returned by a query. But, there are two common ways to use it:</p><ul><li>count(*) : Counts all the rows, including rows with <strong>NULL</strong> values.</li><li>count(1) : Counts the number of rows where <strong>1</strong> is a constant expression, which essentially means it counts all rows.</li></ul><h3>Breaking Down the Difference 📊</h3><ol><li><strong>count(*)</strong></li></ol><p><strong>Meaning</strong>: This counts all rows, regardless of the values in the rows. It even counts rows with NULL values.</p><ul><li><strong>How It Works</strong>: It doesn’t check the contents of the row; it just checks whether the row exists. This is efficient because the database doesn’t need to evaluate the individual fields.</li></ul><blockquote>Query : SELECT COUNT(*) FROM employees;<br>This counts all rows in the employees table.</blockquote><p><strong>2. count(1)</strong></p><ul><li><strong>Meaning</strong>: This also counts all rows, but instead of evaluating the entire row, it evaluates the constant 1 for each row.</li><li><strong>How It Works</strong>: Since 1 is a constant, the database just counts the rows without actually needing to check any columns. This is functionally the same as count(*) .</li></ul><blockquote>Query :<strong> </strong>SELECT COUNT(1) FROM employees; <br>This also counts all rows in the employees table.</blockquote><h3>Is One Faster than the Other? 🚀</h3><p>In modern database systems, <strong>there’s virtually no difference</strong> between count(*) and count(1) in terms of performance. Both are optimized to be efficient.</p><p>🔑 <strong>Key Point</strong>: Older databases used to have slight performance differences, but most modern systems like MySQL, PostgreSQL, and SQL Server handle both in the same way. The query optimizer treats them as equivalent.</p><h3>Which Should You Use? 🏆</h3><ul><li><strong>count(*) is the more common and widely accepted practice.</strong> It clearly indicates that you’re counting rows, not checking for specific values.</li><li><strong>count(1)</strong> works the same but is less intuitive. It doesn’t offer any performance boost in modern databases.</li></ul><p>I hope this clears up the mystery behind count(*) vs count(1) ! 💡 Which one will you choose?</p><p>Let me know in the comments below! 👇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e52e624cd284" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>