Category: Unix
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….
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…
Introduction 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…
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…
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…
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…
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…
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…
Introduction This tutorial will show you an example on using arguments to a unix shell script or programming. Here we will create a shell script file for showing the example. The advantage of using urguments is you can pass the value dynamically as per the requirements. You don’t need to edit the shell script file…