|
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
|
|
28.
|
|
|
If you want to download a file from a URL via the console, you can use the command 'wget http://address/to/file.tar'
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:87
|
|
29.
|
|
|
To manage Apache modules use "a2enmod" to enable and "a2dismod" to disable. e.g. 'sudo a2enmod rewrite'
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:90
|
|
30.
|
|
|
To manage Apache virtualhosts use "a2ensite" to enable and "a2dissite" to disable. e.g. "sudo a2ensite example.org"
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:93
|
|
31.
|
|
|
Use "top" to get a view of your server's performance such as processor, memory and swap utilisation and see a rolling display of the top cpu using processes.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:97
|
|
32.
|
|
|
If you need to perform a command a second time on a different file, you can use command replacement with the ^ symbol. e.g. "cp foo.txt /to/some/directory" then "^foo^bar", expanding to: "cp bar.txt /to/some/directory".
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:102
|
|
33.
|
|
|
You can contact the Ubuntu Server team on IRC using chat.freenode.net in channel #ubuntu-server. You can also use http://webchat.freenode.net.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:105
|