<?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 Sharmabhagya on Medium]]></title>
        <description><![CDATA[Stories by Sharmabhagya on Medium]]></description>
        <link>https://medium.com/@sharmabhagya2414?source=rss-5cc2c63d5abb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7R48Da76JzVx2ngU1T8i6A.jpeg</url>
            <title>Stories by Sharmabhagya on Medium</title>
            <link>https://medium.com/@sharmabhagya2414?source=rss-5cc2c63d5abb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:31:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sharmabhagya2414/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[Day 09 of #90DaysofDevOps]]></title>
            <link>https://medium.com/@sharmabhagya2414/day-09-of-90daysofdevops-6c786523a787?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c786523a787</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[90daysofdevops]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Wed, 30 Aug 2023 20:37:41 GMT</pubDate>
            <atom:updated>2023-08-30T20:37:41.591Z</atom:updated>
            <content:encoded><![CDATA[<p>Day 09 with <a href="https://medium.com/u/1af2351758a5">Shubham Londhe</a></p><h3>Day 9 Task: Deep Dive in Git &amp; GitHub for DevOps Engineers.</h3><h4><em>1. What is Git and why is it important?</em></h4><p><strong>👉GIT </strong>is open source version control system where developers usually save (commit) their code, as a snapshot of every development step in their local. Thus, helps in parallel development for different features and to continue working where they left off. Git can be considered to track changes in computer files.</p><h4>2. What is difference Between Main Branch and Master Branch??</h4><p>👉 There is no technical differences but it is a naming convention. Github default branch is Main whereas Git uses master as its default branch. Although Github provides an option to change the branch name.</p><h4>3.What is the difference between Git and GitHub?</h4><p>👉 Git is a local repository where we can store our files and Github is a remote repository where we need to be connected to internet to push our code from local (git) to remote (github). Github is a central repository where multiple users can integrate their work while Git is like a personal folder on personal computers</p><h4>4. How to create a new repository on GitHub?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGNbMhs1jgWJTK-rJ32cJw.png" /></figure><p>⭐️Click on new, under Top Dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57lB9DfUSIRi4xrknGTsZQ.png" /></figure><h4>⭐️ Fill in the details about Repo and click on create Repo.</h4><h4>5. What is difference between local &amp; remote repository? How to connect local to remote?</h4><p>👉 Local Repo resides on the personal computers and Remote Repo are hosted on server which is accesible to all the Repo members.</p><h4>6. Set your user name and email address, which will be associated with your commits.</h4><p>I have already set up my username and email address.<br>$ git config --global user.name &quot;anbce&quot; <br>$ git config --global user.email &quot;abcf@gmail.com&quot;</p><p>You could check by following commands</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GTW_2leLlVzvk5fupUQQwA.png" /></figure><h4>7.Create a repository named “Devops” on GitHub</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_im6_Sh2iUky5xTUSEOy8A.png" /></figure><h4>8. Connect your local repository to the repository on GitHub.</h4><ol><li>At the top of your repository on GitHub.com’s Quick Setup page, click to copy the remote repository URL.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zDqP78UD4Cb0Pi6H.png" /></figure><p>2. Open Terminal. <a href="https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories">Add the URL for the remote repository</a> where your local repository will be pushed.</p><ul><li>$ git remote add origin &lt;REMOTE_URL&gt; # Sets the new remote <br>$ git remote -v # Verifies the new remote URL.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfRpyj2KOhawmd9GIPjcWA.png" /></figure><h4>9.Create a new file in Devops/Git/Day-02.txt &amp; add some content to it</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_tj1bB1ZBPPTyuMkUMpEA.png" /></figure><h4>10.Push your local commits to the repository on GitHub</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIif4ncj-F6n4ZqgHykJmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vmPr4D0v9Z6-231DeL1QAw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c786523a787" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#Day 08 of #90dayofDevops]]></title>
            <link>https://medium.com/@sharmabhagya2414/day-08-of-90dayofdevops-2bd71805da2f?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bd71805da2f</guid>
            <category><![CDATA[90daysofdevops]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 17:26:52 GMT</pubDate>
            <atom:updated>2023-08-28T17:26:52.297Z</atom:updated>
            <content:encoded><![CDATA[<p>Day 08 with <a href="https://medium.com/u/1af2351758a5">Shubham Londhe</a></p><h3>🌼What is Git?</h3><p>Git is a version control system that allows you to track changes to files and coordinate work on those files among multiple people. It is commonly used for software development, but it can be used to track changes to any set of files.</p><p>With Git, you can keep a record of who made changes to what part of a file, and you can revert back to earlier versions of the file if needed. Git also makes it easy to collaborate with others, as you can share changes and merge the changes made by different people into a single version of a file.</p><h3>🌼What is Github?</h3><p>GitHub is a web-based platform that provides hosting for version control using Git. It is a subsidiary of Microsoft, and it offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. GitHub is a very popular platform for developers to share and collaborate on projects, and it is also used for hosting open-source projects.</p><h3>🌼What is Version Control? How many types of version controls we have?</h3><p>Version control is a system that tracks changes to a file or set of files over time so that you can recall specific versions later. It allows you to revert files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more.</p><p>There are two main types of version control systems: centralized version control systems and distributed version control systems.</p><ol><li>A centralized version control system (CVCS) uses a central server to store all the versions of a project’s files. Developers “check out” files from the central server, make changes, and then “check in” the updated files. Examples of CVCS include Subversion and Perforce.</li><li>A distributed version control system (DVCS) allows developers to “clone” an entire repository, including the entire version history of the project. This means that they have a complete local copy of the repository, including all branches and past versions. Developers can work independently and then later merge their changes back into the main repository. Examples of DVCS include Git, Mercurial, and Darcs.</li></ol><h3>🌼Why we use distributed version control over centralized version control?</h3><ol><li>Better collaboration: In a DVCS, every developer has a full copy of the repository, including the entire history of all changes. This makes it easier for developers to work together, as they don’t have to constantly communicate with a central server to commit their changes or to see the changes made by others.</li><li>Improved speed: Because developers have a local copy of the repository, they can commit their changes and perform other version control actions faster, as they don’t have to communicate with a central server.</li><li>Greater flexibility: With a DVCS, developers can work offline and commit their changes later when they do have an internet connection. They can also choose to share their changes with only a subset of the team, rather than pushing all of their changes to a central server.</li><li>Enhanced security: In a DVCS, the repository history is stored on multiple servers and computers, which makes it more resistant to data loss. If the central server in a CVCS goes down or the repository becomes corrupted, it can be difficult to recover the lost data.</li></ol><p>Overall, the decentralized nature of a DVCS allows for greater collaboration, flexibility, and security, making it a popular choice for many teams.</p><h3>🌼Exercises:</h3><ol><li>Create a new repository on GitHub and clone it to your local machine</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBDwAkFJIWE2PHuxDcwEIw.png" /><figcaption>Repo → hello-world</figcaption></figure><h3>👉 <strong><em>Configure username and email:</em></strong></h3><p><strong>⭐️Set the name:</strong></p><p>$ git config --global user.name &quot;User name&quot;</p><p><strong>⭐️Set the email:</strong></p><p>$ git config --global user.email &quot;abc12@gmail.com&quot;</p><p>⭐️ Git Clone into Local</p><p>git clone &lt;Https url &gt;</p><p>2. Make some changes to a file in the repository and commit them to the repository using Git</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXTfQXEB9iMUKM_ioYap_A.png" /></figure><p>git init — This will initialize git into the local directory , so that, its now a main repo. <br>3. Push the changes back to the repository on GitHub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xoaY9k6sRXKAm3leQafy3A.png" /></figure><p>git push origin main → to push to remote repo</p><p><em>Git shall ask to enter username and password. We need to enter the Github account username. Password can be generated settings under profile <br>settings &gt; Developers settings &gt; Password access tokens &gt; Generate and paste that</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bd71805da2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#90DaysofDevOps #Day 07]]></title>
            <link>https://medium.com/@sharmabhagya2414/90daysofdevops-day-07-590f5d94be54?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/590f5d94be54</guid>
            <category><![CDATA[90daysofdevops]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Tue, 22 Aug 2023 20:39:02 GMT</pubDate>
            <atom:updated>2023-08-22T20:39:02.257Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Day 7 Task: Understanding package manager and systemctl</blockquote><h3>Tasks</h3><ol><li>You have to install docker and jenkins in your system from your terminal using package managers</li></ol><p>👉 <strong><em>Steps to Install Jenkins In Ubuntu<br> 1. update the default Ubuntu packages lists for upgrades with the following command: </em></strong><br>sudo apt-get update</p><p><strong><em>2. Then, run the following command to install JDK 11:</em></strong><br>sudo apt install openjdk-11-jre-headless</p><p><strong><em>3. To test if Java has been installed successfully, run this command:</em></strong><br>java -version</p><p><strong><em>4. Now, we will install Jenkins itself. Issue the following four commands in</em></strong> sequence to initiate the installation from the Jenkins repository:</p><p>curl -fsSL <a href="https://pkg.jenkins.io/debian-stable/jenkins.io.key">https://pkg.jenkins.io/debian-stable/jenkins.io.key</a> | sudo tee \<br> /usr/share/keyrings/jenkins-keyring.asc &gt; /dev/null</p><p>echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \<br> <a href="https://pkg.jenkins.io/debian-stable">https://pkg.jenkins.io/debian-stable</a> binary/ | sudo tee \<br> /etc/apt/sources.list.d/jenkins.list &gt; /dev/null</p><p>sudo apt-get update</p><p>sudo apt-get install jenkins</p><p><strong><em>5. To confirm its status, use: </em></strong><br>sudo systemctl status jenkins</p><p>👉 <strong><em>Steps to Install Docker In Ubuntu <br>1. First, update your existing list of packages:</em></strong><br>sudo apt update</p><p><strong><em>2. Next, install a few prerequisite packages which let apt use packages over HTTPS:</em></strong><br>sudo apt install apt-transport-https ca-certificates curl software-properties-common</p><p><strong><em>3. Then add the GPG key for the official Docker repository to your system:</em></strong><br>curl -fsSL <a href="https://download.docker.com/linux/ubuntu/gpg">https://download.docker.com/linux/ubuntu/gpg</a> | sudo apt-key add -</p><p><strong><em>4. Add the Docker repository to APT sources:</em></strong><br>sudo add-apt-repository “deb [arch=amd64] <a href="https://download.docker.com/linux/ubuntu">https://download.docker.com/linux/ubuntu</a> focal stable”</p><p><strong><em>5. Make sure you are about to install from the Docker repo instead of the default Ubuntu repo:</em></strong><br>apt-cache policy docker-ce</p><p><strong><em>6. Finally, install Docker: </em></strong><br>sudo apt install docker-ce</p><p><strong><em>7. Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running: </em></strong><br>sudo systemctl status docker</p><p>3. check the status of docker service in your system (make sure you completed above tasks, else docker won’t be installed)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tZxAYKTlHsZyccvxtnKMg.png" /><figcaption>Status of Docker</figcaption></figure><p>4 . stop the service jenkins and post before and after screenshots</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKFyMJ4QxTCmW0uRIUwkSQ.png" /><figcaption>Before Stopping</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWYYTlltNEGmTlFl2egCFg.png" /><figcaption>Post Stopping</figcaption></figure><p>5. read about the commands systemctl vs service</p><p>👉The<strong><em> systemctl </em></strong>command manages both system and service configurations, enabling administrators to manage the OS and control the status of services. Further, systemctl is useful for troubleshooting and basic performance tuning.C</p><p>Commands<br>❤️ start the service — systemctl start {servicename} <br>❤️ stop the service — systemctl stop {servicename}<br>❤️restart the service — systemctl restart {servicename}<br>❤️ Confirm active status — systemctl is-active {servicename}</p><p>👉 The service command lets you run a System V init script<br> <br>Commands</p><p>❤️service &lt;service-name&gt; start<br>❤️service &lt;service-name&gt; status<br>❤️service &lt;service-name&gt; stop<br>❤️service &lt;service-name&gt; restart</p><p>eg. systemctl status docker vs service docker status</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=590f5d94be54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#90Daysof DevOps #Day 06]]></title>
            <link>https://medium.com/@sharmabhagya2414/90daysof-devops-day-06-739f4bb117e3?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/739f4bb117e3</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devops-practice]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 18:51:09 GMT</pubDate>
            <atom:updated>2023-08-21T18:51:09.869Z</atom:updated>
            <content:encoded><![CDATA[<p>Day 06 with <a href="https://medium.com/u/1af2351758a5">Shubham Londhe</a></p><blockquote>Day 6 Task: File Permissions and Access Control Lists</blockquote><ol><li><strong>Create a simple file and do </strong><strong>ls -ltr change the user permissions of the file and note the changes after </strong><strong>ls -ltr.</strong></li></ol><p>Here, we have file test.sh, Initially, it does have permissions to be executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMXaHCthu7aKr2kQXct7DQ.png" /></figure><p>if you try to execute test.sh, you shall get an error <strong><em>-bash: ./test.txt: Permission denied . <br></em></strong>Thus, need to change the permission to be made executable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bU9wKbEERuZosgFERRt5hA.png" /></figure><p>2 . <strong>Write an article about File Permissions based on your understanding from the notes.</strong></p><p>We can use the ‘chmod’ command which stands for ‘change mode’. Using the command, we can set permissions (read, write, execute) on a file/directory for the owner, group and the world.</p><p>When Linux file permissions are represented by numbers, it’s called numeric mode. In numeric mode, a three-digit value represents specific file permissions (for example, 744.) These are called octal values. The first digit is for owner permissions, the second digit is for group permissions, and the third is for other users. Each permission has a numeric value assigned to it:</p><ul><li>r (read): 4</li><li>w (write): 2</li><li>x (execute): 1</li></ul><p>In the permission value 744, the first digit corresponds to the user, the second digit to the group, and the third digit to others. By adding up the value of each user classification, you can find the file permissions.</p><p>For example, a file might have read, write, and execute permissions for its owner, and only read permission for all other users. That looks like this:</p><ul><li>Owner: rwx = 4+2+1 = 7</li><li>Group: r — = 4+0+0 = 4</li><li>Others: r — = 4+0+0 = 4</li></ul><p>The results produce the three-digit value 744.</p><p>3. <strong>Read about ACL and try out the commands </strong><strong>getfacl and </strong><strong>setfacl</strong></p><p>An access control list (ACL) lets you assign permissions for each unique user or group. Suppose you have <strong>user1</strong>, <strong>user2</strong>, and <strong>user3</strong> on a system.</p><p>Users <strong>user2</strong> and <strong>user3</strong> are part of a <strong>demo</strong> group. You must assign this permission scheme to the sample directory:</p><ul><li><strong>user1:</strong> read and write permission</li><li><strong>user2:</strong> read permission</li></ul><p>You can use the setfacl and getfacl command utilities to assign and verify the ACL of a file or directory. To set an ACL, use the setfacl command with the --modify (-m for short) option:</p><pre>$ setfacl --modify user1:rw sample<br>$ setfactl –modify user2:r sample</pre><p>To verify an ACL, use getfacl:</p><pre>$ getfacl sample<br># file: sample<br># owner: tux<br># group: tux<br>user::rwx<br>user:user2:r--<br>user:user1:rw-<br>group::rwx<br>mask::rwx<br>other::r-x</pre><p>❤️🌼</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=739f4bb117e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#90DaysofDevOps #Day05]]></title>
            <link>https://medium.com/@sharmabhagya2414/90daysofdevops-day05-f9cf23ca4b69?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9cf23ca4b69</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[90daysofdevops]]></category>
            <category><![CDATA[devopsdays]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Thu, 17 Aug 2023 20:53:41 GMT</pubDate>
            <atom:updated>2023-08-17T20:53:41.936Z</atom:updated>
            <content:encoded><![CDATA[<p>Day 05 with <a href="https://medium.com/u/1af2351758a5">Shubham Londhe</a></p><h3>Tasks</h3><ol><li>You have to do the same using Shell Script i.e using either Loops or command with start day and end day variables using arguments -</li></ol><p>So Write a bash script createDirectories.sh that when the script is executed with three given arguments (one is directory name and second is start number of directories and third is the end number of directories ) it creates specified number of directories with a dynamic directory name.</p><p>Example 1: When the script is executed as</p><p>./createDirectories.sh day 1 90</p><p>then it creates 90 directories as day1 day2 day3 .... day90</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grB4H8cCruiVAHtBTGoGPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adOhbtgHd8NrWqkpCSTtTQ.png" /><figcaption>output</figcaption></figure><p>Example 2: When the script is executed as</p><p>./createDirectories.sh Movie 20 50 then it creates 50 directories as Movie20 Movie21 Movie23 ...Movie50</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RdA5T1GQ-midC40dvJ4NA.png" /><figcaption>output</figcaption></figure><p>2 . Create a Script to backup all your work done till now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJaBvRz1ac9CjUt5XIIv8A.png" /></figure><p>3. Read About Cron and Crontab, to automate the backup Script</p><p>Cron is the system’s main scheduler for running jobs or tasks unattended. A command called crontab allows the user to submit, edit or delete entries to cron. A crontab file is a user file that holds the scheduling information.</p><p>Cron- It is a linux utility to schedule jobs at an interval as per requirement.</p><p>Crontab — A crontab file is composed of six fields, separated by spaces, that specify the schedule for a task to run.</p><ol><li>Minute ( 0–59 )</li><li>Hour ( 0–23)</li><li>day of Month ( 1 -31 )</li><li>Month (1–12)</li><li>day of week (0–6 )</li><li>username ( e.g. root)</li><li>command to be executed</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOLaHqc0zkAFZMJs5JqNNA.png" /></figure><p>🌼 <strong><em>crontab -l — -&gt; is used to check if any crontab is live <br>🌼 crontab -e — -&gt; e is for edit. It gives you an option of which editor to use, if crontab is being used first time on system. you could use, whatever you like.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a2sLJKyufMUpVBZAAfPk7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMHjePeFDOWpnajo-HGsrQ.png" /><figcaption>crontab to execute backup file.</figcaption></figure><p>4. Read about User Management and Let me know on Linkedin if you’re ready for Day 6.</p><p>A user is an entity, in a Linux operating system, that can manipulate files and perform several other operations. Each user is assigned an ID that is unique for each user in the operating system. In this post, we will learn about users and commands which are used to get information about the users. After installation of the operating system, the ID 0 is assigned to the root user and the IDs 1 to 999 (both inclusive) are assigned to the system users and hence the ids for local user begins from 1000 onwards.</p><p>👉 <em>To </em><strong><em>list out all the users in Linux</em></strong><em>, use the </em><a href="https://www.geeksforgeeks.org/awk-command-unixlinux-examples/"><em>awk command</em></a><em> with -F option. Here, we are accessing a file and printing only first column with the help of print $1 and awk.</em></p><pre>awk -F&#39;:&#39; &#39;{ print $1}&#39; /etc/passwd</pre><p>👉 <em>Using id command, you can get the </em><strong><em>ID of any username</em></strong><em>. Every user has an id assigned to it and the user is identified with the help of this id. By default, this id is also the group id of the user.</em></p><pre>id username</pre><p>👉 <em>The command to add a user. useradd command adds a new user to the directory. The user is given the ID automatically depending on which category it falls in. The username of the user will be as provided by us in the command.</em></p><pre>sudo useradd username</pre><p>👉 <em>Using </em><a href="https://www.geeksforgeeks.org/passwd-command-in-linux-with-examples/"><em>passwd command</em></a><em> to assign a password to a user. After using this command we have to enter the new password for the user and then the password gets updated to the new password.</em></p><pre>passwd username</pre><p>👉 <strong><em>Accessing a user configuration file</em></strong>.</p><pre>cat /etc/passwd</pre><p><em>This commands prints the data of the configuration file. This file contains information about the user in the format.</em></p><pre>username : x : user id : user group id : : /home/username : /bin/bash</pre><p>👉 <em>The command to </em><strong><em>change the user ID for a user</em></strong><em>.</em></p><pre>usermod  -u new_id username</pre><p><em>This command can change the user ID of a user. The user with the given username will be assigned with the new ID given in the command and the old ID will be removed.</em></p><p><em>Example: sudo usermod -u 1982 test</em></p><p><em>👉 Command to </em><strong><em>Modify the group ID of a user</em></strong><em>.</em></p><pre>usermod -g  new_group_id username</pre><p><em>This command can change the group ID of a user and hence it can even be used to move a user to an already existing group. It will change the group ID of the user whose username is given and sets the group ID as the given new_group_id.</em></p><p><em>Example: sudo usermod -g 1005 test</em></p><p><em>👉 You can </em><strong><em>change the user login name</em></strong><em> using usermod command. The below command is used to change the login name of the user. The old login name of the user is changed to the new login name provided.</em></p><pre>sudo usermod -l new_login_name old_login_name</pre><p><em>Example: sudo usermod -c John_Wick John_Doe</em></p><p><em>👉 The </em><strong><em>command to change the home directory</em></strong><em>. The below command change the home directory of the user whose username is given and sets the new home directory as the directory whose path is provided.</em></p><pre>usermod -d new_home_directory_path username</pre><p><em>Example:</em> usermod -d new_home_directory test</p><p>👉 <em>You can also </em><strong><em>delete a user name</em></strong><em>. The below command deletes the user whose username is provided. Make sure that the user is not part of a group. If the user is part of a group then it will not be deleted directly, hence we will have to first remove him from the group and then we can delete him.</em></p><pre>userdel -r username</pre><p><em>Example: sudo userdel -r new_geeks</em></p><p>5.Create 2 users and just display their Usernames</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sByyixvVPeIh4FcF2ISI8w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9cf23ca4b69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#90 days of DevOps # Day 04]]></title>
            <link>https://medium.com/@sharmabhagya2414/90-days-of-devops-day-04-2ba46b0064a9?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ba46b0064a9</guid>
            <category><![CDATA[90daysofdevops]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devopsdays]]></category>
            <category><![CDATA[devops-training]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 21:28:20 GMT</pubDate>
            <atom:updated>2023-08-14T21:28:20.731Z</atom:updated>
            <content:encoded><![CDATA[<p>Day 04 with <a href="https://medium.com/u/1af2351758a5">Shubham Londhe</a></p><p>👉Explain in your own words and examples, what is Shell Scripting for DevOps.</p><p>Shell scripting involves writing scripts or programs using a command-line interface to automate tasks, manage resources, and perform operations in an operating system. Shell scripting in Devops is crucial for automating tasks like building, deploying, and testing software, providing flexibility, portability, and rapid iteration. It also enables troubleshooting and debugging, making it an essential tool for improving efficiency and reliability in software development and deployment processes.</p><p>example: updating software on a server every night at a particular time. DevOps Engineer would write a cron job to execute the script without any human intervention.</p><p>👉What is #!/bin/bash? can we write #!/bin/sh as well? <br>#!/bin/bash is called a &quot;shebang&quot; or &quot;hashbang.&quot; It&#39;s a special line at the beginning of a shell script that tells the operating system what shell to use to interpret the script. In this case, #!/bin/bash tells the system to use the bash shell.</p><p>Yes, you can also use #!/bin/sh in your shell script. The difference is that #!/bin/bash specifies the bash shell specifically, while #!/bin/sh specifies the system&#39;s default shell (which may or may not be bash).</p><p>In most cases, using either one will work fine. However, bash has some additional features and capabilities that sh does not, so if you need those features, you should use #!/bin/bash. If you don&#39;t need those features, you can use #!/bin/sh and your script will still work.</p><p>👉Write a Shell Script which prints I will complete #90DaysOofDevOps challenge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*H--MZjHKBX-DJPjE-bm1HQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*ePs83_KdG-a6e9oI49pmog.png" /><figcaption>Output</figcaption></figure><p>👉Write a Shell Script to take user input, input from arguments and print the variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTlL-cIIJfdglKhrbqbdRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5NKHR6lDgB1n2pj-pjVUSg.png" /><figcaption>Passing argument</figcaption></figure><p>👉Write an Example of If else in Shell Scripting by comparing 2 numbers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*Op-IL7zJB84wHKXStL_VZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*6-Lgn1x0WLKgfQH9Azq4kA.png" /><figcaption>Output</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ba46b0064a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#90 days of DevOps ]]></title>
            <link>https://medium.com/@sharmabhagya2414/90-days-of-devops-63dfa81b41ac?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/63dfa81b41ac</guid>
            <category><![CDATA[devops-training]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[day-03]]></category>
            <category><![CDATA[90daysofdevops]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Thu, 10 Aug 2023 21:25:52 GMT</pubDate>
            <atom:updated>2023-08-10T21:25:52.700Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Day 03 : Day 3 Task: Basic Linux Commands</em></strong></p><p>Task: What is the linux command to</p><ol><li>To view what’s written in a file. — cat</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IBVg4XJFQ7cRlG3SRntImQ.png" /></figure><p>2. To change the access permissions of files. — chmod 777 filename</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVnDoKn7IYxwvffzIVGHLA.png" /></figure><p>3. To check which commands you have run till now. — history</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ioVpurBrR0OpaAv_7uD2Sw.png" /></figure><p>4. To remove a directory/ Folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OO7JIng_3QKQueon23tOIA.png" /></figure><p>5. To create a fruits.txt file and to view the content. <br>touch fruits.txt → to create a file<br>cat fruits.txt → to view the content</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*x8klttLBsQtJsGxD7efoUw.png" /></figure><p>6 .Add content in devops.txt (One in each line) — Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.</p><p>7. To Show only top three fruits from the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*DOGaEAeILOANVmml-lEjOQ.png" /></figure><p>8. To Show only bottom three fruits from the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*Fc1wYxZDsM_T4lf5vfgfCA.png" /></figure><p>9. To create another file Colors.txt and to view the content.</p><p>10. Add content in Colors.txt (One in each line) — Red, Pink, White, Black, Blue, Orange, Purple, Grey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*LkY2f-YFIDDRzZBoz-9AYg.png" /></figure><p>11 .To find the difference between fruits.txt and Colors.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bUXNu3RdAU2-tjXH70eXnw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63dfa81b41ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#90 Days of DevOps]]></title>
            <link>https://medium.com/@sharmabhagya2414/90-days-of-devops-fb4a24d2b5d3?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb4a24d2b5d3</guid>
            <category><![CDATA[day-02]]></category>
            <category><![CDATA[90daysofdevops]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Thu, 10 Aug 2023 20:20:49 GMT</pubDate>
            <atom:updated>2023-08-10T20:20:49.251Z</atom:updated>
            <content:encoded><![CDATA[<p>Day 02 with <a href="https://medium.com/u/1af2351758a5">Shubham Londhe</a></p><blockquote><strong>Day 2 Task: Basics linux command</strong></blockquote><blockquote>Task: 1. What is the linux command to Check your present working directory.</blockquote><blockquote>2. List all the files or directories including hidden files.</blockquote><blockquote>3 .Create a nested directory A/B/C/D/E</blockquote><p>Let’s first Understand few things first :</p><p><strong><em>👉Why linux is Preferred than any other OS ?<br></em></strong>Linux is considered a highly secure system, and bugs and vulnerabilities can be fixed easily due to its open-source platform.</p><p><strong><em>👉 Linux Architecture</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jlW8iKFDnE_jx1nM4tDW_A.png" /></figure><p><strong>HARDWARE:</strong> physical parts of a computer, such as central processing unit (CPU), monitor, mouse, keyboard, hard disk and other connected devices to CPU. <br><strong>KERNEL:</strong> A kernel is a computer program and is the central, core part of an operating system. It manages the operations of the computer and the hardware, most notably memory and CPU time. It is an integral part of any operating system. <br><strong>SHELL:</strong> Shell is an environment in which we can run our commands, programs, and shell scripts. It is a user interface for access to an operating system’s services. (User interface program execution, file system manipulation, input/output operations, communication, resource allocation, error detection, security and protection)</p><p><strong>Application programs/software:</strong> An application, or application program, is a software program that runs on your computer. It is excited by user. Some inbuilt application programs in Linux are terminal, Firefox browser, Libre office</p><p>👉 Task 2 Commands:</p><ol><li>Check your present working directory. <br>Pwd — print work directory. Gives the present working directory.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tes8LKFjiD_J1vGfL0ZgOQ.png" /></figure><p>2. List all the files or directories including hidden files.<br> ls -a — list all including hidden files and directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WemDoR5SpkUcrdGCCeJ7pA.png" /></figure><p>3. Create a nested directory A/B/C/D/E</p><p>mkdir directoryName --&gt; to make a directory in a specific location<br>mkdir -p directoryname, here p is for parent directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_O6NS9O9yHbRLhywlNXrQ.png" /></figure><p><a href="https://smmcollege.in/wp-content/uploads/2021/01/Architecture-of-Linux-operating-system.pdf">https://smmcollege.in/wp-content/uploads/2021/01/Architecture-of-Linux-operating-system.pdf</a></p><p><a href="https://github.com/LondheShubham153/90DaysOfDevOps/blob/master/2023/day02/basic_linux_commands.md">https://github.com/LondheShubham153/90DaysOfDevOps/blob/master/2023/day02/basic_linux_commands.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb4a24d2b5d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#90 Days of DevOps  #Day 01]]></title>
            <link>https://medium.com/@sharmabhagya2414/90-days-of-devops-day-01-1816e7c4ede?source=rss-5cc2c63d5abb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1816e7c4ede</guid>
            <category><![CDATA[devops-training]]></category>
            <category><![CDATA[devopsdays]]></category>
            <dc:creator><![CDATA[Sharmabhagya]]></dc:creator>
            <pubDate>Wed, 09 Aug 2023 16:16:13 GMT</pubDate>
            <atom:updated>2023-08-09T16:24:47.791Z</atom:updated>
            <content:encoded><![CDATA[<h3>#90 Days of DevOps</h3><p>Day 01 with <a href="https://medium.com/u/1af2351758a5">Shubham Londhe</a></p><blockquote><strong>What is DevOps? <br></strong>DevOps is a methodology which Involves practices to bridge the gap of Dev and ops team by using Open source automation build tools. <em><br></em><strong>formal defination</strong> : “DevOps is the union of people, process, and products to enable continuous delivery of value to our end users.”</blockquote><ul><li><strong>What is Automation, Scaling, Infrastructure ?<br> &gt; Automation</strong> <em>is the use of technology to perform tasks with reduced human assistance. Automation helps you accelerate processes and scale environments, as well as build continuous integration, continuous delivery, and continuous deployment (CI/CD) workflows. <br></em><strong><em>&gt;</em></strong><em> </em><strong><em>Scaling</em></strong><em> means the system can expand automatically during a high workload and shrink back when the needs are reduced to normal. A successfully scaled DevOps promotes mutual collaboration among teams, reduced bottlenecks in deliveries, faster feedback cycles, and resilient product updates.<br>&gt; </em><strong>Infrastructure as Code (IaC)</strong> <em>is the managing and provisioning of infrastructure through code instead of through manual processes.</em></li><li><strong>Why DevOps is Important ?</strong></li></ul><p><em>The main goal of DEVOPS is to shorten cycle time. Start with the release pipeline. How long does it take to deploy a change of one line of code or configuration.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*85S_qYuuTNKJDkqI-dwWGg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1816e7c4ede" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>