-
Exécuter en avant plan ou en arrière plan :
$ g77 gros-pgm.f
^Z
[1]+ Stopped g77 gros-pgm.f
$ jobs
[1]+ Stopped g77 gros-pgm.f
$ bg
[1]+ g77 gros-pgm.f &
$ jobs
[1]+ Running g77 gros-pgm.f &
$ fg
g77 gros-pgm.f
- Examiner le code de retour :
$ test 1 = 1 ; echo $?
0
$ test 1 = 0 ; echo $?
1
- Lister les processus :
$ ps -aux # ps -ef sous Système V
USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND
root 1 0.0 0.5 796 340 ? S 12:13 0:02 init
root 2 0.0 0.0 0 0 ? SW 12:13 0:00 (kflushd)
root 3 0.0 0.0 0 0 ? SW< 12:13 0:00 (kswapd)
- Transmettre un signal à un processus :
$ kill -15 599
$ kill -9 599
$ killall netscape
- Passer un shell dans l'état d'attente :
$ sleep 100
- Immuniser contre la mort du terminal :
$ nohup night-batch &