ow do I use a heredoc redirection feature (here documents) to write data to a file in my bash shell scripts?
am trying to login to my mysql/mysqld server using the following Unix command: $ mysql -u foo -h 172.16.5.100 -p dbnmame
But greeted with the following error on screen: ERROR 1129 (HY000): Host ‘172.16.5.100’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’
How do I fix this problem on a Linux or Unix-like system?
am a new Linux command line user. How do I find file permissions in octal format such as 0644 from the bash command line running on a Linux or Unix operating systems? How can I get the octal permissions for a file?
am trying to use ansible apt autoremove option but it is not working. I wanted to remove all unused Linux kernel
and unwanted package dependency with the apt command
. How can I run sudo apt-get autoremove
on remote Ubuntu/Debian Linux servers with ansible?
am a new Linux user and not familiar with crontab syntax. How do I use a cron job to restart server process if not running on a Linux or Unix-like system?
y default, my ntpd/NTP server listens on all interfaces or IP address i.e 0.0.0.0:123. How do I make sure ntpd only listen on a specific IP address such as localhost or 192.168.1.1:123 on a Linux or FreeBSD Unix server?
deleted a package using the ‘pkg remove foo
‘ command. However, it left over 30+ dependencies. Theses dependencies not needed by any other package on a FreeBSD Unix system and just taking space on my hard drive. How do I remove unwanted or unused dependencies in FreeBSD 11.x server?