Bourne | Ash |  #!  | find | ARG_MAX | Shells | whatshell | portability | permissions | UUOC | ancient | - | ../Various | HOME
"$@" | echo/printf | set -e | test | tty defs | tty chars | $() vs ) | IFS | using siginfo | nanosleep | line charset | locale


Example session on a 7th edition Unix (V7)
User input in bold face.

    $ pdp11 run.conf

    PDP-11 simulator V3.7-3
    Disabling XQ
    boot
    Boot
    : hp(0,0)unix
    mem = 177344
    # ^D
    RESTRICTED RIGHTS: USE, DUPLICATION, OR DISCLOSURE
    IS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH
    WESTERN ELECTRIC COMPANY, INC.
    WED DEC 31 20:16:20 EST 1969

    login: root
    You have mail.
    # ls -l
    total 437
    drwxrwxr-x 2 bin      2480 May  5 05:59 bin
    -rwxrwxr-x 1 bin      6900 May 16 01:33 boot
    drwxr-xr-x 2 root      320 Dec 31 19:33 dev
    drwxr-xr-x 2 root      336 Dec 31 20:16 etc
    -rwxrwxr-x 1 sys     53302 Jun  8 16:56 hphtunix
    drwxrwxr-x 2 bin       336 Jan 22 19:58 lib
    drwxrwxr-x 2 root      128 Dec 31 20:14 root
    -rwxrwxr-x 1 sys     51790 Jun  8 16:56 rphtunix
    -rwxrwxr-x 1 sys     51274 Jun  8 16:56 rptmunix
    -rwxrwxr-x 1 sys     52850 Jun  8 16:56 unix
    drwxr-xr-x15 bin       304 May 17 01:02 usr
    # stty
    speed 300 baud
    erase = '#'; kill = '@'
    even odd -nl echo -tabs
    # ls -l /bin/sh
    -rwxrwxr-x 1 bin     17310 May  5 18:58 /bin/sh
    # man sh|sed -n '1,38p'



    SH(1)               UNIX Programmer's Manual                SH(1)



    NAME
	 sh, for, case, if, while, :, ., break, continue, cd, eval,
	 exec, exit, export, login, newgrp, read, readonly, set,
	 shift, times, trap, umask, wait - command language

    SYNOPSIS
	 sh [ -ceiknrstuvx ] [ arg ] ...

    DESCRIPTION
	 Sh is a command programming language that executes commands
	 read from a terminal or a file.  See invocation for the
	 meaning of arguments to the shell.

	 Commands.
	 A simple-command is a sequence of non blank words separated
	 by blanks (a blank is a tab or a space).  The first word
	 specifies the name of the command to be executed.  Except as
	 specified below the remaining words are passed as arguments
	 to the invoked command.  The command name is passed as argu-
	 ment 0 (see exec(2)).  The value of a simple-command is its
	 exit status if it terminates normally or 200+status if it
	 terminates abnormally (see signal(2) for a list of status
	 values).

	 A pipeline is a sequence of one or more commands separated
	 by |. The standard output of each command but the last is
	 connected by a pipe(2) to the standard input of the next
	 command.  Each command is run as a separate process; the
	 shell waits for the last command to terminate.

	 A list is a sequence of one or more pipelines separated by

    # man sync
    SYNC(2)             UNIX Programmer's Manual              SYNC(2)

    NAME
	 sync - update super-block

    SYNOPSIS
	 sync( )

    DESCRIPTION
	 Sync causes all information in core memory that should be on
	 disk to be written out.  This includes modified super
	 blocks, modified i-nodes, and delayed block I/O.

	 It should be used by programs which examine a file system,
	 for example icheck, df, etc.  It is mandatory before a boot.

    SEE ALSO
	 sync(1), update(8)

    BUGS
	 The writing, although scheduled, is not necessarily complete
	 upon return from sync.

    ASSEMBLER
	 (sync = 36.)
	 sys sync

    Printed 1/1/70                                                  1
    # sync
    # sync
    *power off*


<http://www.in-ulm.de/~mascheck/various/ancient/v7.html>

Sven Mascheck