Search and Replace

Simple UNIX search and replace:

# perl -i -pe 's/search/replace/g' file
# sed -e 's/search/replace/g'

Mounting an ISO Image

If you need to mount an ISO image and do not have access to a burner, you can mount it via a loopback device in Solaris.

First create the loopback device:

# lofiadm -a /export/data/download.iso /dev/lofi/1

Mount the block device you just created:

# mount -F hsfs -o ro /dev/lofi/1 /mnt

Windows Startup

Neat tip I just found out about. On Windows 2000/XP, run the command msconfig.exe for a dialog allowing you to change how the system boots. Enable/disable services, drivers, applications from being processed at boot.

AIDE Update

I’ve added a script that makes updating the AIDE database easier and sends a notice with the md5sum of the old db, new db, and the md5 binary to root. The script is here. It requires md5 installed, which is available at sunfreeware.