Similar Posts
Replace old text with new text Linux Command
[root@srv01 demo]# grep -rl ‘from test old’ . | xargs sed -i ‘s/from test old/from test new/g’
Install XenTools on Linux VMs
Objective This articles describe on installing the paravirtualized drivers on a linux operating systems like centos, redhat, ubuntu Instructions 1. Insert the XenTools ISO in the DVD drive of the Linux VM2. Mount the DVD drive to /mnt using : “mount /dev/xvdd /mnt”It says , mount : block device /dev/xvdd is write-protected, mounting read-only The…
How to move OpenCart website from one domain to another?
OpenCart is one of the simplest e-commerce platforms to build an online store. OpenCart offers you an ‘easy-to-work-with’ code-base with which you can get an e-Commerce site online, quickly. If you are looking for a safe way to move OpenCart website from one domain to another, follow the process below. Here are the steps to…
How To Create a Linux Swap File
In this article, we will explain swap space, and learn how to create swap space using a swap file in Linux: this is important in case we don’t have a swap partition created on the hard disk. Swap space/partition is space on a disk created for use by the operating system when memory has been…
How to use sed to find and replace text in files in Linux / Unix shell
Find and replace text within a file using sed command The procedure to change the text in files under Linux/Unix using sed: Use Stream EDitor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt It tells sed to find all occurrences of ‘old-text‘ and replace with ‘new-text‘ in a file named input.txt The s is the substitute…
Setup Virtual Hosts with Apache on Node.js CentOS Server
Setup Virtual Hosts with Apache on Node.js CentOS Server Do you want to host multiple Node.js Websites on the same Server with different location stored? No Problem, we have a solution for you. We will use apache to turn our server into a web server. There are small requirements for this process. Requirements CentOS Machine…