aboutsummaryrefslogtreecommitdiff
path: root/it_IT.ISO8859-15/books/unix-introduction/command-summary/chapter.xml
blob: 2f3812ecb0bc64085b37840f683ca5643a58b6d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
<?xml version="1.0" encoding="iso-8859-15"?>
<!--
     The FreeBSD Italian Documentation Project

     $FreeBSD$
-->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="command-summary">
  <title>Riassunto dei comandi Unix</title>

  <sect1 xml:id="command-summary-">
    <title>Comandi Unix</title>

    <para>Nella tabella che segue vengono riassunti i comandi maggiormente usati
      su un sistema Unix.  In questa tabella, come in generale avviene, per
      molti comandi Unix, <replaceable>file</replaceable> può essere un
      nome di file, una lista di nomi di file o input/output che potrebbe essere
      rediretto per o dal comando.</para>

    <table frame="all" xml:id="command-summary-table">
      <title>Comandi Unix</title>

      <tgroup cols="2">
        <colspec colwidth="4in"/>

        <thead>
          <row>
            <entry align="center">Comando/Sintassi</entry>

            <entry align="center">Cosa fa</entry>
          </row>
        </thead>

        <tbody>
          <row>
            <entry><command>awk/nawk [opzioni]
                file</command></entry>

            <entry>esamina schemi in un file e processa i risultati</entry>
          </row>

          <row>
            <entry><command>cat [opzioni]
                file</command></entry>

            <entry>concatena (lista) un file</entry>
          </row>

          <row>
            <entry><command>cd
                [directory]</command></entry>

            <entry>cambia directory</entry>
          </row>

          <row>
            <entry><command>chgrp [opzioni]
                gruppo file</command></entry>

            <entry>cambia il gruppo di appartenenza di un file</entry>
          </row>

          <row>
            <entry><command>chmod [opzioni]
                file</command></entry>

            <entry>cambia i permessi di accesso a file o directory</entry>
          </row>

          <row>
            <entry><command>chown [opzioni]
                proprietario file</command></entry>

            <entry>cambia il proprietario di un file; può essere solo
              fatto dal super-user</entry>
          </row>

          <row>
            <entry><command>chsh (passwd -e/-s) username
                login_shell</command></entry>

            <entry>cambia la shell di login dell'utente (spesso solamente
              attraverso il super-user)</entry>
          </row>

          <row>
            <entry><command>cmp [opzioni]
                file1 file2</command></entry>

            <entry>confronta due file e mostra dove avvengono le differenze
              (file di testo e file binari)</entry>
          </row>

          <row>
            <entry><command>compress [opzioni]
                file</command></entry>

            <entry>comprime il file specificato e lo salva con l'estensione
              <filename>.Z</filename></entry>
          </row>

          <row>
            <entry><command>cp [opzioni]
                file1 file2</command></entry>

            <entry>copia <filename>file1</filename>
              in <filename>file2</filename>;
              <filename>file2</filename> non dovrebbe
              già esistere.  Questo comando crea o sovrascrive
              <filename>file2</filename></entry>
          </row>

          <row>
            <entry><command>cut (opzioni)
                [file]</command></entry>

            <entry>taglia specifici campi/caratteri dalle linee del file
              specificato</entry>
          </row>

          <row>
            <entry><command>date
                [opzioni]</command></entry>

            <entry>riporta data e ora corrente</entry>
          </row>

          <row>
            <entry><command>dd [if=infile]
                [of=outfile]
                [operando=valore]</command></entry>

            <entry>copia un file, converte tra ASCII e EBCDIC o scambia l'ordine
              di byte, come specificato</entry>
          </row>

          <row>
            <entry><command>diff [opzioni]
                file1 file2</command></entry>

            <entry>confronta i due file e visualizza le differenze (solamente
              file di testo)</entry>
          </row>

          <row>
            <entry><command>df [opzioni]
                [risorsa]</command></entry>

            <entry>riporta il sommario dei blocchi del disco e degli inode
              liberi e usati</entry>
          </row>

          <row>
            <entry><command>du [opzioni]
                [directory o
                file]</command></entry>

            <entry>riporta lo spazio di disco usato</entry>
          </row>

          <row>
            <entry><command>echo
                [stringa di testo]</command></entry>

            <entry>riporta la stringa di testo specificata in standard
              output</entry>
          </row>

          <row>
            <entry><command>ed</command> o <command>ex
                [opzioni]
                file</command></entry>

            <entry>editor a linea di comando</entry>
          </row>

          <row>
            <entry><command>emacs [opzioni]
                file</command></entry>

            <entry>editor a schermo-pieno</entry>
          </row>

          <row>
            <entry><command>expr
                argomenti</command></entry>

            <entry>valuta gli argomenti.  Usato per l'aritmetica, ecc. in
              shell</entry>
          </row>

          <row>
            <entry><command>file [opzioni]
                file</command></entry>

            <entry>classifica il tipo di file</entry>
          </row>

          <row>
            <entry><command>find directory
                [opzioni]
                [azioni]</command></entry>

            <entry>cerca file basandosi sul tipo o su uno schema</entry>
          </row>

          <row>
            <entry><command>finger [opzioni]
                user[@nomehost]</command></entry>

            <entry>riporta informazioni circa gli utenti di macchine locali e
              remote</entry>
          </row>

          <row>
            <entry><command>ftp [opzioni]
                host</command></entry>

            <entry>trasferisce file utilizzando il protocollo di trasferimento
              di file (FTP)</entry>
          </row>

          <row>
            <entry><command>grep [opzioni]
                'stringa di ricerca'
                argomento</command></entry>

            <entry morerows="2">ricerca nell'argomento (in questo caso
              probabilmente un file) tutte le occorrenze della stringa di
              ricerca specificata e le visualizza</entry>
          </row>

          <row>
            <entry><command>egrep [opzioni]
                'stringa di ricerca'
                argomento</command></entry>
          </row>

          <row>
            <entry><command>fgrep [opzioni]
                'stringa di ricerca'
                argomento</command></entry>
          </row>

          <row>
            <entry><command>gzip [opzioni]
                file</command></entry>

            <entry morerows="2">comprime o decomprime un file.  I file compressi
              vengo memorizzati con l'estensione
              <filename>.gz</filename></entry>
          </row>

          <row>
            <entry><command>gunzip [opzioni]
                file</command></entry>
          </row>

          <row>
            <entry><command>zcat [opzioni]
                file</command></entry>
          </row>

          <row>
            <entry><command>head [-numero]
                file</command></entry>

            <entry>mostra le prime 10 (o numero di) linee di un file</entry>
          </row>

          <row>
            <entry><command>hostname</command></entry>

            <entry>mostra o setta (solamente super-user) il nome della macchina
              attuale</entry>
          </row>

          <row>
            <entry><command>kill [opzioni]
                [-SEGNALE]
                [pid#]
                [%job]</command></entry>

            <entry>manda un segnale al processo specificato dal numero di
              processo id (<replaceable>pid#</replaceable>) o dal numero di
              controllo del job (%<replaceable>n</replaceable>).  Il segnale di
              default termina il processo</entry>
          </row>

          <row>
            <entry><command>ln [opzioni]
                sorgente
                  destinazione</command></entry>

            <entry>crea un collegamento di nome
              <filename>destinazione</filename> a
              <filename>sorgente</filename></entry>
          </row>

          <row>
            <entry><command>lpq
                [opzioni]</command></entry>

            <entry morerows="1">mostra lo stato dei job di stampa</entry>
          </row>

          <row>
            <entry><command>lpstat
                [opzioni]</command></entry>
          </row>

          <row>
            <entry><command>lpr [opzioni]
              file</command></entry>

            <entry morerows="1">stampa sulla stampante specificata</entry>
          </row>

          <row>
            <entry><command>lp [opzioni]
                file</command></entry>
          </row>

          <row>
            <entry><command>lprm
                [opzioni]</command></entry>

            <entry morerows="1">rimuove un job di stampa dalla coda di
              stampa</entry>
          </row>

          <row>
            <entry><command>cancel
                [opzioni]</command></entry>
          </row>

          <row>
            <entry><command>ls [opzioni]
                [directory o
                file]</command></entry>

            <entry>elenca il contenuto della directory specificata o i permessi
              del file specificato</entry>
          </row>

          <row>
            <entry><command>mail [opzioni]
                [user]</command></entry>

            <entry morerows="2">semplice utility per la posta elettronica
              disponibile su un sistema Unix.  Si digita un punto come primo
              carattere su una nuova linea per trasmettere il messaggio, un
              punto interrogativo per richiamare l'help</entry>
          </row>

          <row>
            <entry><command>mailx [opzioni]
                [user]</command></entry>
          </row>

          <row>
            <entry><command>Mail [opzioni]
                [user]</command></entry>
          </row>

          <row>
            <entry><command>man [opzioni]
                comando</command></entry>

            <entry>mostra la pagina di manuale (<emphasis>man</emphasis>)
              del comando specificato</entry>
          </row>

          <row>
            <entry><command>mkdir [opzioni]
                directory</command></entry>

            <entry>crea una directory</entry>
          </row>

          <row>
            <entry><command>more [opzioni]
                file</command></entry>

            <entry morerows="2">impaginatore di un file testuale</entry>
          </row>

          <row>
            <entry><command>less [opzioni]
                file</command></entry>
          </row>

          <row>
            <entry><command>pg [opzioni]
                file</command></entry>
          </row>

          <row>
            <entry><command>mv [opzioni]
                file1 file2</command></entry>

            <entry>muove <filename>file1</filename>
              in <filename>file2</filename></entry>
          </row>

          <row>
            <entry><command>od [opzioni]
                file</command></entry>

            <entry>dump su un file binario, in ottale, in ASCII, in
              esadecimale, in decimale o in modalità carattere.</entry>
          </row>

          <row>
            <entry><command>passwd
                [opzioni]</command></entry>

            <entry>setta o modifica la propria password</entry>
          </row>

          <row>
            <entry><command>paste [opzioni]
                file</command></entry>

            <entry>incolla campi nelle linee del file specificato</entry>
          </row>

          <row>
            <entry><command>pr [opzioni]
                file</command></entry>

            <entry>filtra il file e lo stampa su un terminale</entry>
          </row>

          <row>
            <entry><command>ps
                [opzioni]</command></entry>

            <entry>mostra lo stato dei processi attivi</entry>
          </row>

          <row>
            <entry><command>pwd</command></entry>

            <entry>stampa la directory di lavoro (corrente)</entry>
          </row>

          <row>
            <entry><command>rcp [opzioni]
                nomehost</command></entry>

            <entry>copia file in remoto dalla macchina corrente in un'altra
              macchina</entry>
          </row>

          <row>
            <entry><command>rlogin [opzioni]
                nomehost</command></entry>

            <entry>effettua il login in remoto su un'altra macchina</entry>
          </row>

          <row>
            <entry><command>rm [opzioni]
                file</command></entry>

            <entry>rimuove (elimina) un file o una directory
              (<option>-r</option> elimina ricorsivamente la directory ed il suo
              contenuto) (<option>-i</option> chiede conferma prima di eliminare
              i file)</entry>
          </row>

          <row>
            <entry><command>rmdir [opzioni]
                directory</command></entry>

            <entry>rimuove una directory</entry>
          </row>

          <row>
            <entry><command>rsh [opzioni]
                nomehost</command></entry>

            <entry>shell remota da eseguire su un'altra macchina</entry>
          </row>

          <row>
            <entry><command>script
                file</command></entry>

            <entry>memorizza ogni cosa che appare sullo schermo in un file fino
              a quando si esegue <command>exit</command></entry>
          </row>

          <row>
            <entry><command>sed [opzioni]
                file</command></entry>

            <entry>editor di flusso per editare file da uno script o da linea di
              comando</entry>
          </row>

          <row>
            <entry><command>sort [opzioni]
                file</command></entry>

            <entry>ordina le linee del file specificato basandosi sulle opzioni
              scelte</entry>
          </row>

          <row>
            <entry><command>source
                file</command></entry>

            <entry morerows="1">legge i comandi dal file specificato
              e li esegue nella shell corrente.  <command>source</command> per
              la shell C, <command>.</command> per la shell Bourne</entry>
          </row>

          <row>
            <entry><command>. file</command></entry>
          </row>

          <row>
            <entry><command>strings [opzioni]
                file</command></entry>

            <entry>riporta sequenze di 4 o più caratteri stampabili
              terminanti in &lt;NL&gt; o &lt;NULL&gt;.  Generalmente viene usato
              per ricercare in file binari stringhe ASCII</entry>
          </row>

          <row>
            <entry><command>stty
                [opzioni]</command></entry>

            <entry>setta o visualizza le opzioni del terminale di
              controllo</entry>
          </row>

          <row>
            <entry><command>tail [opzioni]
                file</command></entry>

            <entry>mostra le ultime linee (o parte) di un file</entry>
          </row>

          <row>
            <entry><command>tar [opzioni]
                [file]</command></entry>

            <entry>archivio a nastro--riferirsi alle pagine man per dettagli su
              come creare, elencare ed estrarre file da un archivio.  I file tar
              possono essere memorizzati su disco o su nastro.</entry>
          </row>

          <row>
            <entry><command>tee [opzioni]
                file</command></entry>

            <entry>copia standard output in uno o più file</entry>
          </row>

          <row>
            <entry><command>telnet [host
                [porta]]</command></entry>

            <entry>comunica con un altro host usando il protocollo
              telnet</entry>
          </row>

          <row>
            <entry><command>touch [opzioni]
                [data/ora]
                file</command></entry>

            <entry>crea un file vuoto o aggiorna la data/ora di accesso di un
              file esistente</entry>
          </row>

          <row>
            <entry><command>tr [opzioni]
                stringa1 stringa2</command></entry>

            <entry>traduce i caratteri di <replaceable>stringa1</replaceable>
              provenienti da standard input in quelli di
              <replaceable>stringa2</replaceable> per standard output</entry>
          </row>

          <row>
            <entry><command>uncompress
                file.Z</command></entry>

            <entry>decomprime il file specificato e lo salva in un file</entry>
          </row>

          <row>
            <entry><command>uniq [opzioni]
                file</command></entry>

            <entry>rimuove le linee ripetute in un file</entry>
          </row>

          <row>
            <entry><command>uudecode
                [file]</command></entry>

            <entry>decodifica un file codificato con
              <command>uuencode</command>, riportandolo al file
              originale</entry>
          </row>

          <row>
            <entry><command>uuencode [file]
                nuovo_nome</command></entry>

            <entry>codifica un file binario in codice ASCII 7-bit; utile quando
              lo si trasmette via email, per essere poi decodificato come
              <filename>nuovo_nome</filename> alla
              destinazione</entry>
          </row>

          <row>
            <entry><command>vi [opzioni]
                file</command></entry>

            <entry>editor visuale, a pieno schermo</entry>
          </row>

          <row>
            <entry><command>wc [opzioni]
                [file]</command></entry>

            <entry>mostra il numero di parole (o di caratteri o di linee) del
              file specificato</entry>
          </row>

          <row>
            <entry><command>whereis [opzioni]
                comando</command></entry>

            <entry>riporta le locazioni del binario, del sorgente e della pagina
              man per il comando specificato</entry>
          </row>

          <row>
            <entry><command>which
                comando</command></entry>

            <entry>riporta il percorso del comando o l'alias di shell in
              uso</entry>
          </row>

          <row>
            <entry><command>who</command> o <command>w</command></entry>

            <entry>riporta chi è <quote>loggato</quote> e quali processi
              ha in esecuzione</entry>
          </row>

          <row>
            <entry><command>zcat
                file.Z</command></entry>

            <entry>concatena (lista) il file non compresso a video, lasciando il
              file compresso su disco</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </sect1>
</chapter>