Welcome to the Unix Toolbox. This page only provides some information related to
the toolbox document. The latest version is always available here:
http://cb.vu/unixtoolbox.xhtml.
Related links:
All comments, suggestions, or error reports are of course most welcome. Help me to make an even better toolbox - c@cb.vu Colin Barschel.
The xhtml page is designed with a single layout and without any external dependency. That is the css, java-script, svg are all embedded. This layout makes it possible to save the file for offline use and is also easy to search with the navigator. Furthermore the css print properties will create a nice pdf and a printable booklet to keep at hand.
This approach with examples has of course its weakness as one can't include everything and some operating systems or different kernel version will not behave in the same way. I try to keep the document as "small" and compact as possible. Also calling this a "Unix" toolbox is not accurate as it covers mostly Linux and FreeBSD. However I will add more Solaris and OS X commands in the future. Take a look at the Rosetta Stone for Unix for a good complement.
Are you a css or html hacker? I could not figure out how to solve the following problems, maybe you can:
| Portuguese (work is in progress) | Thanks to Caio Tedim and Sérgio Souza. |
| Bulgarian - Български | Thanks to Vladimir Kolev for this translation. |
| Chinese | Thanks to Greco Shi for this translation. |
| Spanish - Español work is in progress (stalled?) | Thanks to David Martinez for this translation. |
| Polish (work is in progress) | Thanks to Hubert |
| French - Français | Je manque de temps pour l'instant, alors si quelqu'un est intéressé, c'est très volontiers... |
© Colin Barschel and John Smith. Some rights reserved under Creative Commons.
<?php $dom = new DOMDocument('1.0', 'UTF-8'); $dom->substituteEntities = true; $dom->load('unixtoolbox.xhtml'); // this is a local copy $xp = new DomXPath($dom); $xp->registerNamespace('xhtml','http://www.w3.org/1999/xhtml'); // Print the revision number and author $subject = $xp->query("//xhtml:meta[@name='subject']"); $copyright = $xp->query("//xhtml:meta[@name='copyright']"); echo $subject->item(0)->getAttribute("content") . "<br />\n"; echo $copyright->item(0)->getAttribute("content") . "<br />\n"; // Get all h1 header from the TOC $headers = $xp->query("//xhtml:ol/xhtml:li/xhtml:a"); // res ist a nodeList foreach ($headers as $header) { // replace # with ?href= $attr = $header->getAttribute("href"); $link = str_replace("#","?href=",$attr); echo "<a href=\"" . $link . "\">" . $header->nodeValue . "</a><br />\n"; } // Display the div content as simple XML node $href = $_GET["href"]; if ($href) { $h1 = $xp->query("//xhtml:div[@id='$href']"); $div = $h1->item(0)->ownerDocument->saveXML($h1->item(0)); echo utf8_decode($div); } ?>You are free to use this code in any way you want without any restriction.