Linux Shell script to close/open ports on a firewall/Iptables

This is a small script which will takecare of blocking and unblocking ports by asking user about his desire. Just copy this code to your system and change permissions and start executing it. #!/bin/bash #Author: Surendra Anne([email protected]) PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin clear echo -e "############################nnnPresent

Read More

Tricky question: What protocol (TCP or UDP) DNS server uses when a client queries?

By default DNS server will serve all client queries with UDP protocol on 53 port. One reason for this selection of protocol is to get faster answers from DNS Server to the client. The UDP protocol do not require any handshake like

Read More

PFOTD: Python ord() function examples

Today our inbuilt function is ord() short form of 'ordinal' which means a number defining the position of something in a series, such as ‘first’, ‘second’, or ‘third’. This function is useful for converting a single character to its corresponding ASCII value. Need of

Read More

PFOTD: Python chr() function example

Today our in-built function is chr() which is useful for converting an ASCII value to its corresponding character. Need of chr() function in Python: Some times it requires to convert an ASCII value to its corsponding character and this in-built function will

Read More

Python built-in functions examples series at Coding Mania started

Hi all,           Today we are starting a series on Python programming called Python Function OF The Day(PFOTD) to show you all how we can use these built-in functions to enrich your python capabilities. The concept of this

Read More

What is a mount point in Linux/Unix?

Mounting takes place before a computer can use any kind of storage device (such as a hard drive, CD-ROM, or network share). The user or their operating system must make it accessible through the computer's file system. A user can only access

Read More

How login process work in Linux?

Today we will see one basic concept, which is neglected by many Linux users if they are not programmers like system admins. A simple question is "what happens at the time login process in Linux?" Many people know Linux booting process in which init

Read More

Why swap is double the size of the RAM in Linux/Unix?

One of our blog reader asked below question.. Q. Why we give swap partition in double the size of the RAM? It has a meaning and for that we should know memory hierarchy. We have different levels of memory which is useful

Read More

We are blessed with a cute baby boy..!

I would like to share an important event from my personal front. We are blessed with a cute baby boy on 21st June 2013. We are happy and enjoying with our new member of our family. He is so adorable that I

Read More

PERL Scripting: Install a module through CPAN and manually

In this we will see how to install PERL modules in Linux/Unix. Some times it is required to enhance a program capabilities by including a piece of code. Instead of we writing a code we can check if any modules are available

Read More

banner