Done is implemented as two shell scripts in zsh that allows for keeping a backlog of root’s changes to the system. This is extremely handy if more than one person has the root account on a machine.

If you login as root you get a greeting message like this:

Last login: Mon Jul 22 12:10:58 2002 on pts/7
======================================================================
     Miek Gieben                        Mon Jul 22 13:20:33 CEST 2002
                                            Linux elektron 2.4.19-rc3
======================================================================

17-07-2002, 13:13:26 : miekg : System shutdown: kernel: 2.4.19-rc1 18-07-2002, 10:24:25 : miekg : spam 18-07-2002, 12:39:51 : miekg : spam 19-07-2002, 11:50:55 : miekg : upgrade 20-07-2002, 18:31:26 : miekg : enter in /etc/hosts

======================================================================

[21:54:16 /home/miekg] root@elektron#

If you log out as root, you should run zdone and update the log. One could set it up that this is run automaticly when root’s log out.

With the script zlog you can generate the above log message.

download

  • zdone - enter log message
  • zlog - show last 5 logs