% echo $HOME /home/rob % cd $HOME % pwd /n/bopp/v7/rob % cd /home/rob % cd /home/ken % cd ../rob ../rob: bad directory %
% ls -ld /home/rob /home/ken lrwxr-xr-x 1 root sys 14 Dec 26 1998 /home/ken -> /n/bopp/v6/ken lrwxr-xr-x 1 root sys 14 Dec 23 1998 /home/rob -> /n/bopp/v7/rob %
% cd /home/rob % pwd /n/bopp/v7/rob % ksh $ pwd /home/rob $
% cd /home/rob % cd ../ken ../ken: bad directory % ksh $ pwd /home/rob $ cd ../ken $ pwd /home/ken $
% cd /home/rob % pwd /n/bopp/v7/rob % cd bin % pwd /n/bopp/v7/rob/bin % ksh $ pwd /n/bopp/v7/rob/bin $ exit % cd /home/ken % pwd /n/bopp/v6/ken % ksh $ pwd /n/bopp/v6/ken $
mount(fd, "/dir", flags)
mount(rootfd, "/", MREPL);
bind("tofile", "fromfile", flags)
bind("/sparc/bin", "/bin", MREPL); bind("/usr/rob/sparc/bin", "/bin", MAFTER);
% cd /bin % cd ..
int fd2path(int fd, char *buf, int nbuf)
char* getwd(char *buf, int nbuf) { int n, fd; fd = open(".", OREAD); if(fd < 0) return NULL; n = fd2path(fd, buf, nbuf); close(fd); if(n < 0) return NULL; return buf; }
void openfiles(void) { int i; char buf[256]; for(i=0; i<NFD; i++) if(fd2path(i, buf, sizeof buf) >= 0) print("%d: %s\n", i, buf); }
% cat /proc/125099/fd /usr/rob 0 r M 5141 00000001.00000000 0 /mnt/term/dev/cons 1 w M 5141 00000001.00000000 51 /mnt/term/dev/cons 2 w M 5141 00000001.00000000 51 /mnt/term/dev/cons 3 r M 5141 0000000b.00000000 1166 /dev/snarf 4 rw M 5141 0ffffffc.00000000 288 /dev/draw/new 5 rw M 5141 00000036.00000000 4266337 /dev/draw/3/data 6 r M 5141 00000037.00000000 0 /dev/draw/3/refresh 7 r c 0 00000004.00000000 6199848 /dev/bintime %
% cat /proc/125099/ns bind / / mount -aC #s/boot / bind #c /dev bind #d /fd bind -c #e /env bind #p /proc bind -c #s /srv bind /386/bin /bin bind -a /rc/bin /bin bind /net /net bind -a #l /net mount -a #s/cs /net mount -a #s/dns /net bind -a #D /net mount -c #s/boot /n/emelie bind -c /n/emelie/mail /mail mount -c /net/il/134/data /mnt/term bind -a /usr/rob/bin/rc /bin bind -a /usr/rob/bin/386 /bin mount #s/boot /n/emelieother other bind -c /n/emelieother/rob /tmp mount #s/boot /n/dump dump bind /mnt/term/dev/cons /dev/cons ... cd /usr/rob %
... mount -a '#s/dns' /net ... mount -c il!135.104.3.100!12884 /mnt/term ...