|
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
|
|
|
|
Быстрый способ чтобы узнать какие процессы используют сетевые соединения: 'sudo netstat -tup' для установленных соединений и 'sudo netstat -tupl' для соединений в режиме прослушивания (LISTEN).
|
|
Translated and reviewed by
sasha
|
|
|
|
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
|
|
|
|
Команда 'history' показывает команды, набранные вами ранее. Также вы можете использовать клавиши со стрелками вверх и вниз.
|
|
Translated and reviewed by
sasha
|
|
|
|
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
|
|
|
|
Для создания копии файла без дублирования пути файла используйте команду '$ cp /long/path/to/file/name{,.orig}', которая создаст копию файла с суффиксом ".orig".
|
|
Translated and reviewed by
sasha
|
|
|
|
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
|
|
|
|
Если вы выполнили команду и забыли про 'sudo', вы можете набрать 'sudo !!' для вторичного запуска предыдущей команды с использованием 'sudo'.
|
|
Translated and reviewed by
sasha
|
|
|
|
Located in
ubuntu-server-tips:60
|
|
20.
|
|
|
Install 'denyhosts' to help protect against brute force SSH attacks, auto-blocking multiple attempts.
|
|
|
type: Plain text
|
|
|
|
Установите пакет "denyhosts" для противодействия "brute force" атак на службу SSH.
|
|
Translated and reviewed by
sasha
|
|
|
|
Located in
ubuntu-server-tips:63
|
|
21.
|
|
|
Use "iotop" for measuring hard disk I/O (current read/write) usage per application.
|
|
|
type: Plain text
|
|
|
|
Используйте команду 'iotop' для замера использования жесткого диска приложениями (количество текущих операции чтения и записи).
|
|
Translated and reviewed by
sasha
|
|
|
|
Located in
ubuntu-server-tips:66
|
|
22.
|
|
|
If you are using a PostgreSQL database, use "ptop" to monitor real time usage.
|
|
|
type: Plain text
|
|
|
|
Используйте команду 'ptop' для мониторинга текущей работы сервера баз данных PostgreSQL.
|
|
Translated and reviewed by
sasha
|
|
|
|
Located in
ubuntu-server-tips:69
|
|
23.
|
|
|
Use "iftop" to monitor current network activity connections per host.
|
|
|
type: Plain text
|
|
|
|
Используйте 'iftop' для мониторинга активности сетевых соединения, распределенных по хостам.
|
|
Translated and reviewed by
sasha
|
|
|
|
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
|
|
|
|
Используйте команду 'pastebinit' для копирования файла или вывода команды на веб-сайт, который позволяет вам поделиться информацией с другими. К примеру: 'pastebinit /proc/cpuinfo' или 'df -h | pastebinit'.
|
|
Translated and reviewed by
sasha
|
|
|
|
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
|
|
|
|
Команда 'tail -f /var/log/some.log' позволяет увидеть в реальном времени вновь добавленные строки в log-файл. Идеально для отслеживания новых запросов веб-сервера.
|
|
Translated and reviewed by
sasha
|
|
|
|
Located in
ubuntu-server-tips:78
|