This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
sun_3_160 [2022/05/23 18:20] smj created |
sun_3_160 [2022/05/23 20:44] smj |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Sun 3/160 | + | The Sun 3/160 runs a System V UNIX variant known as SunOS 4.1.1. |
{{: | {{: | ||
+ | |||
+ | An example session: | ||
+ | |||
+ | SunOS UNIX (three) | ||
+ | |||
+ | | ||
+ | | ||
+ | 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 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | $ uptime | ||
+ | | ||
+ | $ date | ||
+ | Thu May 12 04:42:40 PDT 1994 | ||
+ | $ ls | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | $ cat hello.c | ||
+ | # | ||
+ | |||
+ | main () { | ||
+ | int i, j; | ||
+ | j = 0; | ||
+ | for (i = 0; i < 10; i++) { | ||
+ | j += (5 * i + 2 * i); | ||
+ | j >>= 1; | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | $ 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 | ||
+ | | ||
+ | $ ls /usr/games | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | $ | ||
+ |