Author

Deepak Prasad

Deepak Prasad

R&D Engineer

at · 1296 articles published

Founder of GoLinuxCloud with more than 15 years of expertise in Linux, Python, Go, Laravel, DevOps, Kubernetes, Git, Shell scripting, OpenShift, AWS, Networking, and Security. With extensive experience, he excels across development, DevOps, networking, and security, delivering robust and efficient solutions for diverse projects.

Areas of expertise

Certifications & credentials

  • Red Hat Certified System Administrator in Red Hat OpenStackID: 180-246-001
  • Certified Kubernetes Application Developer (CKAD)
  • Red Hat Certified Specialist in Ansible Automation
  • Go: Data Structures, Algorithms and Design Patterns With Go
Author profile illustration for Deepak Prasad — technical writer at GoLinuxCloud

Articles by Deepak Prasad

devops

How to Run Ansible Playbooks with ansible-playbook and ansible-navigator

Run Ansible playbooks with ansible-playbook and ansible-navigator—inventory, --limit, --syntax-check, --check, --diff, verbosity, tags, become, extra vars, and stdout mode.

Deepak Prasad13 min read
devops

Ansible Playbook Structure Explained: Plays, Tasks and Modules

Learn Ansible playbook structure—plays, tasks, modules, hosts, become, vars, handlers, multiple plays, execution order, validation, and common layout mistakes.

Deepak Prasad11 min read
devops

Ansible command vs shell vs raw Module: When to Use Each

Compare Ansible command, shell, and raw modules—pipes, argv, creates, removes, changed_when, Python bootstrap, security risks, and when to use dedicated modules instead.

Deepak Prasad17 min read
devops

What is Ansible? Architecture, Components and How It Works

Learn what Ansible is, how agentless automation works, and how control nodes, inventory, modules, playbooks, roles, collections, and vault fit together on Rocky Linux.

Deepak Prasad21 min read
devops

Ansible Operators and Jinja2 Tests in when Conditions

Learn Ansible comparison and logical operators, Jinja2 tests such as is defined, and safe when expressions for strings, lists, dictionaries, facts, and registered task results.

Deepak Prasad11 min read
devops

YAML Syntax for Ansible Playbooks with Examples

Learn YAML syntax for Ansible playbooks—indentation, lists, dictionaries, strings, booleans, multiline values, common mistakes, and ansible-playbook --syntax-check validation.

Deepak Prasad10 min read
devops

Ansible Facts and Custom Facts Explained

Learn Ansible facts from the setup module—OS, network, memory, mounts, and Python—plus fact filters, gather_facts control, custom facts.d files, and ansible_local in playbooks and templates.

Deepak Prasad9 min read
devops

Ansible Ad Hoc Commands Explained with Examples

Learn Ansible ad hoc command syntax with ping, command, shell, package, service, file, copy, user, become, --limit, check mode, troubleshooting, and playbook migration examples.

Deepak Prasad14 min read
devops

Ansible Roles Explained: Directory Structure, Defaults, Vars and Handlers

Learn Ansible roles with a tested demo: directory structure, tasks, handlers, defaults vs vars, variable placement, role dependencies, and when to use roles, include_role, or import_role.

Deepak Prasad12 min read
devops

Ansible Tutorial for Beginners [RHCE EX294 Exam]

Free, hands-on Ansible tutorial for beginners that takes you from zero to RHCE EX294. Rocky Linux 10 lab setup, playbooks, roles, vaults, and AWS provisioning — 49 lessons across 12 chapters, every example tested on …

Deepak Prasad1 min read
storage

Migrate an Existing LVM Root Filesystem to LUKS Online

Migrate an already-installed Ubuntu LVM root volume group onto a new LUKS2 physical volume with pvmove, then configure crypttab with initramfs, regenerate the initramfs, and update GRUB for boot-time unlock.

Deepak Prasad16 min read
storage

Enroll TPM2, FIDO2, and Recovery Keys on LUKS2 with systemd-cryptenroll

Use systemd-cryptenroll on LUKS2 volumes to add TPM2, FIDO2, PKCS#11, and recovery-key unlock methods, store token metadata in the LUKS2 JSON area, and wire boot unlock through crypttab.

Deepak Prasad10 min read
storage

How to Resize a LUKS Partition (Extend or Shrink) in Linux

Extend or shrink a LUKS2 ext4 volume on Linux: grow the partition first, run cryptsetup resize on the mapper, then resize2fs; for shrink, reverse the order with offline resize2fs and --size in 512-byte sectors.

Deepak Prasad11 min read
storage

How to Open and Unlock a LUKS Disk on Another Linux Machine

