Commands from bash/shell execute with long delay

Commands from bash/shell execute with long delay

to check what is going on use strace

strace -r -o trace.log echo hi
 
Sometimes /etc/hosts is missing entry about hostname
 
127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

so just add your hostname in the end of localhost or just make new entry

127.0.0.1       localhost.localdomain localhost test1 test1.example.com
::1             localhost6.localdomain6 localhost6

or

127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.0.1     test1 test1.example.com

Comments

Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Reduce (shrink) and resize raw disk at Proxmox

How to clean DB from old logs in Magento 1.x