Hot answers tagged

2

quote the variable: echo "$result" and better to use printf: printf '%s\n' "$result" and also better to use this type of command-substitution $(...) instead.


1

You get different results because they are testing different things. Ping uses ICMP (man ping) ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams (pings) have an IP and ICMP header, followed by a struct timeval and then an arbitrary number of pad bytes used to fill ...


1

This fixed it for me (MySQL 8.0 - Ubuntu 20.04) sudo apt-get purge mysql\* libmysql\* sudo apt autoremove But the package "mysql-client-core-8.0" don't uninstall, so... sudo apt --fix-broken install sudo apt-get --reinstall install mysql-client-core-8.0 sudo apt-get purge mysql\* libmysql\* sudo apt autoremove sudo apt update sudo apt install ...


Only top voted, non community-wiki answers of a minimum length are eligible