2019-05-09
Vim tips: The basics of search and replace

Let’s start by looking at searches and doing search and replace operations within Vim. You can do a search in normal mode by using /searchstring . This will search forward through the file for searchstring . Likewise, running ?searchstring will search backwards through the file. After running a search once, you can repeat it by using n in command mode, or N to reverse direction.

When you want to search for a string of text and replace it with another string of text, you can use the syntax :[range]s/search/replace/. The range is optional; if you just run :s/search/replace/, it will search only the current line and match only the first occurrence of a term.

2019-05-07
Installing Java 8 on CentOS 7

In this tutorial, we’ll be showing you how to install Oracle’s Java 8 programming language specifically onto a CentOS 7 server. This simple object-oriented language is used for many of the applications and websites you come across today. Let’s jump right in!

Pre-flight

  1. Open the terminal and login as root.

  2. Working on a Linux CentOS 7 server

  3. No installations of previous Java versions

Install PHP 7 on CentOS 7

CentOS 7 ships with PHP version 5.4 which has been officially EOL for quite some time and is no longer supported.

By using PHP 7 your applications will load faster and consume less system resources.

In this tutorial, we will explain how to install or upgrade to PHP 7.0. 7.1, 7.2 and 7.3 on a CentOS 7 system. We’ll also show you how to integrate PHP with Nginx and Apache.

Also prior to installing a specific PHP 7.x version make sure that it is supported by your application.

How To Install Git On CentOS 7 With Yum Or Latest Repository

Git released version 2.21 on Feb 24, 2019. This tutorial is for installing the latest version release of Git 2.21 on CentOS/RHEL 7/6.

Let’s walk through the process of installing Git on CentOS 7.

Prerequisites

  • A Linux-based system with a CentOS 7 installed
  • A non-root user account with sudo privileges

Tools/Software

  • Default package installer, Yum
  • CentOS development tools and default repositories