|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:57
|
|
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
|