User Tools

Site Tools


its_survival_guide

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
its_survival_guide [2019/02/17 16:54]
smj created
its_survival_guide [2020/04/08 08:29]
lars Fix unbalanced parenthesis.
Line 1: Line 1:
-UNIX DDT CP +**ITS Survival Guide** 
-login user user$u :login user  + 
-logout $$u :logout  +Here a summary of useful commands for ITS in comparison common UNIX commands. 
-TERM=vt52  :tctyp vt52  + 
-TERM=vt100  :crtsty vt100  +Everywhere $ is written, it means typing Escape. 
-ls ^F :listf  + 
-ls dir dir^F :listf dir  +^UNIX ^DDT ^CP^ 
-ls / ^R m.f.d. (file) :print m.f.d. (file)  +|loginuser user$u :login user  
-ls *.foo ^R dir: second foo :print dir: second foo  +logout $$u :logout  
-more file ^R file :print file  +TERM=vt52  :tctyp vt52  
-mkdir dir ^R dir;..new. (udir) :print dir;..new. (udir)  +TERM=vt100  :crtsty vt100  
-cd dir dir$$:cwd dir  +ls | CTRL-:listf  
-cp f1 f2 $^R f1,f2 :copy f1,f2  +ls dir dir CTRL- :listf dir  
-rm file ^O file :delete file  +ls / | CTRL-R m.f.d. (file) :print m.f.d. (file)  
-ln f1 f2 $^O f1,f2 :link f1,f2  +ls *.foo | CTRL-R dir: second foo :print dir: second foo  
-mv f1 f2 $$^O f1,f2 :rename f1,f2  +more file | CTRL-R file :print file | 
-mv file dir  :move file,dir  +mkdir dir | CTRL-R dir;..new. (udir) :print dir;..new. (udir) | 
-emacs emacs^K :emacs  +cd dir dir$$CTRL-S | :cwd dir | 
-ps $$v :listj  +cp f1 f2 $CTRL-R f1,f2 :copy f1,f2 | 
-kill pid pid$^X :job pid :kill  +rm file | CTRL-O file :delete file | 
-sudo -u u cmd u$^S cmd   +ln f1 f2 $CTRL-O f1,f2 :link f1,f2 | 
-top  :peek  +mv f1 f2 $$CTRL-O f1,f2 :rename f1,f2 | 
-^^D   +mv file dir :move file,dir | 
-^^  +emacs | emacsCTRL-:emacs | 
-^^  +ps $$v :listj | 
-^^  +kill pid pid$CTRL-:job pid :kill | 
-fg $P :continue  +sudo -u u cmd u$CTRL-S cmd | 
-bg ^P :proceed +top  | peek CTRL-H | :peek | 
 +| CTRL-| CTRL-  
 +| CTRL-| CTRL- 
 +| CTRL-| CTRL- 
 +| CTRL-| CTRL- 
 +fg     | $P :continue  
 +bg | CTRL-:proceed 
 + 
 + 
 +**A sample MACLISP session using LEDIT MODE in EMACS** 
 +//;tnx1.0e6 to GLS// 
 +  
 +      KA ITS 1648 DDT 1547 TTY 52               ;System herald 
 +       
 +      :login smith                              ;The luser logs in 
 +       
 +      :lisp                                     ;MACLISP is started 
 +       
 +      LISP 2154                                 ;MACLISP version 
 +      ALLOC? N                                  ;Take the world defaults 
 +       
 +      (plus 3.14 2.71)                          ;Add two numbers 
 +      5.85 
 +       
 +      (car '(simple list))                      ;Return the CAR of a LIST 
 +      SIMPLE 
 +       
 +      (ledit)                                   ;Enters EMACS in LEDIT MODE 
 +       
 +      (defun sum-squares (a b)                  ;Typed into the EMACS buffer 
 +             (plus (times a a 
 +                   (times b b))))               ;META-Z pushes DEFUN to the world 
 +                                                ;CTRL-X Z returns to LISP 
 +       
 +      ;READING FROM LEDIT SUN-SQUARES           ;Back in LISP 
 +      ;EDIT COMPLETED 
 +       
 +      (sum-squares 2.0 3.0)                     ;call SUM-SQUARES 
 +      36.0                                      ;Returns the wrong number 
 +       
 +      (ledit)                                   ;Re-enter EMACS in LEDIT MODE 
 +       
 +      CTRL-S (times a a                         ;Typed into EMACS 
 +                                                ;Search for STRING (times a a 
 +       
 +      (defun sum-squares (a b)                  ;Correct SUM-SQUARES 
 +             (plus (times a a) 
 +                   (times b b)))                ;META-Z pushes new DEFUN to world 
 +                                                ;CTRL-X Z returns to LISP 
 +       
 +      ;READING FROM LEDIT SUM-SQUARES           ;Back in LISP 
 +      ;EDIT COMPLETED 
 +       
 +      (sum-squares 2.0 3.0)                     ;Call SUM-SQUARES again 
 +      13.0                                      ;Correct result 
 + 
 +//The LISP ... Editor ... LISP ... loop will no doubt be repeated many times.//
its_survival_guide.txt · Last modified: 2020/04/15 20:22 by smj