shell

How to Change your PATH in tcsh or csh

The PATH variable contains a list of the default directories that are searched for any command you type in that is without a path. To change it in tcsh or any csh based shell edit your .cshrc file in your home directory and add the directory where you see set path # ee ~/.cshrc Your [...]

How to Send an Email (Mail Message) from Linux Command Line Shell

Mail is a command to send and receive mail in Unix, Linux and BSD operating system. To initiate a mail sending process, just type in the following command: mail recipient@domain.com Obviously, replace recipient@domain.com with a valid email address. The system will prompt for a subject of the email before allowing user to type in the [...]

How to Control the total number of lines in the history using HISTSIZE

Add the following two lines to the .bash_profile and login to the bash shell again to see the change.. # vi ~/.bash_profile HISTSIZE=450 HISTFILESIZE=450

The powerful bash wildcards in Linux

Wildcards are a shell feature that makes the command line much more powerful than any GUI file managers. You see, if you want to select a big group of files in a graphical file manager, you usually have to select them with your mouse. This may seem simple, but in some cases it can be very [...]

How Automatic file name completion works in Linux

Working at the Linux command line requires a lot of typing. It would get very frustrating with long commands and file names, but luckily your Tab key can make your life a lot easier. You have to type only the beginning of a command, directory, or a file name, hit the Tab key and the [...]

How to Configure Virtual IP Address in Linux

Invoke the linuxconf tool. ( type linuxconf in the shell prompt and press Enter ). For starting this tool you have to be logged in as Super user. In the displayed menu, select the menu item : IP Aliases for virtual hosts and press Enter. This will display the two interfaces eth0 and lo. (Ethernet [...]

How to access your server via SSH

If you are unfamiliar with SSH this is ok. This is a simple explanation to get you to a command prompt on your new server or existing server. Simply download a program called “putty.exe” if you are using Windows. If you are using MAC you will need to jump in to the shell and follow [...]

A brief to various iptables commands

We will use an example based approach to examine the various iptables commands. In this first example, we will create a very simple set of rules to set up a Stateful Packet Inspection (SPI) firewall that will allow all outgoing connections but block all unwanted incoming connections:

Database Replication in MySQL – Step by Step Guide

Replication enables data from one MySQL database server (called the master) to be replicated to one or more MySQL database servers (slaves). Replication is asynchronous – your replication slaves do not need to be connected permanently to receive updates from the master, which means that updates can occur over long-distance connections and even temporary solutions [...]

How to install and configure webalizer in multiple domain on Centos 4.6

Webalizer is a fast, free web server log file analysis program. It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser. It was written to solve several problems with currently available analysis packages. A vast majority of them were written in Perl or some other scripting language, [...]

How to Build a diskette-based bandwidth management system – PicoBSD

Many users, despite having a good Net connection, complain about poor surfing and download speeds. While an organization could pay for additional bandwidth, a better option might be to manage the bandwidth they already have. There are numerous bandwidth management software tools available. In this article we will explore managing network bandwidth using the dummynet [...]

How to use Grep command – Linux Popular Command

Grep is by far the most popular command that exists in Unix. Though some may argue about that, but once you begin using grep, it would always be present in all your complex commands that you think of executing at the shell prompt. grep stands for ‘global regular expression printer‘ . Which makes no sense [...]