NIX to Plan 9 command translation D1038740053 A (193.201.199.43) #

UNIX to Plan 9 command translation

The command set of #Plan 9 is similar to that of UNIX. The commands fall into several #broad classes. Some are new programs for old jobs: programs like #ls, cat, and who have familiar names and functions #but are new, simpler implementations. Who, for example, is a shell #script, while ps is just 95 lines of C code. Some commands #are essentially the same as their UNIX ancestors: awk, #troff, and others have been converted to ANSI C and #extended to handle Unicode, but are still the familiar tools. Some #are entirely new programs for old niches: the shell rc, #text editor sam, debugger acid, and others #displace the better-known UNIX tools with similar jobs. Finally, #about half the commands are new. # #

Compatibility was not a requirement for the system. Where the old #commands or notation seemed good enough, we kept them. When they #didn't, we replaced them. # #

The following list of some UNIX commands, which you can emulate #in Plan 9 system:

 UNIX Plan 9 from Bell Labs
#
#df(1) disk/kfscmd check [http://www.eecs.harvard.edu/~rsc/df]
#
#mount(1) [-p flag] bind(1) unmount(1) 9fs(1) srv(1) import(4)
#exportfs(4) -p ns(1)
#
#more(1) p
#
#shutdown(1m) disk/kfscmd halt echo reboot > /dev/reboot echo panic >
#/dev/reboot
#
#id(1) echo $user cat /dev/user grep `{cat /dev/user} /adm/users grep
#$user /adm/users
#
#find(1) du -a | grep pattern grep pattern `{du -a root} -name du -a
#root | grep name pattern in a file grep -n pattern `{du -a root |
#awk '{print $2}}
#
#apropos(1) lookman(1) man(1)
#
#uptime(1) echo $boottime [http://www.csh-east.org/~tad/plan9/uptime.c] [http://www.eecs.harvard.edu/~rsc/uptime]
#
#head(1) sed -n 1,Np sed Nq
#
#netstat(1m) [-r flag] netstat(1) -r cat /net/iproute
#
#last(1) N.A.
#
#vmstat(1m) stats(1) cat /dev/sysstat cat /dev/swap
#
#iostat(1m) iostats(4)
#
#nfsstat(1m) iostats(4)
#
#ufs{dump|restore}(1m) yesterday(1) history(1) fs(4)
#
#pkginfo(1m) wrap(8)
#
#snoop(1m) snoopy(8)
#
#tcpdump(1) snoopy(8)
#
#tree(1) ls -l `{du -a $1 | awk '{print $2}'} | grep '^d-' | awk ' {
#print $10 }'
#
#source(1) .
#
#

#