|
8.
|
|
|
Did you know that releases of Ubuntu labeled LTS are maintained for 5 years on servers? 'cat /etc/lsb-release' will tell you which release you are on.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:27
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(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
|