This shows you the differences between two versions of the page.
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$$s | :cwd dir | | + | | cd dir | dir$$CTRL-S |
| 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 | | ||
Line 17: | Line 23: | ||
| 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 | + | | sudo -u u cmd | u$CTRL-S cmd | |
- | | top | :peek | | + | | top |
| 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 ; | ||
+ | | ||
+ | :login smith ;The luser logs in | ||
+ | | ||
+ | :lisp ; | ||
+ | | ||
+ | LISP 2154 ; | ||
+ | ALLOC? N ;Take the world defaults | ||
+ | | ||
+ | (plus 3.14 2.71) ;Add two numbers | ||
+ | 5.85 | ||
+ | | ||
+ | (car ' | ||
+ | SIMPLE | ||
+ | | ||
+ | (ledit) | ||
+ | | ||
+ | (defun sum-squares (a b) ;Typed into the EMACS buffer | ||
+ | (plus (times a a | ||
+ | | ||
+ | ;CTRL-X Z returns to LISP | ||
+ | | ||
+ | ;READING FROM LEDIT SUN-SQUARES | ||
+ | ;EDIT COMPLETED | ||
+ | | ||
+ | (sum-squares 2.0 3.0) ;call SUM-SQUARES | ||
+ | 36.0 ;Returns the wrong number | ||
+ | | ||
+ | (ledit) | ||
+ | | ||
+ | CTRL-S (times a a ; | ||
+ | ;Search for STRING (times a a | ||
+ | | ||
+ | (defun sum-squares (a b) ;Correct SUM-SQUARES | ||
+ | (plus (times a a) | ||
+ | | ||
+ | ;CTRL-X Z returns to LISP | ||
+ | | ||
+ | ;READING FROM LEDIT SUM-SQUARES | ||
+ | ;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.// |