Most Recent Tips

Using seq(1) to generate sequences of numbers

The seq(1) command is oft-overlooked. Put simply, it'll generate sequences of numbers. In its most simple form seq 100 will return the numbers 1 to 100. Or perhaps: seq 10 5 100 which...
Arrow

Test your DNS resolver for DNSSEC Suitability

The thoughtful people over at DNS-OARC are hosting a server that enables you to test the suitability of your resolver for the DNSSEC switchover, which is already underway. The short version is, is...
Arrow

Save a file as root from within vi

It happens to us all at some point: editing a file (usually a root-owned and writable file) under your own normal user account. More often than not, I only realize after I've made a bunch of change...
Arrow

service(8) to Solaris SMF command lookup

If as a Linux native you find yourself on a Solaris box, you'll noticed that from Solaris 10 SYS V rc-style scripts are no longer used to control daemon processes. Instead, the SMF system is used. ...
Arrow

Top Voted Tips

Easily manipulate iptables rules with aliases

I’ve been using a couple of nice shell aliases when working with ad-hoc iptables rules. You can spruce them up as a batch file, but they’re fine for me as a quick and dirty way to manip...
Arrow

Using seq(1) to generate sequences of numbers

The seq(1) command is oft-overlooked. Put simply, it'll generate sequences of numbers. In its most simple form seq 100 will return the numbers 1 to 100. Or perhaps: seq 10 5 100 which...
Arrow

Restart Sun/Oracle Glassfish domain on Solaris 10 under SMF

Hopefully you will be using SMF to manage the services. You will doubtless know that the command svcadm restart domain1 would restart a domain. However, if you want to script your restart lik...
Arrow

History expansion in bash shell

History expansion, much like the command cd - which moves you into the directory that you were in immediately prior to the current one, is an oft-overlooked but powerful and convienient mecha...
Arrow