Swastik Organization

linux-600x300 0

Unix Set or Change User Password

passwd command is used in  Linux and UNIX to change user password. The passwd is used to update a user authentication token (password) stored in shadow file. The passwd changes passwords for user and...

centos1 0

Check Your CentOS Version Number

The simplest way to check your CentOS version number is through the command line. Login to your CentOS server using SSH and run the following command: cat /etc/centos-release This should return the following CentOS...

linux-600x300 0

How to set Firewall Rule in Linux?

Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel. Several different tables may be defined. Each table contains a number of built-in chains...

mysql 0

Backup and restore large mysql database

It is very hard to backup and restore of a very large mysql database using the conventional phpmyadmin. Through command line you can take a backup of large database. First you need to have...

php 0

How to get next and previous day in php

get next and previous day in php <?php $date = isset($_GET[‘date’]) ? $_GET[‘date’] : date(‘Y-m-d’); $prev_date = date(‘Y-m-d’, strtotime($date .’ -1 day’)); $next_date = date(‘Y-m-d’, strtotime($date .’ +1 day’)); ?> <a href=”?date=<?=$prev_date;?>”>Previous</a> <a href=”?date=<?=$next_date;?>”>Next</a>