Skip to main content
  1. Tags/

Command Line

2010


Monitor MySQL restore progress with pv

··250 words·2 mins
The pv command is one that I really enjoy using but it’s also one that I often forget about.

Securing your ssh server

··748 words·4 mins
One of the most common questions that I see in my favorite IRC channel is: “How can I secure sshd on my server?

Parsing mdadm output with paste

··193 words·1 min
My curiosity is always piqued when I find new ways to manipulate command line output in simple ways.

Testing network throughput with iperf

··262 words·2 mins
When you need to measure network throughput and capacity, I haven’t found a simpler solution than iperf.

Crash course in dsh

··371 words·2 mins
Thanks to a recommendation from [Michael][1] and [Florian][2], I’ve been using [dsh][3] with a lot of success for quite some time.

2009


2008


2007


OpenSSL Tricks

··113 words·1 min
Create a strong CSR and private key

Installing package groups with up2date

··304 words·2 mins
A few days ago, I began to install a group of packages with up2date, and the person next to me was surprised that up2date even had this functionality.

Counting open files per user

··73 words·1 min
In the event that your system is running out of file descriptors, or you simply want to know what your users are doing, you can review their count of open files by running this command:

Yum equivalents of up2date arguments

··48 words·1 min
With RHEL 5 ditching up2date for yum, many Red Hat users might find themselves confused with the new command line flags.

RHEL limitations cheat sheet

··45 words·1 min
When you find yourself in a pinch, and you don’t know the limits of a certain Red Hat Enterprise Linux version, you can find this information in one place.

Low priority Plesk backups

··114 words·1 min
I hear a lot of complaints about Plesk’s backup routines and how they can bring a server to its knees.

Use a different IP for sending mail

··100 words·1 min
If you find yourself in a pinch and you need a temporary fix when your primary IP is blacklisted, use the following iptables rule:

Reset the Urchin admin password

··62 words·1 min
Should you find yourself in the situation where you’ve forgotten the Urchin admin password, don’t worry.

Adding IP aliases in FreeBSD

··214 words·2 mins
One question I hear quite often is “how do I add IP aliases in FreeBSD?

Upgrading FreeBSD remotely

··50 words·1 min
It can be best to upgrade FreeBSD in an offline state, but if you do it online, you can do it like this:

/bin/tar: Argument list too long

··52 words·1 min
If you find yourself stuck with over 30,000 files in a directory (text files in this example), packing them into a tar file can be tricky.

Active FTP connections through iptables

··195 words·1 min
One of the main reasons people like passive FTP is that it’s easier to get through firewalls with it.

Basic SNMP Configuration

··55 words·1 min
If you want to get a really basic, wide-open for localhost setup for SNMP, just toss the following into /etc/snmp/snmpd.

Corrupt /dev/null

··107 words·1 min
If you find that /dev/null is no longer a block device, and it causes issues during init on Red Hat boxes, you will need to follow these steps to return things to normal:

FreeBSD: Limiting closed port RST response

··115 words·1 min
One of the nifty things about FreeBSD’s kernel is that it will limit closed port RST responses, which, in layman’s terms, just means that if someone repeatedly hits a port that’s closed, the kernel won’t respond to all of the requests.

Arrow keys in iTerm not working in vi/vim

··69 words·1 min
I found myself pretty darned frustrated when my arrow keys didn’t work in iTerm in vi/vim or other ncurses-based applications.

Install snort and BASE on FreeBSD

··567 words·3 mins
Installing snort from ports on FreeBSD is pretty straightforward, but there are some ‘gotchas’ that you need to be aware of.

rpmdb: Lock table is out of available locker entries

··159 words·1 min
If up2date throws some horrible Python errors and rpm says “rpmdb: Lock table is out of available locker entries”, you can restore your system to normality with the following: