Old Content This page is now considerably out-of-date.
These pages provide some pertinent information about Unix. When I worked as a sys-admin, I originally planned to expand this part of the site considerably. However, my work and interests have changed since then and it is no longer updated.
Handy bash features
|Reverse search through command history
|Execute a command in the history, then go to next command in history
|Cancels current command, but leaves it in history
|Forward / backward a word
|Forward / backward delete a word
|Beginning / end of line
|A handy calculator
|Gives you: prefix_two prefix_endings
And please, learn how to restore from the backups. There may be some gotchas which you really don't want to hit in an emergency.
- Label the tapes, but don't label the boxes. This way a tape can never get into the wrong box.
- Use an external drive. If you computer is stolen, this is much less likely to go with it.
- Have the software eject the tape at the end, but only if the backup is successful. This way admins know if there were any problems without having to check the logs.
Ideas for a Linux Distribution
Most Linux distributions have startup scripts that are very complicated shell scripts. Also, there is no standard place to store configuration, like the Windows registry. To deal with these issues, a distribution could:
- Use python instead of bash for the startup scripts.
- Startup scripts have a dependency tree, rather than a numerical order.
- Store configuration in a database (probably MySQL or PostgreSQL). When a service is installed, it adds itself to the startup table, the log rotate table, etc. This would replace files in /etc like passwd, aliases, etc.
- There's a tool that works like RedHat "service iptables save" that saves the current network configuration. This means you can setup the network using ifconfig/route directly, then just save it. Or if you like, you can edit the save file and reload it.
Delivering this is no simple task. You need to update all software to understand the configuration database. However, quite a lot of software does this already, e.g. Exim, MyDNS, Apache, Courier IMAP/POP3.