How To Create Empty Files For Existing Files In Unix

Empty File In this example I will show you how to create empty files for files in Unix or Linux based systems. You may need to create empty files for a list of corresponding files in a directory or folder. To create an empty file generally you may use touch command in Unix shell terminal. It is always simple to…

Auto Delete Backup Files Using Shell Script Cron Job

Introduction In this shell programming example, I am going to show you how to delete backup files automatically using shell script cron job. So, I will create a shell script in Unix programming and setup a cron job to automate the delete process. This automatic job will save your manual efforts of deleting files from the folders. You don’t need…

Cron Job Shell Script To Auto Backup Web Site Files

Web Site Backup Here I am going to show you how to setup auto backup web site files using shell script cron job. In the world of web, it is recommended that you take care of your web site files by taking backups of them frequently. If anything goes wrong so that you can take an appropriate action on your…

How to migrate website from shared hosting to VPS hosting

Introduction Here I will guide you how to migrate existing website from shared hosting to VPS hosting. I will talk about mainly PHP based website, for example, WordPress that has MySQL database for storing the information and runs on Apache web server. But this website may be based on any technology with any database as its persistent storage. The same…

How to install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 7

Introduction This guide will walk you through the installation process of LAMP stack on CentsOS 7 in VPS server. LAMP is an acronym that represents Linux operating system, Apache web server, MySQL database server and PHP scripting language, which is used to build a dynamic web application whose data are stored into MySQL server and run this web application on…

Initial VPS Server setup on CentOS 7

Introduction This guide will walk through initial VPS server setup on CentOS 7. When you bought a new VPS hosting then you need to perform some initial configurations such as new user creation, restrict permissions, restrict login etc. for your VPS server. The hosting company send an email with password which is required to login with your root user. The…

How to Login to Linux Server with SSH key from Windows

Introduction In this post I will show you how to login to your Linux Server with SSH key from Windows using PuTTY. PuTTY is an open source software and SSH and telnet client developed for the Windows platform. I will connect to CentOS 7 (Linux) VPS server with SSH key from Windows operating system using PuTTY client. Prerequisites In order to…

Manually SSH key generation in Windows

Introduction This guide will show you how to manually generate SSH key in Windows environment. We will use here Putty to generate private and public SSH keys in Windows. PuTTY is an open source software and SSH and telnet client developed for the Windows platform. When you install the PuTTY client, you also install the PuTTYgen utility, which is what…

Monitor health of a URL using Unix

This blog will tell you how to write a script to check whether a given web service or URL is up or not by accessing a given URL. Occasinally, your Apache (or other) web server might become unresponsive. So here we will get an idea how to write a script to detect this issue.

Figure out which cron job chokes up your system in Linux

We will first execute the command ps -o pid,sess,cmd afx to figure out which cron job chokes up the system in Linux. The above command will print out the process tree of all the processes running the system.