Sean Hincheeinitial push75d07b48 years agoHistory
105 lines · 4.2 KB · HTML
RawDownload
<html><head><title>Overview (Editing Sat Mar 14 15:22:44 EDT 2009 version)</title><META http-equiv="Content-Type" content="text/html; charset=utf-8"></head><!-- FFFFE9 is acme yellow; FFFFE9 is as close as you can get to it before charon decides to use  grey instead of map entry 254 --><body bgcolor="#FFFFE9" link="#0000AA" alink="#0000AA" vlink="#0000AA"><center><font size=+2><b>Overview</b></font> (Editing Sat Mar 14 15:22:44 EDT 2009 version)</center><p> For information on editing, see thedescription of <a href="../0">Plan 9 wiki syntax</a>.<p><form action="/magic/wikipost" method="post"><table><tr><td valign=top><input type="submit" name="x" value="Put"></td><td><table><tr><td align=right>(optional) Comment:</td><td><input type="text" name="comment" value="" cols=40></td></tr><tr><td align=right>(optional) Email:</td><td><input type="text" name="author" value="" cols=40></td></tr></table><input type="hidden" name="title" value="Overview"><input type="hidden" name="version" value="1237058564"><input type="hidden" name="service" value="plan9"><input type="hidden" name="base" value="/wiki/plan9"><p><textarea name="text" wrap="virtual" cols="80" rows="25"> WHY PLAN 9? Why Plan 9 indeed. Isn't Plan 9 just another Unix clone? Who cares? Plan 9 presents a consistent and easy to use interface. Once you'vesettled in, there are very few surprises here. After I switched toLinux from Windows 3.1, I noticed all manner of inconsistent behaviorin Windows 3.1 that Linux did not have. Switching to Plan 9 fromLinux highlighted just as much in Linux. One reason Plan 9 can do this is that the Plan 9 group has had theluxury of having an entire system, so problems can be fixed andfeatures added where they belong, rather than where they can be. Forexample, there is no tty driver in the kernel. The window systemhandles the nuances of terminal input. If Plan 9 was just a really clean Unix clone, it might be worthusing, or it might not. The neat things start happening withuser-level file servers and per-process namespace. In Unix, /dev/ttyrefers to the current window's output device, and means differentthings to different processes. This is a special hack enabled by thekernel for a single file. Plan 9 provides full-blown per-processnamespaces. In Plan 9 /dev/cons also refers to the current window'soutput device, and means different things to different processes, butthe window system (or telnet daemon, or ssh daemon, or whatever)arranges this, and does the same for /dev/mouse, /dev/text (thecontents of the current window), etc. Since pieces of file tree can be provided by user-level servers, thekernel need not know about things like DOS's FAT file system orGNU/Linux's EXT2 file system or NFS, etc. Instead, user-level serversprovide this functionality when desired. In Plan 9, even FTP isprovided as a file server: you run ftpfs and the files on the serverappear in /n/ftp. We need not stop at physical file systems, though. Other file serverssynthesize files that represent other resources. For example, upas/fspresents your mail box as a file tree at /mail/fs/mbox. This modelsthe recursive structure of MIME messages especially well. As another example, cdfs presents an audio or data CD as a filesystem, one file per track. If it's a writable CD, copying new filesinto the /mnt/cd/wa or /mnt/cd/wd directories does create new audioor data tracks. Want to fixate the CD as audio or data? Remove one ofthe directories. Plan 9 fits well with a networked environment, files and directorytrees can be imported from other machines, and all resources arefiles or directory trees, it's easy to share resources. Want to use adifferent machine's sound card? Import its /dev/audio. Want to debugprocesses that run on another machine? Import its /proc. Want to usea network interface on another machine? Import its /net. And so on. Russ Cox </textarea><p></td></table></form> <hr><table width=100%><tr><td valign=center align=left></td><td valign=center align=right><a href="../about.html">About the server</a>| <a href="http://plan9.bell-labs.com/plan9"><img src="http://plan9.bell-labs.com/plan9/img/power36.gif"alt="Powered by Plan 9"></a></td></tr></table></html></body>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t