Tag Archives: ubuntu

How to use a here documents to write data to a file in bash script

How to use a here documents to write data to a file in bash script

How do I use a heredoc redirection feature (here documents) to write data to a file in my bash shell scripts?
Halal Vitamins

Powered by WPeMatico

Download of The Day: Fedora Linux 27

Download of The Day: Fedora Linux 27
Fedora Linux version 27.0 has been released ( jump to download ) after many months of constant development and available for download in various media format. Fedora 27 is a free and open source operating system includes various new features such as GNOME 3.26, LibreOffice 5.4, glibc version 2.26, Node.js 8.x, Ruby on Rails 5.1, … Continue reading “Download of The Day: Fedora Linux 27”
Halal Vitamins

Powered by WPeMatico

How to install Firefox 57 Quantum on a Linux

How to install Firefox 57 Quantum on a Linux

My Linux distro comes with Firefox ESR. I read Firefox 57 is over twice as fast as Firefox from 6 months ago, built on a completely overhauled core engine with brand new technology. How do I installed newly released Firefox version 57 “Quantum” on a Linux operating system?
Halal Vitamins

Powered by WPeMatico

Fix Host ‘IP’ is blocked because of many connection errors on MySQL/MariaDB

Fix Host ‘IP’ is blocked because of many connection errors on MySQL/MariaDB

I 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?
Halal Vitamins

Powered by WPeMatico

How to records statistics about a Linux machine’s uptime

How to records statistics about a Linux machine’s uptime
Linux/Unix sysadmins have a weird obsession with server uptime. There is a xkcd comic devoted to this subject where a good sysadmin is an unstoppable force that it stands between the forces of darkness and your cat blog’s servers.
Fig.01: Devotion to Duty https://xkcd.com/705/
One can tell how long the Linux system has been running using the uptime command or w command or top command. I can get a report of the historical and statistical running time of the system, keeping it between restarts using tuptime tool. Like uptime command but with the more impressive output. Recently I discovered another tool called uptimed that records statistics about a machine’s uptime. Let us see how to get uptime record statistics using uptimed and uprecords on Linux operating system.
Halal Vitamins

Powered by WPeMatico

Improve your bash/sh shell script with ShellCheck lint script analysis tool

Improve your bash/sh shell script with ShellCheck lint script analysis tool
ShellCheck is a static analysis tool for shell scripts. One can use it to finds bugs in your shell scripts. It is written in Haskell. You can find warnings and suggestions for bash/sh shell scripts with this tool. Let us see how to install and use ShellCheck on a Linux or Unix-like system to enhance your shell scripts, avoid errors and productivity.
Halal Vitamins

Powered by WPeMatico

How to get octal file permissions on Linux/Unix command line

How to get octal file permissions on Linux/Unix command line

I 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?
Halal Vitamins

Powered by WPeMatico

How to use Ansible to autoremove unwanted package dependency with apt

How to use Ansible to autoremove unwanted package dependency with apt

I 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/apt-get command. How can I run sudo apt-get autoremove on remote Ubuntu/Debian Linux servers with ansible?
Halal Vitamins

Powered by WPeMatico