31.05.2013 Views

Comandi Bash shell - SisInf Lab

Comandi Bash shell - SisInf Lab

Comandi Bash shell - SisInf Lab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CORSO DI FONDAMENTI DEI SISTEMI OPERATIVI<br />

A.A. 2012-2013<br />

(Prof. G. Piscitelli)<br />

passwd .............................................................................................................................. 25<br />

userdel .............................................................................................................................. 26<br />

usermod ............................................................................................................................ 26<br />

su (substitute user) ............................................................................................................ 27<br />

<strong>Comandi</strong> informativi ............................................................................................................ 27<br />

id ...................................................................................................................................... 27<br />

whoami ............................................................................................................................. 28<br />

who .................................................................................................................................. 28<br />

groups............................................................................................................................... 28<br />

last .................................................................................................................................... 28<br />

Variabili ............................................................................................................................... 29<br />

Definizione ....................................................................................................................... 29<br />

Variabili d'ambiente ......................................................................................................... 29<br />

printenv ............................................................................................................................ 29<br />

export ............................................................................................................................... 30<br />

set/unset............................................................................................................................ 30<br />

Visualizzazione ed editing di file .......................................................................................... 31<br />

cat..................................................................................................................................... 31<br />

file .................................................................................................................................... 31<br />

less (more) ........................................................................................................................ 31<br />

Canali di comunicazione e ridirezione .................................................................................. 32<br />

Operatori di ridirezione dello standard output ................................................................... 32<br />

Operatori di ridirezione dello standard error ...................................................................... 32<br />

Operatori di ridirezione dello standard input ..................................................................... 32<br />

Operatore di pipeline ........................................................................................................ 33<br />

Liste di comandi ................................................................................................................... 33<br />

sequenza ........................................................................................................................... 33<br />

concorrenza ...................................................................................................................... 34<br />

condizione ........................................................................................................................ 34<br />

esclusione ......................................................................................................................... 34<br />

Exit status di liste di comandi ........................................................................................... 34<br />

Script BASH ........................................................................................................................ 34<br />

Filtri e programmi di utilità generica..................................................................................... 35<br />

sort ................................................................................................................................... 35<br />

wc..................................................................................................................................... 36<br />

head .................................................................................................................................. 36<br />

tail .................................................................................................................................... 36<br />

uniq .................................................................................................................................. 37<br />

cut .................................................................................................................................... 37<br />

diff ................................................................................................................................... 38<br />

Gestione dei processi ............................................................................................................ 39<br />

Avvio del sistema .............................................................................................................. 39<br />

Runlevel ........................................................................................................................... 39<br />

shutdown .......................................................................................................................... 40<br />

Controllo dei processi ....................................................................................................... 40<br />

ps ...................................................................................................................................... 41<br />

Esercitazioni comandi <strong>shell</strong> <strong>Bash</strong> (Ing. S. Giannini) Pagina 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!