|
9.
|
|
|
Browse the command line history with ctrl-r and then type a few characters that you know are part of the command you are looking for.
|
|
|
type: Plain text
|
|
|
|
Scorri la cronologia della riga di comando con ctrl-r e quindi digita pochi caratteri che facciano parte del comando che stai cercando.
|
|
Translated and reviewed by
Pietro La Porta
|
|
|
|
Located in
ubuntu-server-tips:30
|
|
10.
|
|
|
Edit the command line with cut and paste: ctrl-k for cut, and ctrl-y for paste.
|
|
|
type: Plain text
|
|
|
|
Modifica la riga di comando tramite copia e incolla: ctrl-k per copiare, e ctrl-y per incollare.
|
|
Translated and reviewed by
Pietro La Porta
|
|
|
|
Located in
ubuntu-server-tips:33
|
|
11.
|
|
|
Reach the end-of-line with ctrl-e and the beginning of line with ctrl-a.
|
|
|
type: Plain text
|
|
|
|
Per spostarsi alla fine della riga corrente digitare ctrl-e, per tornare all'inizio ctrl-a.
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:35
|
|
12.
|
|
|
Instead of typing the user and group, if they are the same (like for www-data) you can just type the user followed by a colon: 'sudo chown -R www-data: *'
|
|
|
type: Plain text
|
|
|
|
Se il nome dell'utente e quello del gruppo coincidono (come per www-data), anziché digitare entrambi, è possibile digitare solo il nome utente seguito dai due punti: "sudo chown -R www-data: *"
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:39
|
|
13.
|
|
|
Use the "which" command to find if an executable is in your path, and if it is, where you can find the file. e.g. 'which nano'
|
|
|
type: Plain text
|
|
|
|
È possibile usare il comando "which" per scoprire se un certo eseguibile si trova nel PATH e, se c'è, la sua posizione. Per esempio "which nano"
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:42
|
|
14.
|
|
|
Instead of typing exit or closing the terminal if you want to logout you can press Ctrl+D.
|
|
|
type: Plain text
|
|
|
|
È possibile terminare la sessione del terminale premendo Ctrl+D, anziché digitare exit o chiudere la finestra.
|
|
Translated and reviewed by
Giuliano
|
|
|
|
Located in
ubuntu-server-tips:45
|
|
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
|