Blog

Latest Articles - Page 22

Browse the latest tutorials, guides, and practical examples across Linux, DevOps, security, databases, and programming on GoLinuxCloud.

Explore the latest tutorials and guides across Linux, DevOps, programming, and more.

You can also browse content by category below:

  • Linux: Commands, administration, troubleshooting, and system operations
  • DevOps: CI/CD, Kubernetes, containers, and automation
  • Cloud: AWS, Azure, OpenStack, and hybrid cloud administration
  • Programming: Coding tutorials, scripting, and development concepts
  • Security: Ethical hacking, system security, and best practices
  • Databases: MySQL, MariaDB, PostgreSQL, and database management
  • Networking: Network setup, troubleshooting, and protocols
  • Storage: Disk management, file systems, and storage solutions
  • Tools: Useful tools and utilities for productivity

3098 articles

Blog illustration with latest articles, tutorials, guides, and how-to content across Linux and DevOps topics
devops

Install Podman on Debian: APT, Versions & Rootless Setup

Install Podman on Debian 12 Bookworm and Debian 13 Trixie with apt, compare 4.3.x and 5.4.x package branches, verify with podman info, test rootless mode, and run a hello container.

Deepak Prasad6 min read
devops

Podman 5 to Podman 6 Migration: Breaking Changes and Upgrade Guide

Migrate from Podman 5 to Podman 6 on Linux — plan BoltDB to SQLite conversion, replace legacy CNI and slirp4netns, verify cgroup v2 and Netavark isolation, upgrade through your distribution, and validate containers after …

Deepak Prasad14 min read
devops

Install Podman on Rocky Linux, AlmaLinux & CentOS Stream

Install Podman on Rocky Linux, AlmaLinux, and CentOS Stream with dnf from AppStream, verify with podman info, test rootless mode, run a hello container, and update or uninstall.

Deepak Prasad7 min read
devops

Install Podman on Ubuntu: APT, Versions & Rootless Setup

Install Podman on Ubuntu 22.04, 24.04, and 26.04 with apt, check the Podman version your release ships, verify with podman info, test rootless mode, and run a hello-world container.

Deepak Prasad8 min read
devops

Install Podman on RHEL: Commands, Versions & Requirements

Install Podman on RHEL 8, 9, and 10 from AppStream with dnf, compare podman and container-tools, check Quadlet feature gates by version, verify with podman info, test rootless mode, and run a hello container.

Deepak Prasad11 min read
devops

Migrate from Docker to Podman: Commands, Compose and systemd

Migrate Docker workloads to Podman — inventory docker ps and compose config, CLI translation, podman-docker shim, Dockerfile builds, volume data export, socket and Compose paths, Quadlet for managed services, Swarm gaps, …

Deepak Prasad15 min read
programming

Golang Time Format: Format, Parse, and Layout Examples

Learn Go time formatting and parsing with the reference date 2006-01-02, RFC3339, DateOnly, time.Format, time.Parse, ParseInLocation, and timezone layouts.

Tuan Nguyen8 min read
programming

Golang Time Package: time.Now, Duration, Parse, and Date Examples

Learn Go's time package with examples for time.Now, UTC, Duration, Add and Sub, Unix timestamps, time zones, Format, Parse, Sleep, Timer, and Ticker.

Tuan Nguyen11 min read
programming

Convert String to uint8 or byte in Go

Convert a Go string to uint8 using strconv.ParseUint, validate the 0–255 range, and learn the difference between parsing numeric text and reading a string byte.

Tuan Nguyen7 min read
devops

Fix Podman `exec format error`

Fix Podman exec format error on Podman 5.8.2 — separate architecture mismatch from missing shebang scripts, compare host and image Architecture with podman image inspect, reproduce arm64 on amd64 without QEMU, pull the …

Deepak Prasad12 min read
devops

Fix Podman Container Cannot Access the Internet

Fix Podman container no internet on Podman 5.8.2 — separate DNS from routing with getent and curl, diagnose network=none and internal bridges, recover rootful egress after firewalld reload with podman network reload, and …

Deepak Prasad11 min read
devops

Fix Podman `no space left on device`

Fix Podman no space left on device on Podman 5.8.2 — identify whether blocks, inodes, /var/tmp, runRoot tmpfs, or XFS quota failed, read graphroot with podman info, reclaim with prune, and relocate graphroot with SELinux …

Deepak Prasad14 min read
devops

Fix Podman `x509: certificate signed by unknown authority`

