linux

Persistent Daemon -- Linux

There are a number of scripts that will automatically restart a process if it exits unexpectedly. Perhaps the simplest is something like:
$ while : ; do echo "execute command now"; sleep 1; done

If you run a foreground process in place of that echo line, then the process is always guaranteed to be running (or, at least, it will try to run).
The : simply makes the while always execute (and is more efficient than running /bin/true, as it doesn't have to spawn an external command on each iteration). Definitely do not run a background process in place of the echo, unless you enjoy filling up your process table (as the while will then spawn your command as many times as it can, one every second).


Ubuntu root account workaround

I am not a fan of any linux distro, don't get me wrong I love linux but I don't have a preference regarding a certain linux distribution.


Find file size in linux

If your here you are probably wondering how to find the size of a file on linux box, am I right ? :-)

There are several ways of finding the size of a file. One of them uses du (I don't like it), another stat (love this one) and a bunch of them use ls :-) *yap* good-old ls


Linux Kernel Speech

This is a great speech by Andrew one of the top maintainers of the linux kernel.


Linux runlevels discussion

I noticed that a lot of people are not aware of the linux runlevels and don't know their meaning.

So here it goes:

Linux systems today generally use eight runlevels. Runlevels


Recover password in linux

Have you ever forgotten your root password on your linux box and you are desperate to get it back ?! :)


History of Unix

Unix(officially trademarked as UNIX, sometimes also written as Unix with small caps) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy. Today's Unix systems are split into various branches, developed over time by AT&T as well as various commercial vendors and non-profit organizations.

As of 2007, the owner of the trademark is The Open Group, an industry standards consortium. Only systems fully compliant with and certified to the Single UNIX Specification are qualified to use the trademark; others are called "Unix system-like" or "Unix-like".

During the late 1970s and early 1980s, the influence of Unix in academic circles led to large-scale adoption of Unix (particularly of the BSD variant, originating from the University of California, Berkeley) by commercial startups, the most notable of which is Sun Microsystems. Today, in addition to certified Unix systems, Unix-like operating systems such as Linux and BSD are commonly encountered. Sometimes, "traditional Unix" may be used to describe a Unix or an operating system that has the characteristics of either Version 7 Unix or UNIX System V.