How to Expand Only Certain Variables Inside a Heredoc

Ftr1

We have a script which using a heredoc. We need to be able to write unexpanded variables in the heredoc. We want only the $domain_name would be expanded. #!/bin/bash domain_name='bonguides.me' cat << EOF >> default.conf server { listen 80; server_name…

How to Check CPU Usage or Utilization in Linux

Ftr20

Finding CPU utilization is one of the important tasks. Linux comes with various utilities to report CPU utilization. With these commands, you will be able to find out: CPU utilization. Display the utilization of each CPU individually (SMP cpu). Find…