| Old Content This page is now considerably out-of-date.
Introduction
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
Ctrl-r | Reverse search through command history |
Ctrl-o | Execute a command in the history, then go to next command in history |
Alt-# | Cancels current command, but leaves it in history |
Alt-f, Alt-b | Forward / backward a word |
Alt-d, Alt-Backspace | Forward / backward delete a word |
Ctrl-a, Ctrl-e | Beginning / end of line |
echo $((17+15)) | A handy calculator |
echo prefix_{two,endings} | Gives you: prefix_two prefix_endings |
Tape Backups
Some tips:
- 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.
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.
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.
|