Search Results for: linux directory structure

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

How to install git in Linux without root access ?

Introduction In one of our earlier articles on using the git distributed version control system, we showed you how to install git in Linux. As you may observe from that article, installing git is a fairly straightforward process. But what if you were not a system administrator and did not have sahil privileges on the system you were working on. One alternative could be to build the git package from the source code but that would still require access to a compiler like gcc which you may not have. In this article, we will share a very simple method to install the git version control system on your machine requiring only access to the rpm package for git.   Step 1: Create a folder named git The first step is to create a folder named git where you would like to store git related binaries. [sahil@linuxnix:~] $ mkdir git   Step 2: Copy the git rpm to the git folder The next step is to copy the git rpm to the folder named git that we created in the previous step. [sahil@linuxnix:~] $ mv git-1.8.3.1-12.el7_4.x86_64.rpm git [sahil@linuxnix:~] $ cd git [sahil@linuxnix:~/git] $ ls -ltr total 4516 -rw-r--r-- 1 sahil sahil 4600452 Aug 16 08:59 git-1.8.3.1-12.el7_4.x86_64.rpm   Step 3: Extract the git rpm contents Now we will extract the contents of the git rpm into the current working directory i.e...

Read More

Online training on Linux Bash shell scripting

We are excited to announce our online training from this weekend. These trainings are in-person and online based through GoToMeeting software. The first training which is we are planning to give is “Bash shell scripting” for beginners. If you want to start coding for your system administration activities, then this course is for you. We will teach basics with some detailed explanation about each concept. Please find below curriculum on what we teach in this class. Please register for your self to join first two sessions for free of cost here: “Online shell scripting training” or fill below embedded form. Training Date and time: 10th Feb 2018, that is this Saturday and 8.30AM IST. Introductory Fee: $50. From next batch, the fee will be $100. Loading… About the trainer: Surendra Kumar Anne, Sr. Devops engineer. Content of course Basics of Unix/Linux (For nonsystem admins) History of Unix/Linux Flavors of Linux Linux Architecture Linux prompt and CLI Unix file systems(Directory structure) Shell scripting basics What is shell scripting? Why write a shell script? How to write shell scripts? Metadata in shell scripts Code in shell scripting Comments Executing shell script Debugging shell scripts Printing and Reading echo printf Read Redirection operators Input and output Redirection( <, > ) Input and output append redirection ( <<, >>) STDOUT/STDERR redirection(1, 2) /dev/null Variables and Arrays User-defined scalar variables or Strings System-defined scalar variables...

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.