git is a version control system. It is a software developed by the same guy who created Linux operating system. His name is Linus Torvalds. Now the question is what is version control system. A system that controls the versions of our code. Let's take a scenario. We are two guys creating an application. Both of us are working in backend. There is a new feature to be developed by both of us. I have done a part of work then you can use my part and integrate with yours. And if you have developed something, I can use it. But let's say there is a problem in my code. We can get back to a position where we can have a fresh code from that point. we can have two types of repository: local repository remote repository The remote repository is an optional repository. It is used to keep the work safe. Additionally, it is used as a reference by our peer developers. They can use the remote repository to make a copy of it for them selves. They can push the changes from there local to remote r...
Useful ls commands ls -l -> lists all the details regarding files in the current directory ls -a -> show hidden files as well. A file starting with . is considered hidden in linux. ls -r -> reversing the order ls -h -> size in human readable format ls -t -> sort by time ls -S -> sort by size ls -X -> sort by extension ls -R -> recursively show content of subdirectory ls -1 -> listing file with one option. One per line. ls | cowsay -> list in funny way ls —color=never (double dash) to remove the colouring Remember, every expert was once a beginner. With patience and practice, you'll soon be navigating the Linux file system like a pro! pwd command: It has two addition options pwd -L : logical means as per current structure pwd -P: physical which means as per the actual structure User: User creation: sudo useradd <user-name> sudo useradd sitendra Details about a user cat /etc/passwd sudo grep -w '<username>' /etc/passwd uns...
Let us say we have two people in a room, they have to talk to each other. You can simply talk them. Now if you have more than 2 people, you need to refer to their names for clarity. If you have to talk to a friend but he lives in a different house than yours, now you need to a proper address to reach to him. But what if there lives multiple people, you will just share the message to a gatekeeper. The gatekeeper will forward the message to the right house. If the house is not under his radar, the gatekeeper will request the next gatekeeper until it finds the right house. Similarly, if you want a data within your house, you can ask directly. But if you want to get the data outside your house, you need to ask a gate keeper to get the data for you. This gate keeper is called a router. The router does not have the data itself but a server has. Once the server is identified, the server sends the data to the router and the router takes this data and send to the previous...
Comments
Post a Comment