David Cao

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.

how to get file size with Ansible

In Ansible, you can use the stat module to get the size of a file on a remote host. The stat module retrieves information about a file, including its size, permissions, and other attributes. Get file size with stat module…

How to get Postgresql server uptime

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…

4 ways to get Postgresql version

As a popular and powerful open-source relational database management system, PostgreSQL is widely used in many applications. In this post, we will explore different methods to retrieve the PostgreSQL version information. We will cover SQL queries that can be executed…

3 ways to Check RPM package dependency in Linux

This article is part of the following series.   RPM packages can contain not only the software itself but also its dependencies, which are other software packages required for the software to function properly. Managing RPM package dependencies is crucial…

How to use Linux systemctl command

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…

3 ways to check FIPS mode in Linux

FIPS is an acronym that stands for Federal Information Processing Standards. It is a set of standards and guidelines developed by the United States federal government to establish uniform requirements for information security, including computer security, data protection, and cryptography.…