|
15.
|
|
|
Use 'tail -f file' to watch a log file as messages get appended, and use 'tail -100 file' to change the count of lines read from the file.
|
|
|
type: Plain text
|
|
|
|
Usare <<tail -f file>> per visionare un file di registro via via che dei messaggi vengono aggiunti e <<tail -100 file>> per cambiare il conteggio delle righe lette dal file.
|
|
Translated and reviewed by
Luca Petrolati
|
|
|
|
Located in
ubuntu-server-tips:48
|
|
16.
|
|
|
An easy way to see what processes own which network connections: 'sudo netstat -tup' for connections and 'sudo netstat -tupl for listening process.
|
|
|
type: Plain text
|
|
|
|
Un modo semplice per vedere quali connessioni di rete ogni processo detiene, eseguire <<sudo netstat -tup>> per le connessioni e <<sudo netstat -tupl>> per i processi in ascolto.
|
|
Translated and reviewed by
Luca Petrolati
|
|
|
|
Located in
ubuntu-server-tips:51
|
|
17.
|
|
|
The 'history' command will show you the commands you've used before. Alternatively you can use the up arrow button to look through them.
|
|
|
type: Plain text
|
|
|
|
Il comando "history" mostra i comandi utilizzati precedentemente. In alternativa è possibile usare il pulsante freccia in su per consultarli.
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:54
|
|
18.
|
|
|
To make a backup without typing the full path twice: 'cp /long/path/to/file/name{,.orig}' to create a copy with the suffix .orig
|
|
|
type: Plain text
|
|
|
|
Se si vuole fare un backup senza digitare il percorso completo per due volte: "cp /long/path/to/file/name{,.orig}" per creare una copia col suffisso .orig
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:57
|
|
19.
|
|
|
If you executed a command and neglected to use sudo, you can execute "sudo !!" to re-execute the previous command with sudo prepended.
|
|
|
type: Plain text
|
|
|
|
Se si esegue un comando e si tralascia di utilizzare sudo, è possibile eseguire "sudo !!" per ri-eseguire il comando precedente con sudo anteposto.
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:60
|
|
20.
|
|
|
Install 'denyhosts' to help protect against brute force SSH attacks, auto-blocking multiple attempts.
|
|
|
type: Plain text
|
|
|
|
Se si installa "denyhosts" si bloccano automaticamente i tentativi multipli di attacchi a forza bruta SSH.
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:63
|
|
21.
|
|
|
Use "iotop" for measuring hard disk I/O (current read/write) usage per application.
|
|
|
type: Plain text
|
|
|
|
Utilizzare "iotop" per la misurazione dell' I/O, del disco rigido, (lettura/scrittura corrente) fatto da ogni applicazione.
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:66
|
|
22.
|
|
|
If you are using a PostgreSQL database, use "ptop" to monitor real time usage.
|
|
|
type: Plain text
|
|
|
|
Se si usa un database PostgreSQL, attraverso "ptop" è possibile monitorarne l'utilizzo in tempo reale.
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:69
|
|
23.
|
|
|
Use "iftop" to monitor current network activity connections per host.
|
|
|
type: Plain text
|
|
|
|
Usare <<iftop>> per monitorare l'attuale attività di rete per ogni host.
|
|
Translated and reviewed by
Luca Petrolati
|
|
|
|
Located in
ubuntu-server-tips:71
|
|
24.
|
|
|
Use "pastebinit" to copy a file, or output of a command to a webpage allowing you to share it. e.g. 'pastebinit /proc/cpuinfo' or 'df -h | pastebinit'
|
|
|
type: Plain text
|
|
|
|
Utilizzare "pastebinit" per copiare un file, o come output di un comando a una pagina web che permetta di condividerlo. Per esempio "pastebinit /proc/cpuinfo" o "df -h | pastebinit"
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:75
|