I'm running OpenBSD 4.6 and:

which arch
/usr/bin/arch
strings /usr/bin/arch
...
$OpenBSD: arch.c,v 1.11 2004/05/09 03:20:45 deraadt Exp $

which head
/usr/bin/head
strings /usr/bin/head
...
$OpenBSD: head.c,v 1.14 2007/10/31 16:29:50 jmc Exp $

... etc

So I think you may be missing something.

Regards,
John

On Mon, Apr 12, 2010 at 03:02:42PM +0400, anonymous wrote:
On Sat, Apr 10, 2010 at 06:26:12PM +0200, finkler wrote:
This is my collection of redundancy so far:
arch            uname -m
dir             ls -C
groups          id -nG
head            sed 11q
mkfifo          mknod FILE q
nl              grep -n
rmdir           rm -r
tac             tail -r
vdir            ls -l
whoami          id -nu

grep requires some pattern, grep -n . works.
Another variant of nl:
   awk '{ print NR"\t"$0 }'

rmdir will delete only empty directories, rm -r will delete them recursive.

dir is replaced by lc on Plan 9, lc is alias for ls -p | mc


Reply via email to