Author: Sahil Suri

How create a local git repository in Linux?

 Introduction Git is a version control system similar to how ‘track changes’ works in word processing programs. The main difference between git and these programs is that git can track changes to entire directories and not just a single file. The typical workflow with a ‘track changes’ program involves emailing a draft to collaborators so that collaborators can track their changes before emailing it back to the original author. This may work well when the number of collaborators is very few but quickly becomes unstable and problematic in larger teams. Git can also be compared to cloud synchronization services like Dropbox but you get a more fine-tuned version controlled history to revert back to and the ability for collaborators to simultaneously edit the same file. Depending on how we use git, the amount of storage space is not as limited as in the case of cloud providers. Git is a distributed version control system and succeeds centralized version control systems like SVN & CVS. Centralized systems required all users to connect to a centralized server before editing a file. As a distributed system each user has all the code as well as the revision history on the computer they are working on. This not only serves as a backup layer since only one computer is needed to repopulate the backup files and revision history but also allows multiple users...

Read More

Linux arp command explained with examples

Introduction A decent knowledge of networking is important for any system administrator managing servers in an enterprise environment. Linux and UNIX distributions provide a number of different commands which we could use to query and to an extent modify the network properties of our system. In this article, we will explain the use of a useful network diagnostics and troubleshooting tool named arp. We will be exploring what the arp tool does and the type of information it provides with the help of examples. It is worth noting that the arp utility is not confined to UNIX/Linux operating systems and can be found on Windows operating systems as well as networking and security devices.   What is ARP? ARP is the abbreviation for Address Resolution Protocol, which is used to find the address of a network neighbor for a given IPv4 address. This protocol is used by network nodes to resolve IP addresses to their corresponding MAC addresses. The mapping of the IP addresses to MAC addresses is stored in a cache on the system so that this information does not need to be retrieved repeatedly while the system communicates with it’s neighboring devices over the network. The purpose of the arp protocol is two fold i.e. it determines the physical/MAC address of the destination device while sending a data packet and it responds with the MAC address of...

Read More

Linux ip command explained with examples

Introduction If you’ve been working with Linux/UNIX operating systems for a while then you would’ve probably used the ifconfig command very frequently. In case you are new to Linux operating systems it’s still likely that you’ve used or at least heard of the ifconfig command at some point in your Linux user experience. The ifconfig command has been around for years and was primarily used to view the network interface cards on your system and their corresponding network information. The ifconfig command was also used to modify properties of network interfaces i.e. change the IP addresses assigned to them, assign multiple IP addresses etc. In this article we will not be covering the ifconfig command but will instead focus on it’s enhanced and more feature rich replacement found on almost all modern Linux distributions. The command we are referring to here is the ip command. The ip command has deprecated the ifconfig command to the extent that ifconfig is not even installed by default on RHEL 7/Centos 7 distributions. Let’s now take a look at some examples to familiarize ourselves with the ip command Example 1: Display network information for all network interfaces To view IP address information for all network interfaces we use the ‘ip address show’ command. [root@linuxnix ~]# ip address show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.