User Tools

Site Tools


its_survival_guide

This is an old revision of the document!


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
login: user user$u :login user
logout $$u :logout
TERM=vt52 :tctyp vt52
TERM=vt100 :crtsty vt100
ls CTRL-F :listf
ls dir dir CTRL-F :listf dir
ls / CTRL-R m.f.d. (file) :print m.f.d. (file)
ls *.foo CTRL-R dir: second foo :print dir: second foo
more file CTRL-R file :print file
mkdir dir CTRL-R dir;..new. (udir) :print dir;..new. (udir)
cd dir dir$$CTRL-S :cwd dir
cp f1 f2 $CTRL-R f1,f2 :copy f1,f2
rm file CTRL-O file :delete file
ln f1 f2 $CTRL-O f1,f2 :link f1,f2
mv f1 f2 $$CTRL-O f1,f2 :rename f1,f2
mv file dir :move file,dir
emacs emacsCTRL-K :emacs
ps $$v :listj
kill pid pid$CTRL-X :job pid :kill
sudo -u u cmd u$CTRL-S cmd
top peek CTRL-H :peek
CTRL-U CTRL-D
CTRL-C CTRL-G
CTRL-Z CTRL-Z
CTRL-D CTRL-C
fg $P :continue
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.1586334548.txt.gz · Last modified: 2020/04/08 08:29 by lars