Educating the world

Our blog has over 10,000 readers a month

Category: "Unix Shell"

Conditionally replacing line contents

July 17th, 2014
I answer a lot of Unix shell scripting questions for friends (I know, sad isn't it) but as I haven't written a blog article for a while I thought I document my thoughts in case the rest of world needs something similar. Question have a file of IP… more »

Cloning a VirtualBox machine running CentOS causes network interfaces to fail

January 11th, 2013
When you clone a VirtualBox machine in order to create a new virtual machine (as opposed to creating a back up of an existing machine) then you must check Reinitialize the MAC address of all network cards and use the Full clone type to make sure that th… more »

Logging into a unix box without a password

August 10th, 2012
From time to time I need to allow one user to log into another machine without being prompted for a password. This is extremely useful for anything that is automated for example doing the nightly backup which copies files across the network or running c… more »

Creating a unique backup file name under Unix

July 16th, 2012
Before updating a system file I'll take a backup copy of it. The less imaginative of you will choose a backup name like file.bak or file2. Some of you will use your initials, especially if you work in an environment where you might run into your colleag… more »

Deleting emails with a certain subject on the Plesk server

April 14th, 2009
Occasionally a user will receive so much email that it blows the file system limit for a domain. This can be because they haven't picked up their mail for a while or the domain has fallen into disuse. Usually when you tell the user they have 6,000 ema… more »