Unix Tip: Grepping on Whole Words
If every time you grep for a specific word or string, you get a pile of lines that don't match what you were looking for, maybe it's time to learn about whole word searching. In today's column, we examine two ways to get what you want, the whole of what you want and nothing but what you want.
Is Your Web Site Under Attack?
If you have a web site, the answer is undoubtedly "yes". Someone somewhere or, more likely, quite a few someones are attempting to attack your site or the system on which it is running. Assuming hackers have found your site and are testing it for holes that they might crawl through, let's take a look at how you can uncover evidence of their exploits with a quick examination of your web logs.
Easy Email Filtering with Procmail
Tossing email into the /dev/null bit bucket is fine when you know the account in question will never receive any valid form of email. You can, however, get a much finer degree of control over email and still automate the cleanup of spam by using a tool such as procmail. Procmail is a basic email filter and not nearly as difficult to set up as people imagine. Let's run through the setup and focus on a couple potential stumbling blocks.
Eradicate Spam from Unix Service Accounts!
There are numerous ways to reduce the amount of spam that you receive. Good email filters can keep you from ever having to deal with the onslaught of stupid offers you never wanted to see, never mind the outright attempts to steal personal information or rope you into some type of scam. I've found that the spammers have become so desperate to increase their spam traffic deliveries that they are sending spam to system accounts such as bin and listen. Instead of trying to bounce this mail back to the senders -- which in less perverted times might have actually worked, I find it's speedier and less consuming of system resources to just pitch the mail into the bit bucket. Here's how this works.
Putting Text in Window Title Bars
In last week's post, I talked about customizing prompts to help remind your users what system they're logged into and where they are in the file system. Another useful way to help your users keep which window is which straight in their minds is to label the windows themselves. With the system name or project identifier displayed on the title bars of their windows, your users are less likely to type a command meant for system A on the command line for system B.
Relaying Mail from Subdomains
jfruh
Apple syncing patent can't come soon enough
pasmith
New Twitter features borrow from 3rd party clients
Esther Schindler
Open Source Changes the Software Acquisition Process
mikelgan
How to set up continuous podcast play on the new iTunes
David Strom
Five important Windows 7 mobility features
sjvn
Guard your Wi-Fi for your own sake
Sandra Henry-Stocker
Grepping on Whole Words
Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325
Join the conversation here
Quick, practical advice for IT pros. Made fresh daily.
Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.












Unix tricks - Useful but unusual
Unix tip: Useful Unix aliases
Squeezing out the white space
Port Forwarding with Perl
Unix tip: 7-Zip to the rescue
Unix tip: Inter-host trust on Unix, part 1
Unix tip: Monitoring network switches
Linux command: Side by side diff
Checking disk space
Unix tip: Making do with less