Skip to Content

David Cao

David is a Cloud & DevOps Enthusiast. He has years of experience as a Linux engineer. He had working experience in AMD, EMC. He likes Linux, Python, bash, and more. He is a technical blogger and a Software Engineer. He enjoys sharing his learning and contributing to open-source.

In Ansible, a dictionary (also known as a hash, map, or associative array) is a data type that allows you to store and manipulate key-value pairs. Dictionaries are commonly used to represent configuration data, variables, and other structured information in Ansible playbooks. A dictionary in Ansible is enclosed in curly braces {} and consists of …

Read More about 3 ways to create a dictionary variable in Ansible

If you’re a PostgreSQL user or developer, you may often need to monitor the size of your database to manage storage resources efficiently. One crucial aspect of this monitoring is checking the disk size of your database. In this post, we will explore how to get the disk size of a database in PostgreSQL. We …

Read More about How to get the disk size of a Postgresql database

In this post, we will delve into the concept of PostgreSQL server uptime, why it matters, and how to accurately measure it using SQL queries and built-in functions. By understanding how to obtain the uptime of a PostgreSQL server, you can gain valuable insights into your database’s reliability and performance, and proactively manage potential issues. …

Read More about How to get Postgresql server uptime

As a popular and powerful open-source relational database management system, PostgreSQL is widely used in many applications. Knowing the version of PostgreSQL that you are working with is crucial for compatibility checking, troubleshooting, and ensuring that your application is utilizing the correct features and optimizations. In this post, we will explore different methods to retrieve …

Read More about 4 ways to get Postgresql version

A connection timeout means that the client attempted to establish a network socket to the SSH server, but the server failed to respond within the timeout period. ssh: connect to host 203.0.113.0 port 22: Connection timed out In PuTTY, you might see an error window with text like this: Network error: Connection timed out In …

Read More about 6 ways to troubleshoot ssh: connect to host port 22: Connection timed out

systemctl is a command-line utility in Linux operating systems that is used to control and manage the system’s services, daemons, and other processes. It is an essential tool for system administrators and developers as it allows them to monitor and control various system processes.   Viewing systemd information In systemctl, a “unit” is a systemd …

Read More about How to use Linux systemctl command