Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2355a6d
New translations 03_rsync_demo02.md (Chinese Simplified)
rockylinux-auto Jan 4, 2022
a0e9ce7
New translations 02_rsync_demo01.md (Chinese Simplified)
rockylinux-auto Jan 4, 2022
5f42d18
New translations 01_rsync_overview.md (Chinese Simplified)
rockylinux-auto Jan 4, 2022
58d4879
New translations 05_rsync_authentication-free_login.md (Chinese Simpl…
rockylinux-auto Jan 4, 2022
04d0896
New translations 07_rsync_unison_use.md (Chinese Simplified)
rockylinux-auto Jan 4, 2022
7ae8e76
New translations 06_rsync_inotify.md (Chinese Simplified)
rockylinux-auto Jan 4, 2022
2fbef6d
New translations 8-changelog.md (Chinese Simplified)
rockylinux-auto Jan 4, 2022
d46f35b
New translations 8-changelog.md (Chinese Simplified)
rockylinux-auto Jan 4, 2022
521ca18
New translations 01-presentation.md (Italian)
rockylinux-auto Jan 4, 2022
828f171
New translations 05-vi.md (Italian)
rockylinux-auto Jan 4, 2022
d504e3e
New translations 04-advanced-commands.md (Italian)
rockylinux-auto Jan 4, 2022
0f70a97
New translations index.md (Italian)
rockylinux-auto Jan 4, 2022
828d7b5
New translations 05-vi.md (French)
rockylinux-auto Jan 4, 2022
bd29ef6
New translations 03-commands.md (French)
rockylinux-auto Jan 4, 2022
dc89254
New translations 04-advanced-commands.md (French)
rockylinux-auto Jan 4, 2022
ab67480
New translations 03-commands.md (Italian)
rockylinux-auto Jan 4, 2022
f578375
New translations 04-advanced-commands.md (Italian)
rockylinux-auto Jan 4, 2022
375b827
New translations 01_rsync_overview.md (Chinese Simplified)
rockylinux-auto Jan 5, 2022
cdac25a
New translations 05-vi.md (Italian)
rockylinux-auto Jan 5, 2022
d746268
New translations 03_rsync_demo02.md (Chinese Simplified)
rockylinux-auto Jan 5, 2022
2a5e217
New translations 02_rsync_demo01.md (Chinese Simplified)
rockylinux-auto Jan 5, 2022
31c9150
New translations htop.md (Chinese Simplified)
rockylinux-auto Jan 5, 2022
868df7a
New translations 05_rsync_authentication-free_login.md (Chinese Simpl…
rockylinux-auto Jan 5, 2022
ef4398e
New translations 07_rsync_unison_use.md (Chinese Simplified)
rockylinux-auto Jan 5, 2022
b27d5cc
New translations 06_rsync_inotify.md (Chinese Simplified)
rockylinux-auto Jan 5, 2022
3905a36
New translations 06-users.md (Italian)
rockylinux-auto Jan 5, 2022
f74b6ad
New translations 8_4.md (Chinese Simplified)
rockylinux-auto Jan 5, 2022
1e320ed
New translations 06-users.md (Italian)
rockylinux-auto Jan 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/books/admin_guide/01-presentation.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In questo capitolo impareremo a conoscere le distribuzioni GNU/Linux.

Linux, UNIX, BSD, Windows e MacOS sono tutti **sistemi operativi**.

!!! abstract Astratto
!!! abstract "Astratto"

Un sistema operativo è un **insieme di programmi che gestisce le risorse disponibili di un computer**.

Expand Down
41 changes: 21 additions & 20 deletions docs/books/admin_guide/03-commands.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,9 @@ La commande `clear` permet d’effacer le contenu de l’écran du terminal. En

Dans un terminal, l’affichage sera définitivement masqué tandis que dans une interface graphique, un ascenseur permettra de remonter dans l’historique du terminal virtuel.

!!! TIP
<kbd>CTRL</kbd> + <kbd>L</kbd> aura le même effet que la commande `clear`
!!! Tip

<kbd>CTRL</kbd> + <kbd>L</kbd> aura le même effet que la commande `clear`

### La commande `echo`

Expand Down Expand Up @@ -609,7 +610,7 @@ Le répertoire « rockstar » devra exister pour créer le répertoire « work

Sinon, l’option `-p` devra être utilisée. L’option `-p` crée les répertoires parents s’ils n’existent pas.

!!! Danger
!!! Danger

Il est vivement déconseillé de donner des noms de commandes Linux comme nom de répertoires ou fichiers.

Expand All @@ -633,7 +634,7 @@ $ touch /home/rockstar/myfile

Date au format : `[AAAA]MMJJhhmm[ss]`

!!! Tip
!!! Tip

La commande touch est utilisée en priorité pour créer un fichier vide, mais elle peut avoir un intérêt dans le cadre de sauvegarde incrémentale ou différentielle par exemple. En effet, le fait d’exécuter un touch sur un fichier aura pour seul effet de forcer sa sauvegarde lors de la sauvegarde suivante.

Expand All @@ -651,7 +652,7 @@ $ rmdir /home/rockstar/work
| ------ | ------------------------------------------------------------------------------ |
| `-p` | Supprime le ou les répertoire(s) parent(s) à la condition qu’ils soient vides. |

!!! Tip
!!! Tip

Pour supprimer à la fois un répertoire non-vide et son contenu, il faudra utiliser la commande `rm`.

Expand All @@ -663,7 +664,7 @@ La commande `rm` supprime un fichier ou un répertoire.
rm [-f] [-r] file [file] [...]
```

!!! Danger
!!! Danger

Toute suppression de fichier ou de répertoire est définitive.

Expand All @@ -673,9 +674,9 @@ rm [-f] [-r] file [file] [...]
| `-i` | Demande de confirmation de la suppression. |
| `-r` | Supprime récursivement les sous-répertoires. |

!!! Note
!!! Note

La commande rm en elle-même ne demande pas de confirmation lors de la suppression de fichiers. Cependant avec une distribution RedHat/CentOS, `rm` demande une confirmation de suppression car la commande `rm` y est un alias de la commande `rm -i`. Ne soyez pas surpris sur une autre distribution, type Debian par exemple, de ne pas obtenir de demande de confirmation.
La commande `rm` en elle-même ne demande pas de confirmation lors de la suppression de fichiers. Cependant avec une distribution RedHat/CentOS, `rm` demande une confirmation de suppression car la commande `rm` y est un alias de la commande `rm -i`. Ne soyez pas surpris sur une autre distribution, type Debian par exemple, de ne pas obtenir de demande de confirmation.

La suppression d’un dossier à l’aide de la commande `rm`, que ce dossier soit vide ou non, nécessitera l’ajout de l’option `-r`.

Expand All @@ -684,10 +685,10 @@ La fin des options est signalée au shell par un double tiret `--`.
Dans l’exemple :

```bash
$ >-dur-dur # Pour créer un fichier vide appelé -dur-dur
dur dur
[CTRL+C] Pour interrompre la création du fichier
$ rm -f -- -dur-dur
$ >-hard-hard # To create an empty file called -hard-hard
hard-hard
[CTRL+C] To interrupt the creation of the file
$ rm -f -- -hard-hard
```

Le nom du fichier -dur-dur commence par un `-`. Sans l’usage du `--` le shell aurait interprété le `-d` de `-dur-dur` comme une option.
Expand Down Expand Up @@ -1127,7 +1128,7 @@ $ find /tmp -name *.txt -exec rm -f {} \;

La commande précédente recherche tous les fichiers du répertoire `/tmp` nommés `*.txt` et les supprime.

!!! Tip "Comprendre l'option `-exec`"
!!! Tip "Comprendre l'option `-exec`"

Dans l'exemple ci-dessus, la commande `find` construira une chaîne représentant la commande à exécuter.

Expand All @@ -1142,9 +1143,9 @@ La commande précédente recherche tous les fichiers du répertoire `/tmp` nomm

Le caractère `;` est un caractère spécial du shell qui doit être protégé par un `\` pour éviter son interprétation trop tôt par la commande `find` (et non plus dans le `-exec`).

!!! Tip
!!! Tip

`$ find /tmp -name *.txt -delete` does the same thing.
`$ find /tmp -name *.txt -delete` fait la même chose.

### La commande `whereis`

Expand Down Expand Up @@ -1196,7 +1197,7 @@ La commande `grep` retourne la ligne complète comprenant la chaîne de caractè
$ grep -w "^root" /etc/passwd
```

!!! Note
!!! Note

Cette commande est très puissante et il est fortement conseillé de consulter son manuel. Elle a de nombreux dérivés.

Expand Down Expand Up @@ -1242,11 +1243,11 @@ $ find /home -name "test[123]*"
/home/rockstar/test362
```

!!! Note
!!! Note

Prendre soin de toujours encadrer les mots contenant des méta-caractères par des `"` pour éviter qu’ils soient remplacés par le nom des fichiers qui répondraient aux critères.

!!! Warning
!!! Warning

Il ne faut pas confondre les méta-caractères du shell et ceux des expressions régulières. La commande `grep` utilise les méta-caractères des expressions régulières.

Expand Down Expand Up @@ -1277,7 +1278,7 @@ Il est possible de rediriger le flux d’entrée depuis un autre fichier avec le
$ ftp -in serverftp << ftp-commands.txt
```

!!! Note
!!! Note

Seules les commandes demandant une saisie au clavier pourront gérer la redirection d’entrée.

Expand Down Expand Up @@ -1305,7 +1306,7 @@ STOP

Le shell quitte la commande `ftp` lorsqu’il reçoit une ligne ne contenant que le mot clef.

!!! Warning
!!! Warning

Le mot clé de fin, ici `END` ou `STOP`, pour terminer la commande doit être le seul mot de la ligne et doit être au début de sa ligne.

Expand Down
81 changes: 56 additions & 25 deletions docs/books/admin_guide/03-commands.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ Il comando `clear` cancella il contenuto della schermata del terminale. Infatti,

In un terminale, il display sarà permanentemente nascosto, mentre nell'interfaccia grafica, una barra di scorrimento ti permetterà sempre di scorrere la cronologia del terminale virtuale.

!!! Tip Suggerimento <kbd>CTRL</kbd> + <kbd>L</kbd> avrà lo stesso effetto del comando `clear`
!!! Tip "Suggerimento"

<kbd>CTRL</kbd> + <kbd>L</kbd> avrà lo stesso effetto del comando `clear`

### comando `echo`

Expand Down Expand Up @@ -314,7 +316,9 @@ $ date -d 20210517 +%j

In questo ultimo esempio, l'opzione `d` visualizza una data fornita. L'opzione `+%j` formatta questa data per mostrare solo il giorno dell'anno.

!!! Warning Attenzione Il formato di una data può cambiare a seconda del valore della lingua definita nella variabile di ambiente `$LANG`.
!!! Warning "Attenzione"

Il formato di una data può cambiare in base al valore della lingua definito nella variabile ambiente '$LANG'.

Il display della data può seguire i seguenti formati:

Expand Down Expand Up @@ -498,8 +502,10 @@ $ ls -lia /home
| `25 oct. 08:10` | Ultima data di modifica. |
| `rockstar` | Il nome del file (o directory). |

!!! Note Nota Gli **Alias** sono spesso già inseriti nelle distribuzioni comuni.
!!! Note "Nota"

Gli **Alias** sono spesso già posizionati nelle distribuzioni comuni.

Questo è il caso dell'alias `ll`:

```
Expand Down Expand Up @@ -604,7 +610,9 @@ La directory "rockstar" deve esistere per creare la directory "work".

Altrimenti, dovrebbe essere utilizzata l'opzione `-p`. L'opzione `-p` crea le directory genitore se queste non esistono.

!!! Danger Pericolo Non è consigliato utilizzare i nomi dei comandi Linux come directory o nomi di file.
!!! Danger "Pericolo"

Non è consigliabile usare i nomi dei comandi Linux come directory o nomi di file.

### comando `touch`

Expand All @@ -626,7 +634,9 @@ $ touch /home/rockstar/myfile

Formato data: `[AAAA]MMJJhhmm[ss]`

!!! Tip Suggerimento Il comando `touch` viene utilizzato principalmente per creare un file vuoto, ma può essere utile per i backup incrementali o differenziali per esempio. Davvero, l'unico effetto di eseguire un `touch` su un file sarà quello di costringerlo a essere salvato durante il backup successivo.
!!! Tip "Suggerimento"

Il comando `touch` viene utilizzato principalmente per creare un file vuoto, ma può essere utile per esempio per i backup incrementali o differenziali. In effetti, l'unico effetto di eseguire un `touch` su un file sarà quello di forzarlo a essere salvato durante il prossimo backup.

### comando `rmdir`

Expand All @@ -642,7 +652,9 @@ $ rmdir /home/rockstar/work
| ------- | --------------------------------------------------------------------- |
| `-p` | Rimuove la directory o le directory principale fornite se sono vuote. |

!!! Tip Suggerimento Per eliminare sia una directory non vuota che il suo contenuto, utilizzare il comando `rm`.
!!! Tip "Suggerimento"

Per eliminare sia una directory non vuota che il suo contenuto, utilizzare il comando `rm`.

### comando `rm`

Expand All @@ -652,15 +664,19 @@ Il comando `rm` elimina un file o una directory.
rm [-f] [-r] file [file] [...]
```

!!! Danger Pericolo Qualsiasi cancellazione di un file o directory è definitiva.
!!! Danger "Pericolo"

Qualsiasi eliminazione di un file o directory è definitiva.

| Opzioni | Informazione |
| ------- | ------------------------------------------ |
| `-f` | Non chiedere conferma della cancellazione. |
| `-i` | Richiede conferma di cancellazione. |
| `-r` | Elimina ricorsivamente le sottodirectory.. |

!!! Note Nota Il comando `rm` non chiede la conferma durante l'eliminazione dei file. Tuttavia, con una distribuzione RedHat/Rocky, `rm` chiede la conferma della cancellazione in quanto il comando `rm` è un`alias` di `rm -i`. Non sorprenderti se su un'altra distribuzione, come Debian, ad esempio, non ottieni una richiesta di conferma.
!!! Note "Nota"

Il comando `rm` non chiede conferma quando si eliminano i file. Tuttavia, con una distribuzione RedHat/Rocky, `rm` chiede la conferma della cancellazione perché il comando `rm` è un `alias` del comando `rm -i`. Non sorprenderti se su un'altra distribuzione, come Debian, ad esempio, non ottieni una richiesta di conferma.

L'eliminazione di una cartella con il comando `rm`, che la cartella sia vuota o meno, richiederà l'aggiunta dell'opzione `-r`.

Expand All @@ -669,9 +685,9 @@ La fine delle opzioni è segnalata alla shell da un doppio trattino `--`.
Nell'esempio:

```bash
$ >-hard-hard # Per creare un file vuoto chiamato -hard-hard
$ >-hard-hard # To create an empty file called -hard-hard
hard-hard
[CTRL+C] Per interrompere la creazione del file
[CTRL+C] To interrupt the creation of the file
$ rm -f -- -hard-hard
```

Expand Down Expand Up @@ -947,7 +963,7 @@ Il comando `sort` ordina le linee di un file.
Ti consente di ordinare il risultato di un comando o del contenuto di un file in un determinato ordine, numericamente, alfabeticamente, per dimensione (KB, MB, GB) o in ordine inverso.

```bash
sort [-kx] [-n] [-o file] [-ty] file
sort [-kx] [-n] [-u] [-o file] [-ty] file
```

Esempio:
Expand Down Expand Up @@ -1112,8 +1128,10 @@ $ find /tmp -name *.txt -exec rm -f {} \;

Il comando precedente cerca tutti i file nella directory `/tmp` con il suffisso `*.txt` e li elimina.

!!! Tip "Comprendere l'opzione `-exec`" Nell'esempio sopra, il comando `find` costruirà una stringa che rappresenta il comando da eseguire.
!!! Tip "Comprendere l'opzione `-exec`"

Nell'esempio sopra, il comando `find` costruirà una stringa che rappresenta il comando da eseguire.

Se il comando `find` trova tre file denominati `log1.txt`, `log2.txt`, e `log3.txt`, il comando `find` costruirà la stringa sostituendo nella stringa `rm -f {} \;` le parentesi graffe con uno dei risultati della ricerca, e farà questo tutte le volte che ci sono dei risultati.

Questo ci darà:
Expand All @@ -1123,9 +1141,11 @@ Il comando precedente cerca tutti i file nella directory `/tmp` con il suffisso
```


Il carattere `;` è un carattere speciale di shell che deve essere protetto da `\` per evitare che venga interpretato troppo presto dal comando `find` (e non nel `-exec`).
Il carattere `;` è un carattere speciale della shell che deve essere protetto da `\` per evitare che venga interpretato troppo presto dal comando `find` (e non nel `-exec`).

!!! Tip "Suggerimento"

!!! Tip Suggerimento `$ find /tmp -name *.txt -delete` fa la stessa cosa.
`$ find /tmp -name *.txt -delete` does the same thing.

### comando `whereis`

Expand Down Expand Up @@ -1177,7 +1197,9 @@ Il comando `grep` restituisce la linea completa contenente la stringa che stai c
$ grep -w "^root" /etc/passwd
```

!!! Note Nota Questo comando è molto potente ed è altamente raccomandata la consultazione del manuale. Ha molti utilizzi derivati.
!!! Note "Nota"

Questo comando è molto potente e si consiglia vivamente di consultare il suo manuale. Ha molti utilizzi derivati.

È possibile cercare una stringa in un albero di file con l'opzione `-R`.

Expand Down Expand Up @@ -1221,9 +1243,13 @@ $ find /home -name "test[123]*"
/home/rockstar/test362
```

!!! Note Nota Delimita sempre le parole contenenti meta-caratteri con `"` per evitare che vengano sostituiti dai nomi dei file che soddisfano i criteri.
!!! Note "Nota"

Circonda sempre le parole contenenti meta-caratteri con `"` per evitare che vengano sostituite dai nomi dei file che soddisfano i criteri.

!!! Warning Avvertimento Non confondere i meta-caratteri della shell con i meta-caratteri dell'espressione regolare. Il comando `grep` usa i meta-caratteri dell'espressione regolare.
!!! Warning "Attenzione"

Non confondere i meta-caratteri della shell con i meta-caratteri dell'espressione regolare. Il comando `grep` usa i meta-caratteri dell'espressione regolare.

## Reindirizzamenti e pipes

Expand Down Expand Up @@ -1252,7 +1278,9 @@ Questi flussi puntano ai file delle periferiche, ma poiché tutto è un file in
$ ftp -in serverftp << ftp-commands.txt
```

!!! Note Nota Solo i comandi che richiedono l'input della tastiera saranno in grado di gestire il reindirizzamento dell'ingresso.
!!! Note "Nota"

Solo i comandi che richiedono un input da tastiera saranno in grado di gestire il reindirizzamento dell'input.

Il reindirizzamento dell'ingresso può anche essere utilizzato per simulare l'interattività dell'utente. Il comando leggerà il flusso di input finché non incontrerà la parola chiave definita dopo il reindirizzamento dell'ingresso.

Expand All @@ -1278,17 +1306,19 @@ STOP

La shell esce dal comando `ftp` quando riceve una linea contenente solo la parola chiave.

!!! Warning Avvertimento La parola chiave finale, quì `END` o `STOP`, deve essere l'unica parola sulla linea e deve essere all'inizio della linea.
!!! Warning "Attenzione"

La parola chiave finale, qui `END` o `STOP`, deve essere l'unica parola sulla riga e deve essere all'inizio della riga.

Il reindirizzamento dell'ingresso standard viene usato raramente perché la maggior parte dei comandi accetta un nome di file come argomento.

Il comando `wc` potrebbe essere usato in questo modo:

```bash
$ wc -l .bash_profile
27 .bash_profile # il numero di linee è seguito dal nome del file
27 .bash_profile # the number of lines is followed by the file name
$ wc -l < .bash_profile
27 # restituisce solo il numero di linee
27 # returns only the number of lines
```

### Redirezione Output
Expand Down Expand Up @@ -1431,7 +1461,8 @@ Per un uso permanente, devono essere creati nel:
* `.bashrc` file nella directory di accesso dell'utente;
* `/etc/profile.d/alias.sh` file per tutti gli utenti.

!!! Warning Avvertimento Prestare particolare attenzione quando si utilizzano alias che possono essere potenzialmente pericolosi! Ad esempio, un alias creato senza una conoscenza di base di amministratore:
!!! Attenzione
Occorre prestare particolare attenzione quando si utilizzano alias che possono essere potenzialmente pericolosi! Ad esempio, un alias creato senza una conoscenza di base di amministratore:

```bash
alias cd='rm -Rf'
Expand Down Expand Up @@ -1462,15 +1493,15 @@ $ type ls
potrebbe restituire quanto segue:

```bash
ls is an alias to « ls -rt »
ls è un alias di « ls -rt »
```

Ora che questo è noto, possiamo vedere i risultati dell'utilizzo dell'alias o disabilitarlo in una volta con il carattere `\` eseguendo il seguente:

```bash
$ ls file* # ordine per data
$ ls file* # order by time
file3.txt file2.txt file1.txt
$ \ls file* # ordine per nome
$ \ls file* # order by name
file1.txt file2.txt file3.txt
```

Expand Down
Loading