User Tools

Site Tools


sun_3_160

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
sun_3_160 [2022/05/23 18:20]
smj created
sun_3_160 [2022/05/23 20:41]
smj
Line 1: Line 1:
 Sun 3/160 Sun 3/160
 {{:sun_3160.jpg?600|}} {{:sun_3160.jpg?600|}}
 +
 +  ssh three@tty.livingcomputers.org
 + *
 + * Visit https://wiki.livingcomputers.org for documentation.
 + *
 + * Use ssh three@tty.livingcomputers.org to connect.
 + *
 + * Guest access is available:
 + *
 + * login 'lcm', password 'lcm'
 + * logout by pressing 'CTRL-D'
 + *
 + * CTRL-] quit to return to the menu
 + *
 +
 +
 +SunOS UNIX (three)
 +
 +login: lcm
 +Password:
 +Last login: Thu May 12 03:10:50 from tty.livingcomput
 +SunOS Release 4.1.1 (UX400S) #1: Sun Sep 4 11:51:28 PDT 2011
 +You have mail.
 +$ who -Tu
 +who: cannot open utmp
 +$ who
 +lcm      console Apr 25 03:53
 +lcm      ttyp0   Apr 25 03:54
 +lcm      ttyp1   Apr 25 03:54
 +lcm      ttyp2   Apr 25 03:54
 +lcm      ttyp3   May 12 04:42   (tty.livingcomput)
 +$ uptime
 +  4:42am  up 21 days, 21:17,  2 users,  load average: 0.16, 0.03, 0.00
 +$ cc
 +$ cc -v
 +$ cc -V
 +cc: Warning: Option -V passed to ld
 +$ cc --version
 +cc: Warning: Option --version passed to ld
 +$ date
 +Thu May 12 04:42:40 PDT 1994
 +$ lc
 +lc: not found
 +$ ls
 +core           fib.c          hi             mfact.c        vm_fonts.n0.Z
 +dead.letter    fib2.c         hi.c           mfact.s        wer.sh
 +fact           hello          jim            mfact.s.nl
 +fact.c         hello.c        mbox           something.c
 +fib            hello.s        mfact          tmp
 +$ cat hello.c
 +#include <stdio.h>
 +
 +main () {
 +        int i, j;
 +        j = 0;
 +        for (i = 0; i < 10; i++) {
 +                j += (5 * i + 2 * i);
 +                j >>= 1;
 +                printf ("i=%d j=%d\n", i, j);
 +        }
 +}
 +$ cc -o hello hello.c
 +$ ./hello
 +i=0 j=0
 +i=1 j=3
 +i=2 j=8
 +i=3 j=14
 +i=4 j=21
 +i=5 j=28
 +i=6 j=35
 +i=7 j=42
 +i=8 j=49
 +i=9 j=56
 +$ games
 +games: not found
 +$ ls /usr/games
 +adventure     boggletool    factor        mille         snake
 +arithmetic    btlgammon     fish          monop         snscore
 +backgammon    canfield      fortune       moo           teachgammon
 +banner        canfieldtool  gammonscore   number        trek
 +battlestar    cfscores      gammontool    ppt           worm
 +bcd           chess         hack          primes        worms
 +bj            chesstool     hangman       quiz          wump
 +bogdict       ching         hunt          rain
 +boggle        craps         lib           random
 +boggledict    cribbage      life          robots
 +$
 +
sun_3_160.txt · Last modified: 2022/05/23 20:46 by smj