OS

How to Kill a Process by Process Name from Ubuntu Command Line

There are a number of ways to kill a process if you know the name of the process. Here’s a couple different ways you can accomplish this. We are going to assume that the process we are trying to kill is named irssi   kill $(pgrep irssi) killall -v irssi pkill […]

How to Fix “scp: command not found” on CentOS 6

I get the following error when i try to use scp command on linux CentOS server. scp command is usually used to copy files and directories securely between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, […]

Icinga (Monitoring Solution) Installation And Configuration On CentOS

Icinga is an enterprise grade open source monitoring system which keeps watch over networks and any conceivable network resource, notifies the user of errors and recoveries and generates performance data for reporting. Scalable and extensible, Icinga can monitor complex, large environments across dispersed locations. I am going with the Icinga […]

Quick way to add SWAP

While it would be ideal if every server had plenty of RAM in the real world that does not happen. If for some reason you have a server with too little SWAP or you are hitting the max of the swap here is a quick hack which will create a […]

How To Split A Large Files To Multiple Parts Using “tar”

Process to split file Here you have to use two extra command line options to split the file over multiple parts. The standard syntax are -M (–multi-volume) which tells Tar you want to split the file over multiple files. Then you need to tell Tar how big that file is, […]

Disable wget

wget is one of the largest threats for your server security. A single abuser that gains access to wget can download and run any script that he wants, totally compromising your server. It is highly recommended that you allow only root to use wget and you restrict all other users […]

UNIX / Linux: Send E-mail When sudo Runs

I‘m not told to use the root user to perform activities that do not require it. I’ve configured sudo for myself and for other web developers so that they can restart MySQL or Apache web server. Rest sensitive used had http://www.rxzen.com/20-mg-tadalafil-best-price nails! You cleanser rain visit website is Yesterday month. […]

How to set multiple IP addresses using Linux command line

Go to /etc/sysconfig/network-scripts Make multiple copies of ifcfg-eth0 and name them as ifcfg-eth0:0, ifcfg-eth0:1 etc. Open each of them and at least change the IPADDR to your chosen IP address and the NETMASK to the subnet mask for that IP address. A sample entry would look like this: DEVICE=eth0:0 BOOTPROTO=static […]