|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:60
|
|
20.
|
|
|
Install 'denyhosts' to help protect against brute force SSH attacks, auto-blocking multiple attempts.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:63
|
|
21.
|
|
|
Use "iotop" for measuring hard disk I/O (current read/write) usage per application.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:66
|
|
22.
|
|
|
If you are using a PostgreSQL database, use "ptop" to monitor real time usage.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:69
|
|
23.
|
|
|
Use "iftop" to monitor current network activity connections per host.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:75
|
|
25.
|
|
|
Use "tail -f /var/log/some.log" to see new lines added to a log instantly in real time. Ideal from watching webserver requests as they happen.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:78
|
|
26.
|
|
|
Save time starting to type a command or file name, then press tab to complete Hit tab twice to bring up multiple completion options.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:81
|
|
27.
|
|
|
Append your ssh key to your server's authorized keys file using the command 'ssh-copy-id user@server_address'
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:84
|