How To Install The Latest Git On Ubuntu 14.04

How To Install The Latest Git On Ubuntu 14.04Version 1.0Last edited: 03 June/2014This tutorial explains the process of installing Git on Ubuntu 14.04. For the uninitiated, Git, the client for the immensely popular GitHub, is a commonly used open source distributed version control system that was originally developed by Linus Torvalds with the objective of supporting Linux Kernel development. Each Git working directory acts like a full-fledged repository, replete with complete history and capabilities for full version tracking, sans any dependence on central server/network access. While the lat

Read More »

Linux Basics: How to Add and Delete Shell Users on CentOS

Linux Basics: How to Add and Delete Shell Users on CentOSTutorial Topic:Contents1.1 Overview1.2 Addition and Deletion of Shell Users on CentOS – An Introduction1.3 How To Add a Shell User on CentOS1.4 How To Delete a Shell User on CentOS1.1-OverviewCentOS Linux is a popular community-supported distribution primarily derived from sources that are freely available to the public by Red Hat (for Red Hat Enterprise Linux-RHEL). Given the lineage, CentOS Linux essentially aims to be functionally compatible with RHEL. A revised CentOS version is generally released roughly every 2 years, in addition t

Read More »

Linux Basics: How to Edit Files on The Shell with Nano

Linux Basics: How to Edit Files on The Shell with NanoContents1.1: Nano- An Overview1.2: Navigating Nano Text Editor1.2.1 Opening, Saving and Inserting Files1.2.2 Cut and Paste Tasks1.2.3 Navigation Around the File1.3: Helpful Shortcuts1.1 Nano-An OverviewNano is a fairly versatile and user-friendly text editor that is capable of being used in a fuss-free manner by the somewhat inexperienced users too, as against the more sophisticated text editors such like Emacs and Vim. While these are excellent programs, they do have a bit of a learning curve. It works seamlessly in combination with Sudo,

Read More »
How to use grep to search for strings in files on the shell

How to use grep to search for strings in files on the shell

1 The GREP command – an overviewThe grep command, which stands for global regular expression print, is one of the most versatile commands in a Linux terminal environment. It is an immensely powerful program that allows the user to sort input according to complex rules, which makes it a rather popular link in numerous command chains. The grep command is primarily used to search text or any file for lines that contain a match to the specified words/strings. By default, grep displays the matched lines, and it can be used to search for lines of text that match a regular expression(s), and it outpu

Read More »
Setting a static IP on Ubuntu: a beginner’s guide

Setting a static IP on Ubuntu: a beginner’s guide

Setting a static IP on Ubuntu: a beginner’s guideMany situations occur when a static IP address needs to be set. For example, if you have programs that use the IP address say for remote login, then you might hardcode the IP address. But if the IP address is dynamic it can change, and thus you need an IP that does not change and hence you would need to set a static IP for your system. This tutorial deals with setting a static IP for Ubuntu OS.1 Manually configuring the interfaceThis step involves manually configuring the network interface by making changes to the “interfaces” file. Here I use t

Read More »
Shell Scripting Part 2: Accepting Inputs and Performing Shell Arithmetic

Shell Scripting Part 2: Accepting Inputs and Performing Shell Arithmetic

Shell Scripting Part 2: Accepting Inputs and Performing Shell ArithmeticHi! This article is the second part of the Howtoforge shell scripting tutorial series. By this time, I assume that you have read the first part of the series and know how to create a simple script and execute it. In the second part, you will learn how accept inputs from the user and process them through shell scripting. Let’s get started!Variables in LinuxJust like programming languages, Linux shell has the capability of storing data in variables. A variable is a container that temporarily stores data that will be processe

Read More »
Shell Scripting Part I: Getting started with bash scripting

Shell Scripting Part I: Getting started with bash scripting

Shell Scripting Part I: Getting started with bash scriptingHello. This is the first part of a series of Linux tutorials. In writing this tutorial, I assume that you are an absolute beginner in creating Linux scripts and are very much willing to learn. During the series the level will increase, so I am sure there will be something new even for more advanced users. So let’s begin.IntroductionMost of our operating systems including Linux can support different user interfaces (UI). The Graphical User Interface (GUI) is a user-friendly desktop interface that enables users to click icons to run an a

Read More »
Shell Scripting Part 3: Decision Control Structures in Shell Scripts

Shell Scripting Part 3: Decision Control Structures in Shell Scripts

Shell Scripting Part 3: Decision Control Structures in Shell ScriptsHi! We already covered the basics of shell scripting such as accepting inputs, process data through arithmetic operations and generating and displaying output in the previous parts of this tutorial (part 1 and part 2). In this part, we will go deeper to a more advanced topic in a programming language — making decisions in a program, but this time we will do it using bash shell. Let’s get started!IntroductionMost of our programming languages today are able to make decisions based on conditions we set. A condition is an express

Read More »
Shell Scripting Part 4: Repetition Control Structures

Shell Scripting Part 4: Repetition Control Structures

Shell Scripting Part 4: Repetition Control StructuresWelcome to part four of HowtoForge’s shell scripting tutorial series (Click here to read the part 1, part 2 and part 3 of the tutorial). In this part, we will cover the different repetition control structures of the bash shell and how to use each structure by providing some examples. Let’s get started.IntroductionRepetition control structure, also known as looping control structure, is a type of control structure in programming languages that is used to simplify repetitive or recursive tasks. The looping statements optimize any code by provi

Read More »
Shell Scripting Part V: Functions in Bash

Shell Scripting Part V: Functions in Bash

Shell Scripting Part V: Functions in BashHi! Welcome to HowToForge’s shell scripting tutorial series. If you want to read the previous releases of the tutorial feel free to click here for part1, part2, part3 and part4 of the tutorial. In this part, you will learn how to efficiently structure your scripts by creating functions. By the end of this tutorial, you will be able to know how to create functions in the Linux Bash Shell, pass parameters to your functions and return some values from a function to your main code. Let’s get started!IntroductionA function, also known as a subroutine in prog

Read More »