<?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 SRIMAN R on Medium]]></title>
        <description><![CDATA[Stories by SRIMAN R on Medium]]></description>
        <link>https://medium.com/@Srimanram?source=rss-73cd1e85bbd4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_3hlXMeuy7ybBj0d</url>
            <title>Stories by SRIMAN R on Medium</title>
            <link>https://medium.com/@Srimanram?source=rss-73cd1e85bbd4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:07:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Srimanram/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[AWS Project Using Shell Scripting]]></title>
            <link>https://medium.com/@Srimanram/aws-project-using-shell-scripting-06279ded2a69?source=rss-73cd1e85bbd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/06279ded2a69</guid>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[shell-script]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[SRIMAN R]]></dc:creator>
            <pubDate>Sat, 18 May 2024 15:23:17 GMT</pubDate>
            <atom:updated>2024-05-18T15:26:17.203Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28RwShBanUoMf3ZVkiB8QA.png" /></figure><blockquote>Project Title - AWS Resource Tracker</blockquote><p>Nowadays, many organizations use EC2 instances, S3 buckets, Lambda functions, and IAM for users. It&#39;s hard to track the usage of resources manually. This shell script helps to track AWS resources effectively. The AWS CLI fetches information about EC2 instances, S3 buckets, Lambda functions, and IAM users.</p><p><strong>How to proceed?</strong></p><ol><li>Install AWS CLI.</li></ol><pre>curl &quot;https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip&quot; -o &quot;awscliv2.zip&quot;<br><br>unzip awscliv2.zip<br><br>sudo ./aws/install<br><br>OR<br><br>sudo snap install aws-cli --classic</pre><p>2. Configure the AWS CLI with your AWS Access Key and Secret Key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTBTcmqADmZve2p2-2IYWQ.png" /></figure><p>3. Create a text file named &quot;aws_resource_tracker.sh&quot; using the VIM editor command and edit it with the script details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DvUwC9mjAzX5RGCiO3EhVg.png" /></figure><p>4. Modify the permission of &quot;aws_resource_tracker.sh&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2aUC1RAbQP4o7pRc3kiQA.png" /></figure><p>5. Execute the script.</p><pre>./aws_resource_tracker.sh</pre><p>6. Output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xWkFUSKNCMURRTANhzmNmQ.png" /></figure><p><strong>Automate Using CRON JOB</strong></p><p>We need to schedule this script to run at a particular time daily by using the CRON job.</p><ol><li>Create a CRON job</li></ol><pre>export VISUAL=vi<br>crontab -e</pre><p>2. Schedule CRON job to run at 6 PM every day</p><pre>0 18 * * * aws_resource_tracker.sh</pre><blockquote>If you found this article helpful, Follow me for more articles like this.</blockquote><blockquote>You can see this project on <a href="https://github.com/srimanram/AWS-Project-using-SHELL-SCRIPTING">GitHub</a></blockquote><blockquote>You can connect me on <a href="https://www.linkedin.com/in/sriman-r-8641a21bb/">LinkedIn</a><br><strong>Thank You 🖤</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06279ded2a69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Commands for DevOps]]></title>
            <link>https://medium.com/@Srimanram/linux-commands-for-devops-cf9a2e033de3?source=rss-73cd1e85bbd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf9a2e033de3</guid>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[SRIMAN R]]></dc:creator>
            <pubDate>Fri, 03 May 2024 14:08:28 GMT</pubDate>
            <atom:updated>2024-05-03T16:49:41.260Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gb9aBChktsJrBMagr6qy-g.jpeg" /></figure><p>In this article, we’ll explore Linux commands used in DevOps frequently. To execute these commands we can use any Linux machine or virtual machine.</p><ol><li>ls: This Linux command lists all the contents in the working directory.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGD9sCsnd3sbqGLFxMKCWg.png" /><figcaption>This ls -l command will list the directories, their permission, size, owner, group, date, and time.</figcaption></figure><p>2. mkdir: This Linux command is used to create new directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UWF9wAzuoQVpFGHiHXC_6Q.png" /><figcaption>This created a new directory called “test” in the current directory.</figcaption></figure><p>3. cd: This Linux command is used to change the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hYV2Gq4zCz5Ylk-0_3SEg.png" /><figcaption>This changes the current directory to the Linux directory.</figcaption></figure><p>4. pwd: This Linux command shows the pathname of the current directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bwzh_3DSeek7NVE3lqdyLQ.png" /><figcaption>This shows the full path of the current working directory.</figcaption></figure><p>5. touch: This Linux command is used to create empty files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LO70WdMk4f_tl4VmMZQzKA.png" /><figcaption>This created a new text file called “hello.txt” in the current directory.</figcaption></figure><p>6. cat: This Linux command stands for “Concatenate” and is used to display the file&#39;s contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*natfAsJ9XI-t2hvEYZJ9IQ.png" /></figure><p>7. man: This Linux command is used to display the user manual of any command that we can run on the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lD_Tz7E-8bmkoVkCvdc_PA.png" /></figure><p>8. cp: This Linux command is used to copy files from one location to another location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49YQZW-zXVLxuItbkPna_w.png" /><figcaption>This copy “hello.txt” to the test directory.</figcaption></figure><p>9. rm: This Linux command is used to remove files and directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IaYJsZSk7gpcdRfgs_SspQ.png" /><figcaption>This removes the “hello.txt” file from the current directory</figcaption></figure><p>10. mv: This Linux command is used to rename and relocate files and directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2HR66FXrQTPTkMtPHx3Xow.png" /><figcaption>This renames the file “hello.txt” to “hi.txt”</figcaption></figure><p>11. head: This Linux command is used to display the first part of the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLfYsWHy_1B6kkayMGO01w.png" /><figcaption>This displays the first four lines of “hi.txt”</figcaption></figure><p>12. tail: This Linux command is used to display the last part of the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ii10fkSX2R5kWrw2YPvruQ.png" /><figcaption>This displays the last two lines of “hi.txt”</figcaption></figure><p>13. diff: This Linux command is used to compare two files line by line and display the difference between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IgaHkgk8t5v4aZ4eD8LJQ.png" /><figcaption>This displays the difference between the two files.</figcaption></figure><p>14. find: This Linux command is used to find a particular file within a directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rflQ4dZ8jB64mWKNM66Lg.png" /></figure><p>15. chmod: This Linux command is used to modify the permissions and access mode of files and directories. There are three types of permissions and the numeric notation (read - r = 4, write - w = 2, execute - x = 1). 0 means no permission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M19fHcwX3Y3UEhce09BPRQ.png" /><figcaption>This sets read, write, and execute permissions for “hi.txt”.</figcaption></figure><p>16. chown: This Linux command is used to change the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6RorUtx_xqbnjDOJ_avYyQ.png" /><figcaption>This changes the user “srimanram” to “root”.</figcaption></figure><p>17. sudo: This Linux command is used to perform tasks that require administrative or root permissions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HoqqJUIoSJRlcbFd9qtjxQ.png" /><figcaption>This command allows you to run programs with the security privileges of another user.</figcaption></figure><p>18. grep: This Linux command is used to search for matching patterns in a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CkG_vLmcHyyTpjXwLKBfoA.png" /><figcaption>This search for “Ram” in “hi.txt” and printed “Ram”.</figcaption></figure><p>19. history: This Linux command shows all the commands used till now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8f_zxYSNAE23QpSAMoR2eA.png" /><figcaption>This displays the history of the commands executed by the user.</figcaption></figure><p>20. wget: This Linux command is used for downloading files from the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yojLKZ9mCvOfKQRhmL90Aw.png" /><figcaption>This downloads the “index.html” from the URL.</figcaption></figure><p>21. top: This Linux command is a system monitoring tool that displays real-time information about system processes and resource usage. It provides a dynamic, real-time view of system activity, including CPU usage, memory usage, and process information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6AHe6Rd8NvYiKYMpnSdkQ.png" /><figcaption>List of processes.</figcaption></figure><p>22. echo: This Linux command prints any text that follows this command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSb8-brqfD4pYYUdLqZZnw.png" /><figcaption>Prints “Hello world”.</figcaption></figure><p>23. df: This Linux command is used to display the amount of disk space used and available on Linux file systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUNZgm8Pnrjgtfo2hOUaKg.png" /><figcaption>This displays the disk usage.</figcaption></figure><p>25. du: This command is used to estimate file and directory space usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03cswjiYTpkEu6jUEID0SQ.png" /><figcaption>This displays the size of each file and directory</figcaption></figure><p>26. ps: This Linux command is used to view information about the processes running on your Linux system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tnv1gXW3M_6gumV3j4L03Q.png" /><figcaption>This displays all the running processes on the system.</figcaption></figure><p>27. uname: The Linux command used to display information about the system’s kernel, including the kernel name and kernel version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZTzGFaC0DopVdvn5TzZ1w.png" /><figcaption>Displays kernel name and kernel version.</figcaption></figure><p>28. whoami: This Linux command returns the current user’s username.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cgo5Q4qxRXQSsGChxWcqrw.png" /><figcaption>Current username.</figcaption></figure><p>29. sort: This Linux command is used to sort lines in a text file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYck1g1H7RjOyYSZ5Upr9Q.png" /><figcaption>sorted the file “hi.txt” in alphabetical order.</figcaption></figure><p>30.ssh: The Linux command is used to establish a secure shell connection to a remote server.</p><p>31. ifconfig: This Linux command is used to configure the kernel-resident network interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nodbHOAn8qaSa51_dKbx3Q.png" /></figure><p>32. ping: This command is a powerful tool that allows users to check the status of their internet connection and diagnose network-related issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mvBLyUy4hC74nHuhTgySvQ.png" /></figure><p>33. alias: This Linux command is used to create a shortcut for another command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYN26ae8ip4KAs33w1WVMw.png" /><figcaption>Now, every time you enter lsl or rmd in the terminal, you’ll receive the output.</figcaption></figure><p>34. clear: This Linux command clears the terminal screen. It removes all the text and output currently displayed on the terminal and gives you a clean slate to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Om4v5AtewkArn3lIWr7x9g.png" /><figcaption>This clears the terminal screen</figcaption></figure><p>35. exit: This Linux command is used to exit from the current shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bG8xsEegMLaI9qRVzTuu5A.png" /></figure><blockquote>If you found this article helpful, <strong>Follow</strong> me for more articles like this.</blockquote><blockquote>You can connect me on <a href="https://www.linkedin.com/in/sriman-r-8641a21bb/">LinkedIn</a><br><strong>Thank You 🖤</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf9a2e033de3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>