|
14.
|
|
|
Instead of typing exit or closing the terminal if you want to logout you can press Ctrl+D.
|
|
|
type: Plain text
|
|
|
|
Вместо использования команды 'exit' для закрытия терминала или сессии вы можете использовать комбинацию "Ctrl+d".
|
|
Translated and reviewed by
sasha
|
|
|
|
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
|
|
|
|
Используйте 'tail -f file' для отслеживания новых строк в log-файле, 'tail -100 file' позволяет задать количество строк для чтения из файла.
|
|
Translated and reviewed by
sasha
|
|
|
|
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
|
|
|
|
Быстрый способ чтобы узнать какие процессы используют сетевые соединения: '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
|