Archive for the 'UNIX' Category
If you work as a sysadmin you are most likely using a Windows or *NIX machine as your workstation. I feel sorry for those of you who has to use Windows, *NIX people are slightly better off. However, in my opinion the perfect system administrator workstation is Mac OS X. Why you may ask?
November 8th, 2007 | Posted in OSX, Solaris, Sysadmin, System Administration, UNIX | 18 Comments
When you write scripts, especially scripts that will be executed unattended by cron or a similar facility, in most cases you want some way of getting error messages. Sometimes email is the way to go, sometimes you can just redirect output to a text file. Solaris and most other *NIX operating systems are shipped with […]
July 13th, 2007 | Posted in Better Scripts, Scripts, Solaris, Syslog, UNIX | 3 Comments
rsync is one of those tools that you find new uses for every day. It is really just a fancy file mover but it has an amazing feature set. Among other things You can control bandwidth usage, resume operations, copy files over ssh and include and exclude files as you like.
In The Practice of System […]
July 6th, 2007 | Posted in Backups, Downtime, Sysadmin, System Administration, UNIX, rsync | No Comments
To my delight I saw that Practice of System and Network Administration, The (2nd Edition) is available for pre-order on Amazon. I already own the 1st Edition and it is really a great book. I consider it a must read for any sysadmin or I could even go that far that I would most […]
July 3rd, 2007 | Posted in Books, Sysadmin, System Administration, UNIX | 2 Comments
If you are doing a very sensitive operation on a server and you want to make sure that you can easily review your actions (and the result) afterwards you have two options:
Rely on the scrollback in your terminal. More often than not you will run out of scrollback
Use script
When you run script it will start […]
June 7th, 2007 | Posted in OpenSolaris, Scripts, Solaris, UNIX | No Comments
If you have some basic knowledge of UNIX you probably know about cron. But have you heard about at?
at is very similar to cron. You use it to schedule to run a program/script/command once at a specific time. A very basic example would look like this
$ at now
> date >/var/tmp/date.output
> ^D
job 1 at Mon Jun […]
June 4th, 2007 | Posted in Cron, OpenSolaris, Scripts, Solaris, UNIX | No Comments
If you want to cause a controversy on mailing lists go ahead and ask a question about which shell you should use. There are a million different opinions about this even though there is not that many shells available.
However, when you want to write portable scripts please don’t use bash but use ksh (or even […]
June 4th, 2007 | Posted in Better Scripts, Scripts, UNIX | No Comments
On most UNIX-like operating system all the standard binaries are install in /bin, /usr/bin, /sbin and /usr/sbin. There are some additional compatibility directories (at least on Solaris) but most of the essential binaries are to be found in those directories. If you download any kind of open source software (that doesn’t have a binary package […]
May 30th, 2007 | Posted in Install, Software, UNIX | No Comments
Roy Wood has a blog that targets a similar audience as my own. He write articles about UNIX system administration in particular about Solaris, Oracle, Sybase and other interesting technologies. He focus a lot on how to do things and in may be very interesting if you are an aspiring sysadmin. I will definitely keep […]
May 26th, 2007 | Posted in Blogroll, UNIX | No Comments
Oops! You just sent the root password for your central MySQL server to a big mailing list. You scramble to change it as fast as possible. Sometimes you may need to include a password or some other important information in cleartext in a script. A database backup script could be a good example. You whip […]
May 26th, 2007 | Posted in Better Scripts, Scripts, UNIX | 3 Comments