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

Reduce (shrink) and resize raw disk at Proxmox

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

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