Welcome to dailyunixtip.com

This is a new and growing site trying to capture some innovative tips for working with UNIX-like systems. Why not try our feed, or take a look through the Archive?

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

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

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

Fewer keystrokes in bash with Ctrl-R

The bash shell has a powerful history mechanism, which in its default state isn't too useful. Luckily the modifications are quite easy to make. Hit Ctrl-R and then type the first few letters of a ...
Arrow

Using ps to find the top 10 consumers of CPU and memory

To display the top 10 consumers of memory: ps -auxf | sort -nr -k 4 | head -10 To display the top 10 consumers of CPU: ps -auxf | sort -nr -k 3 | head -10
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