Fix Podman x509 certificate signed by unknown authority on Podman 5.8.2 — install registry CA in certs.d, debug which endpoint failed, hostname SAN mismatch versus unknown CA, HTTP response to HTTPS client, tls-verify …

Deepak Prasad12 min read
devops

Fix Podman Volume Permission Denied: SELinux, UID Mapping and Rootless Containers

Diagnose Podman volume and bind-mount permission denied errors — separate Unix ownership, rootless UID mapping, SELinux labels, and filesystem limits before applying :z, :Z, :U, keep-id, or podman unshare chown.

Deepak Prasad16 min read
programming

Import a Struct from Another File or Package in Go

Learn how to use a Go struct defined in another file, import an exported struct from another package, and fix undefined errors caused by go run main.go.

Tuan Nguyen7 min read
programming

Convert int to int64 and int64 to int in Go

Convert int to int64 and int64 to int in Go, understand 32-bit vs 64-bit int sizes, check values before narrowing, and choose the correct integer type.

Tuan Nguyen5 min read
programming

Golang Kill Process by PID: Kill, Signal, and CommandContext

Learn how to kill a process by PID in Go, stop exec.Command children, use Process.Signal vs Kill, handle timeouts with CommandContext, and avoid orphan processes.

Tuan Nguyen9 min read
programming

Golang `io.ReadCloser`: Read, Close, `NopCloser`, and Convert to String

Learn how io.ReadCloser combines Reader and Closer in Go, how to close HTTP response bodies, wrap readers with io.NopCloser, and read content with io.ReadAll.

Tuan Nguyen5 min read
programming

Fix Go "package is not in GOROOT" and "cannot find package"

Fix Go "package is not in GOROOT", "cannot find package", and missing module errors by checking go.mod, import paths, workspaces, dependencies, and GOPATH mode.

Tuan Nguyen9 min read
programming

Golang SHA-256: Hash Strings, Files, and Verify Checksums

Use Go crypto/sha256 to hash strings and files, format SHA-256 as hexadecimal, stream large files with io.Copy, and verify known checksums.

Tuan Nguyen8 min read
programming

Golang byte to int: Convert `byte` and `[]byte` Correctly

Convert byte and []byte to integers in Go using int, strconv.Atoi, encoding/binary, varints, and big.Int, with byte order and error handling explained.

Tuan Nguyen6 min read
programming

Golang JSON `omitempty`: Zero Values, `omitzero`, and Nested Structs

Learn how Go JSON omitempty works for zero values, pointers, slices and nested structs, how omitzero differs, and what changes with encoding/json/v2 in Go 1.27.

Tuan Nguyen8 min read
programming

Golang For Loop and `for range`: Syntax and Examples

Learn Go for loops and for range with examples for counters, while-style loops, slices, maps, strings, integers, channels, break, continue, and modern iterators.

Antony Shikubu12 min read
programming

Convert float64 to int or int64 in Go

Convert float64 to int or int64 in Go using direct conversion or math.Round, RoundToEven, Floor and Ceil, with overflow, NaN and Inf handling.

Tuan Nguyen6 min read
programming

How to Remove or Uninstall a Go Package

Learn how to remove a Go module dependency, undo go get, remove Go 1.24+ tool dependencies, uninstall go install binaries, and clear the module cache.

Tuan Nguyen10 min read
programming

Golang os.Stat: File Metadata, File Existence, and Lstat

Learn how to use os.Stat in Go to read file metadata, check whether a path exists, distinguish files and directories, handle errors, and compare Stat with Lstat.

Tuan Nguyen6 min read
programming

Go Gopher: History of the Golang Mascot

Learn who created the Go Gopher, how Renée French's WFMU character became Go's mascot in 2009, whether it has a name, and how the artwork is licensed.

Tuan Nguyen6 min read
programming

Golang Zap Logger: Structured Logging with Logger and SugaredLogger

Learn structured logging in Go with Uber Zap, including Logger vs SugaredLogger, production and development loggers, fields, levels, request IDs, and configuration.

Antony Shikubu7 min read
programming

Check if a String Contains a Substring in Go (`strings.Contains`)

Use strings.Contains to check whether a Go string contains a substring, including case-insensitive checks, multiple values, ContainsAny, ContainsRune, and common edge cases.

Deepak Prasad6 min read
programming

Golang Hide Password Input with x/term ReadPassword

Learn how to hide password input in Go using golang.org/x/term ReadPassword, detect terminals with IsTerminal, handle non-TTY input, and understand asterisk masking.

Deepak Prasad5 min read