Here’s an easy way to create a new partition on your Harddisk.
Open the Disk Management console by typing “diskmgmt.msc”
through command prompt.
In the Disk Management window, right-click your C: partition and select Shrink Volume.
Enter the amount of space you want to shrink the partition by, in MB.
After the pro
Nagios is a powerful monitoring tool for server.Nagios offers monitoring and alerting for servers, switches, applications, and services. It alerts users when things go wrong and alerts them a second time when the problem has been resolved.Nagios can send this alerts by email and sms notifications.
NRPE ( Nagios Remote plugin executor) allows you to remotely exec
Limiting Apache users file upload size
This post is an continuation of ongoing apache related article. Earlier we have seen about Installation and configuration of apache webserver in linux, configuring apache logs, details about apache with htaccess file, and methods to secure apache webserver and protecting apache web directory with authentication.
How can we restrict total size of HTT
Linux Smem tool for detailed memory report
Using smem command we can check actual RAM utilized by a user. smem reports shows you physical memory usage,taking shared memory pages into account. Unshared memory is reported as USS (Unique Set Size). Shared memory is divided equally among the processes sharing that memory. The unshared memory and a process proportion of shared memory is reported as
Using Linux Badblocks Command to Check Disks and Partitions
Badblocks is a Linux command its used to search for bad blocks on a disk drive.
Checking badblocks and saves it into specific file
[root@TTS ~]# badblocks -v /dev/sda3 > bad-blocks.txt
Checking blocks 0 to 40959999
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.
Option v - Verbose mode
How to add and delete route in linux.
In linux / Unix like operating system we can add and delete route permanently and temporarily. In this blog I have explained how to add and delete route permanently and temporarily with syntax
Syntax to add route to a host and network.
route add -net/-host <IPaddress> netmask <subnetmask> gw <Gateway IPaddress> dev <Ethe
Install, configure and setup LAMP(Linux, Apache, Mysql and PHP) environment in Redhat/Centos Linux
LAMP environment is a combination of Linux, Apache, Mysql and Php. Now a days most of the successful website are runs under LAMP environment in internet. It is totally free and easy to setup LAMP environment in linux.
Okay friends I don't want you to wait. Lets start insta
20 useful Tar command in linux with examples
The full form of tar is tape archive. Tar is the primary archiving utility in Linux / Unix. Using the tar command we can compress high number of files and folders to form a archive file. Archived tar file is commonly called us tar ball. Tar archived file will ends in three formats filename.tar, filename.tar.bz and filename.tar.bz2. The tar file ends wi
Linux admin interview questions Part - II
In this blog I have explained all possible linux admin interview questions. It is a continuation of linux admin interview questions part - I and linux interview questions for programmers.
1. What is Umask ? what is the default umask value for files and folders for localuser?
Abbrivation of Umask is user mask or user file creation mask.
How to block brutforce attack using fail2ban in Linux
Fail2ban is a open source its used to monitor the log files (Ex:/var/log/auth.log,/var/log/apache/error_log) and ban's the particular IP's if it has malicious signs like too many password failures or other unwanted actions,etc.. Fail2Ban used to update iptables or firewall rules to reject the IP addresses for a specified amount of time.