Swastik Organization

centos1 0

How to install php-pear-db centos 6

Q. How to install php-pear-db centos 6 Install Howto Download the latest epel-release rpm from http://dl.fedoraproject.org/pub/epel/6/i386/ Install epel-release rpm: # rpm -Uvh /tmp/epel-release*rpm Install php-pear-DB rpm package: # yum install php-pear-DB

linux-600x300 0

How to unzip .tgz file using the terminal?

The .tgz and .tar.gz, both zip extensions are like same. To unpack them please follow the below syntax Syntax: tar options xyz.tar.gz tar options xyz.tar.gz pattern tar -xf xyz.tar.gz tar -xvf xyz.tar.gz tar -zxvf...

linux-600x300 0

Unix Set or Change Group Password

With the help of passwd command we can also change the group password. -g option tells the unix server that we are going to change the group password not an user. When the -g...

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>