Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA249      CA318      CA425      CA651

w2mind.computing.dcu.ie      w2mind.org


More UNIX



Pipes and redirection

Very powerful features.




Filename completion

Start typing filename, hit special key to complete it.


History


h         history of recent commands (numbered)
!n        replay command number n
!string   replay last command beginning with string
!!        last command

examples
!6 | sort
!ls | grep -v html




Processes



ps                      See what processes are running
kill (process id)       Terminate some of your processes
kill -1                 All my processes
kill -KILL (pid)        Definite kill
xkill &                 Kill the next thing I click on      

nice			Run something at low priority deliberately
time			Time a run of some program    




Interrupts

Usage seems to vary on different variants of UNIX and Linux. You may get something like:

Ctrl-S                  Pause
Ctrl-C                  Interrupt
Ctrl-D                  Kill, Logout

Ctrl-Z                  EOF
 
q		exit man, more



Command-line Philosophy

A computer for programmers.


GUI Philosophy

A computer for non-programmers.


Note that user interface people say these dialogs are often ignored.
From Donald Norman, The Psychology of Everyday Things, 1988, Ch.5:

Human - Delete all my most important files.
System - Are you sure?
Human - Yes Yes.
System - Are you really sure?
Human - Yes Yes.
System - All your most important files deleted.
Human - Oh damnit.

Compare with UNIX:

Human - Delete all my most important files.
System - (Silence.)
Human - Oh damnit.



Command-line on Mac / Windows



Feeds      HumphrysFamilyTree.com

Bookmark and Share           On Internet since 1987.