User Tools

Site Tools


its_survival_guide

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
its_survival_guide [2019/10/17 21:34]
smj
its_survival_guide [2020/04/08 08:29]
lars Fix unbalanced parenthesis.
Line 1: Line 1:
 +**ITS Survival Guide**
 +
 +Here a summary of useful commands for ITS in comparison common UNIX commands.
 +
 +Everywhere $ is written, it means typing Escape.
 +
 ^UNIX ^DDT ^CP^ ^UNIX ^DDT ^CP^
 |login: user | user$u | :login user |  |login: user | user$u | :login user | 
Line 10: Line 16:
 | more file | CTRL-R file | :print file | | more file | CTRL-R file | :print file |
 | mkdir dir | CTRL-R dir;..new. (udir) | :print dir;..new. (udir) | | mkdir dir | CTRL-R dir;..new. (udir) | :print dir;..new. (udir) |
-| cd dir dir$$| :cwd dir |+| cd dir dir$$CTRL-S | :cwd dir |
 | cp f1 f2 | $CTRL-R f1,f2 | :copy f1,f2 | | cp f1 f2 | $CTRL-R f1,f2 | :copy f1,f2 |
 | rm file | CTRL-O file | :delete file | | rm file | CTRL-O file | :delete file |
 | ln f1 f2 | $CTRL-O f1,f2 | :link f1,f2 | | ln f1 f2 | $CTRL-O f1,f2 | :link f1,f2 |
 | mv f1 f2 | $$CTRL-O f1,f2 | :rename f1,f2 | | mv f1 f2 | $$CTRL-O f1,f2 | :rename f1,f2 |
-| mv file dir |  :move file,dir |+| mv file dir | :move file,dir |
 | emacs | emacsCTRL-K | :emacs | | emacs | emacsCTRL-K | :emacs |
-| ps $$v | :listj |+| ps $$v | :listj |
 | kill pid | pid$CTRL-X | :job pid :kill | | kill pid | pid$CTRL-X | :job pid :kill |
-| sudo -u u cmd | u$CTRL-S cmd  +| sudo -u u cmd | u$CTRL-S cmd | 
-| top  | :peek |+| top  | peek CTRL-H | :peek |
 | CTRL-U | CTRL-D |   | CTRL-U | CTRL-D |  
 | CTRL-C | CTRL-G |  | CTRL-C | CTRL-G | 
Line 27: Line 33:
 | fg     | $P | :continue |  | fg     | $P | :continue | 
 | bg | CTRL-P | :proceed | | bg | CTRL-P | :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