<?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 Pratik Solanki on Medium]]></title>
        <description><![CDATA[Stories by Pratik Solanki on Medium]]></description>
        <link>https://medium.com/@pratiks.in?source=rss-f692b01b8e72------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*I9Mp0ELN4i-ADM68ypyarA.jpeg</url>
            <title>Stories by Pratik Solanki on Medium</title>
            <link>https://medium.com/@pratiks.in?source=rss-f692b01b8e72------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 15:02:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pratiks.in/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[Introduction to GIT]]></title>
            <link>https://medium.com/@pratiks.in/introduction-to-git-a9e08e7c64ca?source=rss-f692b01b8e72------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9e08e7c64ca</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[source-code-management]]></category>
            <category><![CDATA[vc]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[version-control-system]]></category>
            <dc:creator><![CDATA[Pratik Solanki]]></dc:creator>
            <pubDate>Fri, 22 Dec 2017 07:49:11 GMT</pubDate>
            <atom:updated>2017-12-22T07:49:11.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*mf_dqn8U3ulXP-Zlkf3YvQ.jpeg" /></figure><p>If you know what is git you can surely skip this blog. But if you are still interested to know about some history of <em>version control</em> systems , installing it and setting up basic configuration.</p><blockquote><strong>What is Git?</strong></blockquote><p>Git is a Version Control System(VCS). Version Control System is a software which keeps track for all the changes you make to files and directories.it is specially good for the text changes you make to a file.</p><p>It is mainly used to manage computer source code. that’s why it is also known as Source Code Management.</p><p>we all must have at some point created a file or a report and saved it with different tags to save different version. I remember making my final years project report and each time i use to find something that i changed/updated. I use to save a new file like finalReport_v1.doc , finalReport_v2.do, finalReport_v3.doc, finalReport_v4.doc and that’s how i use to do it.</p><p>we all use this everyday and it is also a kind of version control “<strong><em>undo and redo</em></strong>” it is also a example of version control which let’s you go back to the previous changes that you have made.</p><p>now you know what is the core of a VCS.</p><blockquote>A little history of Git and how it was born</blockquote><p>There have been many version control system each were in a different time frame. but the most popular version control system before git was “<strong>BitKeeper SCM</strong>” it was a closed source, proprietary software. But the Community version of Bitkeeper was free it had a few less features and usage restrictions. and this version was used for the source code management for linux kernel from 2002–2005. It was controversial to use a proprietary software to build the linux kernel.</p><p>Because the linux kernel is an open source project no one owns it were the SCM was owned and controlled by a company. so a lot of people objected saying “<em>what if they changed the rules in the future, suddenly we’re going to be screwed because we are stuck using this company’s software?</em>”. Well in April 2005 the community version stopped being free and all those prediction came true.</p><p>During this time Git was born in April 2005. Git was created by <a href="https://en.wikipedia.org/wiki/Linus_Torvalds"><strong>Linus Torvalds</strong>,</a> he is the guy who developed linux and still drives the development of linux kernel. When Bitkeeper stopped being free they needed an alternative to manage the source code and linus was not so happy with the other open source VCS.He was very impressed with some features of bitkeeper. so he decided to build one from scratch.</p><p>Git is <em>Distributed Version Control,</em> It is also open source and free software. which is great for us so that people like us can download it and use it for free with no license fees or anything like that. as it open source the community can see the source code and contribute to it as well. it is also compatible with most platforms with unix like systems (linux, Mac OS X ) and windows. and it is also faster then most of other SCMs (100x faster in some cases). its has better safeguards build into it to safe data from corruption.</p><p>This improvement worked Git became a hit, as people discovered the power of distributed version control as they got used to all the Git’s nice features, Git has experienced an explosion in popularity.</p><p>There are no official statistic on this but to get an example. git hub launched in 2008 to host Git repositories.</p><p>2009 : over 50,000 repositories with a 100,000 users.<br>within just 2 years <br>2011: over 2 Million repositories with a 1 Million users.<br>After 11 years now in <br>2017: over 67 Million repositories with a 24 Million users.</p><blockquote>What is Distributed Version Control and why it is such an important feature of GIT.</blockquote><p>In past the version control system used to have a central code repository model,Which means there is one central place where you store the master copy of your code and when you are working with the code you check out the copy from the master repository. you work with it make your changes and than we submit those changes back to the central repository.Other user can also work from that repository submitting their changes. and it is up to the user to keep up to date with whatever is happening in the central repository, to make sure we pull down and update any changes that other people have made. If the central server is down for an hour nobody can collaborate at all or save changes to anything they’re working on. If the hard disk or the central database becomes corrupted, and proper backups haven’t been kept, you lose absolutely everything</p><p>Git doesn’t work that way. Git is Distributed Version Control system. different users maintain their own repositories, instead of working from a central repository.</p><p>The changes are stored as change sets or patches and it is focused on tracking changes and not versions of the document. now there is a very slight difference. in past the VCS used to track changes it takes to get from version-to-version of each of the different states of a directory.<br>Git focuses on the change sets. than this change sets can be exchanged between repositories. we’re not trying to keep up-to-date with latest version of something instead the question is do we have a change set applied or not?</p><p>So there is no single master repository, just many working copies. each with their own combination of the change sets. <br>Example: if there is changes to a document as sets A,B,C,D,E,F<br>Repo 1: A,B,C,D,E,F<br>Repo 2: A,B,C,D<br>Repo 3: A,B,D,E<br>Repo 4: A,B,E,F<br>no one of this Repository are right and no one of these is wrong.<br>none of them is the master repository and the other are somehow out-of-date or out of sync with it.</p><p>They are just different repository with different change sets in them. we can add change set G to repo 3 and than we could share it with repo 4 with out ever going to any central server.</p><p>Now by convention we do designate a remote repository as being a master repository, and than all of the team can than be in sync to it. but that is not build-in to git, it’s not the part of the git architecture, that’s just a convention that we say okay this is the master one and everyone is going to submit their changes to the master. and we all are trying to stay in sync with the master.</p><p>We can also have three to four different repository each with different changes and feature of the same project and we can swap those changes within each other without any central</p><p>Advantages of Git being distributed <br>There is no need to communicate with the central server.<br>-&gt; <em>so it makes things faster<br>-&gt;No network access is required to submit our changes. we can work without the Internet when needed.</em></p><p>There is no single failure point with previous generations of SCM if some thing goes wring with the central repository that can be a real show stopper for everyone else who is working off that central repository. With GIT we don’t have that problem. Everyone can keep working they each got their own repository that they are working from, not just a copy that they are trying to keep in sync with a central repository.</p><p>It also encourages participation and “forking” of projects and this is really very important in open source community because developer can work independently, they can then make changes, bug fixes, feature improvements and then submit those back to the project for either inclusion or rejection. <br>And if you don’t like</p><p>Distributed Version Control is an important part of GIT architecture that you need to keep in mind. there is no single central repository.</p><blockquote>Installing GIT</blockquote><p>To install git visit this link <a href="https://git-scm.com/download">https://git-scm.com/download</a> and download it according to your OS.</p><p>Basic Configuration of GIT</p><p>Git store it configuration to three place according to how widely those configuration need to apply. They are System Level, User Level and Project level Configuration.</p><p><strong>System level configuration</strong> means it will be of a systems level for all the user of that system and you might not want to use it that way but it still exists. we can locate it in Unix it will be in /etc/gitconfig , It will also be in the same file and folder in windows but stored in a different place most likely it will be stored in Program files\Git.</p><p><strong>User Level Configuration </strong>will apply to a single user which most of use prefer. in unix it will be in our root directory ~/.gitconfig <br>In windows it will also be in your user directory $home\.gitconfig</p><p><strong>Project level Configuration</strong> will apply to a project-by-project basis. In a single project we can have configuration that apply only to that project. mostly we will be using a user level configuration but if we need some thing very specific to a project we can look for folder ‘.git’ and there will be a file called ‘config’</p><p>Git gives use some command we can use that we can use to make editing these configuration easy. The command are same for all three of it ‘<em>git config</em>’ followed by a modifier. which tells us what level of configuration we want to do.</p><ul><li>System level<br>git config --system</li><li>User level<br>git config --global</li><li>Project level<br>git config</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*BDkGAGGy0MSNb902lppxXg.png" /><figcaption>add your name using this command.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*FWlMIyYGOpHDb7TSFIe1MQ.png" /><figcaption>add your email using this command and i have written a fake email you should write your own email.</figcaption></figure><p>This is minimum you need to configure and start working with GIT.</p><p>here’s an extra configuration you should add. It’s to tell git to use colors when outputting things to the command line. If we don’t use this it will just give us monochromatic text, just one single color, instead of setting this command it will tell git to use colors like red,green and blue to help illustrate the point it is trying to make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*YHCc7fiLCZJ7YgPLz9I8ZA.png" /></figure><p>If you ever get stuck somewhere and need help you can simply type.<br>“git help” which will show you some basic git command of git.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*9UD4sAtc27IAjvdXgGfDpQ.png" /></figure><p>we can further find help of any of the given command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3NYkl-UM3MX5iPg6-kDaVQ.png" /></figure><p>that’s all for this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9e08e7c64ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Linux file permission]]></title>
            <link>https://medium.com/@pratiks.in/understanding-linux-file-permission-d68ab68c4884?source=rss-f692b01b8e72------2</link>
            <guid isPermaLink="false">https://medium.com/p/d68ab68c4884</guid>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Pratik Solanki]]></dc:creator>
            <pubDate>Fri, 15 Sep 2017 06:41:22 GMT</pubDate>
            <atom:updated>2017-09-15T06:41:22.709Z</atom:updated>
            <content:encoded><![CDATA[<p>There are already a lot of security features Linux have with it but today let’s start talking about file permission.</p><p><strong>Basics file Permission</strong></p><p>file permission group</p><p>There 3 types of file permissions</p><ol><li>READ — The read permission defines the users capabilities to read the content.</li><li>WRITE — The Write permission gives the user to write or modify the file or directory.</li><li>EXECUTE — The Execute permission affects a user’s capability to execute a file or view the contents of a directory.</li></ol><p>The 3 user groups</p><ol><li>Owner — the permissions given to the owner will only impact the owner,.</li><li>Group — the permissions given to the Group will only impact the group, a group can be o any no of users.</li><li>All user — any user guest or group everyone can be given permission which will affect the all users, you have to be careful while giving permission to this it can cause some serious damage to your files.</li></ol><p>HOW TO VIEW PERMISSION</p><p>yes! yes! you can definitely see them in properties with few clicks form your mouse but we will discuss on how will you see it using your terminal.</p><p>To list all the detailed files and directory list use the command</p><p><em>ls -l</em> will show you all the visible files and directory.</p><p><em>ls -la </em>will show you all the hidden as well as visible.</p><p>The permission in terminal will be shown as</p><ul><li><em>_rwxrwxrwx 1 owner group</em></li></ul><ol><li>users permission<br>1) The first character that 1st marked with an underscore is the special permission flag that can vary.<br>2)the first 3 letter(rwx) shows the Owner’s permissions.<br>3)the next 3 letter(rwx) shows the Group’s permissions.<br>4)the last 3 letter(rwx) shows the All user’s permissions.</li><li>Following the integer/number displays the number of hardlinks to the file.</li><li>The last piece is the Owner and Group assignment formatted as Owner:Group.</li></ol><p>How to change th permission using command line we use the command<strong><em> chmod </em></strong>we assign permission explicitly or by using binary.</p><h4><strong>Changing permission explicitly</strong></h4><p>the permission groups</p><p><strong>u </strong>- Owner<br><strong>g</strong> - Group<br><strong>o</strong> - Others<br><strong>a</strong> - All users</p><p>the assignment operator which tells the system whether to add(+) or remove(-)</p><p>The Permission Types that are used are:</p><p><strong>r</strong> — Read<br><strong>w</strong> — Write<br><strong>x</strong> — Execute</p><p>example : <strong><em>chmod a-rw &lt;</em>filename<em>&gt;<br></em></strong><em>the above code will remove the file permission of read and write of the given filename for all users.</em></p><p>so for each user we have to write this it seems so much to type and remembering the user assignment signs using binary is much simple</p><h4><strong>Changing permission using Binary References</strong></h4><p>the permission is changed using 3 digit numbers</p><p>for example<em> </em><strong><em>chmod 640 &lt;</em>filename<em>&gt; </em></strong>which means the owner have read and write permission and the user group have read permission only.</p><p>the binary permission are give in same order owner,group,all user.</p><p>the binary numbers are added and given the permission of each users the binary values for read, write and execute are given below.</p><p><strong>r=4<br>w=2<br>e=1</strong></p><p>we will simply add up the permission we wish to give to each user. if we wish to give all 3 permission to all the users than it will be chmod 777 with the file name.</p><h4>so thats how you do it simple !</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d68ab68c4884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Ubuntu 16.04 LTS]]></title>
            <link>https://medium.com/@pratiks.in/how-to-install-ubuntu-16-04-lts-72fdea981621?source=rss-f692b01b8e72------2</link>
            <guid isPermaLink="false">https://medium.com/p/72fdea981621</guid>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Pratik Solanki]]></dc:creator>
            <pubDate>Mon, 14 Aug 2017 16:05:08 GMT</pubDate>
            <atom:updated>2017-08-14T16:05:08.552Z</atom:updated>
            <content:encoded><![CDATA[<p>let’s see how to install Ubuntu on laptop already running a windows 10 without hurting any of your data and the current operating system.</p><p>First we need to download Ubuntu you can get it directly from the official website linked below.</p><p><a href="https://www.ubuntu.com/download/desktop">https://www.ubuntu.com/download/desktop</a></p><p><a href="https://www.ubuntu.com/download/desktop">Download Ubuntu Desktop | Download | Ubuntu</a></p><p>We now need to create a DVD or a bootable pendrive and place the .iso file which you have already downloaded</p><p><strong><em>Creating a bootable pendrive.</em></strong></p><p>first we need to download a small software which will help us make or pendrive bootable link given below.<br> <a href="https://sourceforge.net/projects/unetbootin/">https://sourceforge.net/projects/unetbootin/</a></p><p>once you download and install it <br>Select the iso option and locate the file where you have downloaded it and then just click ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*Qd7t7ebUuToaU9yqRVN-oQ.jpeg" /></figure><p>Once you are done with it just shutdown you laptop/Desktop and boot start it.</p><p>follow the steps below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*Fy59pvXYLVXhVM7zxQuLEw.png" /><figcaption>Select install Ubuntu</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*d65gVFfNub07e0ZXrI_0Tg.png" /><figcaption>you can select both it’s up to you</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XjTV9EXDEUWcajrAkmmS7w.png" /><figcaption>go for the one which i have already selected</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*yJgE66_IvOzoDanU4_jL1Q.png" /><figcaption>we can allocate space according to our preferences.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*tTZonimS0yg4OaZZh-oAww.png" /><figcaption>finally choose the time location.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*oUb7qbGylOVzzTOmi9gDEg.png" /><figcaption>Select the Keyboard layout you are comfortable with</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*0qXXSfH1mc9gHtVcvZAknQ.png" /><figcaption>fill your detail and you are ready to go</figcaption></figure><p>after it might take a little time but you are done installing. now You have both windows and Ubuntu into your laptop.</p><p>You will get a option which OS you want to go with.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72fdea981621" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>