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.

2 ways to check if user account is locked or not in Linux

understanding user password authentication in Linux The user authentication process in Linux typically involves validating the entered credentials against the stored user information in the /etc/passwd and /etc/shadow files. When a user attempts to log in, they provide a username…

understanding network CIDR /24

CIDR stands for Classless Inter-Domain Routing. It is a method used for allocating and routing IP addresses on the Internet. A /24 CIDR, such as 192.168.1.0/24, indicates that the first 24 bits are the network part of the address, leaving…

2 ways to list all users in Linux

Linux is designed to be a multi-user operating system, allowing multiple users to access and utilize the system concurrently. To effectively list the users on a Linux system, two powerful methods come into play: using the “cat /etc/passwd” command and…

2 ways to change file permissions in Linux

This article is part of the following series.   In Linux, file permissions play a crucial role in determining who can access, modify, or execute files and directories. The permissions are typically represented by a combination of read (r), write…

Resize Multipath disk on Linux

A multipath disk, also known as a “multipath device,” is a logical representation of a storage device in a storage area network (SAN) environment that utilizes multiple physical paths. In a multipath configuration, a storage device, such as a disk…

Terraform AWS EC2 user data troubleshooting

In AWS EC2 (Elastic Compute Cloud), user data refers to the information or scripts that you can provide to an EC2 instance during its launch. User data can be used to automate instance configuration and perform various tasks on the…