Unlock and mount a LUKS USB or moved disk on another Linux host: cryptsetup open by device, UUID=, or /dev/disk/by-uuid, ext4 or LVM inside LUKS, read-only rescue mount, and close the mapper.

Deepak Prasad10 min read
storage

Network-Bound Disk Encryption with Clevis and Tang on Linux

Configure LUKS NBDE with Clevis and Tang on RHEL/CentOS: two-VM lab with Tang server, LUKS root client, dracut rebuild, and video—boot without typing a passphrase when Tang is reachable.

Deepak Prasad12 min read
storage

How to Auto Mount and Unlock LUKS Encrypted Partitions at Boot

Configure crypttab and fstab to unlock and mount a secondary LUKS data partition at boot on Ubuntu or Debian.

Deepak Prasad15 min read
storage

How to Back Up and Restore a LUKS Header in Linux

Back up and restore a LUKS2 header with cryptsetup luksHeaderBackup and luksHeaderRestore, use a detached header file, and understand when a header copy cannot recover a forgotten passphrase.

Deepak Prasad10 min read
storage

Change LUKS Passphrase, Volume Key, and Cipher on Linux

Rotate LUKS passphrases and key slots, change cipher or volume key with cryptsetup reencrypt on LUKS2, and back up the header before destructive operations.

Deepak Prasad12 min read
storage

How to Encrypt a Disk Partition with LUKS in Linux

Encrypt a new Linux disk partition with LUKS2 using cryptsetup: partition the disk, run luksFormat, open the mapper, create ext4 on /dev/mapper, and mount the volume.

Deepak Prasad10 min read
cheatsheet

cryptsetup Command in Linux: LUKS2 Syntax, Options & Examples (Ubuntu)

cryptsetup manages LUKS disk encryption through the kernel dm-crypt device mapper. Use it to format partitions, open and close mapper devices, rotate passphrases, back up headers, and inspect LUKS2 metadata on Ubuntu and …

Deepak Prasad14 min read
linux

How to List Users in Linux (getent, passwd, who, id)

List users in Linux with getent, /etc/passwd, who, and id. Filter normal and system accounts, see logged-in sessions, and check whether a user exists on Ubuntu and RHEL.

Deepak Prasad7 min read
linux

SSH Authentication Methods in sshd_config (Password, Public Key, PAM)

Configure OpenSSH authentication in sshd_config: password, public key, keyboard-interactive, host-based, GSSAPI, AuthenticationMethods, and Match blocks on Linux.

Deepak Prasad12 min read
security

How to View a Certificate with OpenSSL (PEM, CER, Chain, Bundle)

Use OpenSSL to view PEM, CRT, CER, chain, bundle, PFX, and P7B certificates. Check expiry, SAN, fingerprint, remote TLS certs, and verify chains.

Deepak Prasad11 min read
linux

How to List Groups in Linux and Check User Group Membership

List groups in Linux with getent, groups, id, and /etc/group. Check user group membership, list group members, and compare primary vs supplementary groups.

Deepak Prasad9 min read
linux

Set up Proxy using http_proxy, https_proxy and no_proxy in Linux

Learn how to configure http_proxy, https_proxy and no_proxy environment variables in Linux temporarily, permanently, system-wide, and for tools like curl, wget, apt, git and Docker.

Deepak Prasad9 min read
devops

Stop All Docker Containers: Commands, Examples, and Safe Shutdown

Stop all running Docker containers with docker stop $(docker ps -q), handle empty lists safely, adjust timeouts, force-kill stuck containers, filter by label, and shut down Compose stacks without data loss.

Deepak Prasad6 min read
cheatsheet

100+ Linux Commands Cheat Sheet (With Practical Examples)

A complete Linux commands cheat sheet with 100+ essential commands and practical examples. Learn file management, system monitoring, networking, permissions, and DevOps-related Linux commands used by administrators, …

Deepak Prasad10 min read
linux

How to Install Node.js on Ubuntu

Install Node.js on Ubuntu with apt nodejs, NodeSource setup scripts, NVM for multiple versions, or the official nodejs.org linux-x64 tar.xz under /opt, verify with node --version and npm --version, and uninstall per …

Deepak Prasad8 min read
security

Automate keytool Certificate Import in Bash Safely

Back up a PKCS12 truststore, check the keytool alias and SHA-256 fingerprint, import a CA only when missing, and exit cleanly for Ansible, systemd, and CI pipelines.

Deepak Prasad7 min read
security

Keytool & Java Keystore Tutorial for Beginners

Complete keytool tutorial for Java keystores and truststores - generate PKCS12 keys, import CA-signed chains, automate truststore imports with Bash, sign and verify JAR files with jarsigner, build mTLS keystores and …

Deepak Prasad1 min read