These are short observations on Linux, it's use, operation, and configuration. Mostly, they are derived from my own experiences installing, configuring and using Linux systems, from embedded systems to desktops to servers.

The "tee" command

Again, I answered a question on Usenet: Can someone explain how tee command works


Uninterruptable Sleep

Another question from usenet read:

I have read that no program can ignore SIGKILL and SIGSTOP. But, a task is in UNINTERRUPTIBLE state when it sleeps blocking all signals. Could someone help me understand the scenario? Isn't it blocking all signals (including SIGKILL and SIGSTOP)?


The Difference between Softlinks and Hardlinks

Someone posted this question to one of the Linux newsgroups I follow:

Can someone give me a simple explanation of the difference between a soft link and a hard link? The documentation I've read mention these links but make no strong explanations of their meaning and how/when to use them. Thanks!

Here's how I explained the differences.


Cleaning Up

With my desktop machine's last system upgrade, I changed how I managed my /tmp directory. Before the upgrade, my configuration mounted a tmpfs on /tmp at startup, but now, it mounts a separate ext2 partition for /tmp. Linux implements the tmpfs filesystemtype in swap, making the contents of the directory really temporary; files and directories in such a filesystem vanish on reboot. But, now with the ext2 filesystem, /tmp files and directories stick around.


Quick and Dirty GUI Calendar

A while back, I needed a yearly calendar for my X desktop. Since, at the time, I ran a desktop that did not include an integrated Calendaring facility, I couldn't just click on something. So, I built a GUI perpetual calendar, in a shell script.

The script (which I called looked like
WHEN=`date +%Y`
while [ $RC -ne 103 ] 
  PREV=`expr $WHEN - 1`
  NEXT=`expr $WHEN + 1`

  cal $WHEN | \
  xmessage -buttons $PREV,$NEXT,Quit -file - -title "In the Year $WHEN"

  case $RC in

Validating Web-based logons with FTP

As part of a PHP web app I developed, I needed to authenticate the web client user with a remote system. Unfortunately, this system was a mainframe and setting up a web-enabled authentication product on it was somewhat timeconsuming and required a lot of administrivia. I wanted to avoid all that, so I had to come up with another way to authenticate web users remotely.



Subscribe to RSS - Tips