Blog

Latest Articles - Page 14

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
programming

Compare Numbers in Bash

Compare integers in Bash with -eq, -gt, [ ], [[ ]], and (( )); handle leading zeros, negative values, untrusted input, and decimal checks with bc or awk.

Deepak Prasad10 min read
programming

Check If File or Directory Exists in Bash

Check whether a file or directory exists in Bash with -e, -f, and -d, including missing paths, symlinks, permissions, and practical shell script examples.

Deepak Prasad9 min read
programming

Compare Strings in Bash

Compare strings in Bash with =, ==, !=, -z and -n. Learn empty vs unset values, substring and glob matching, case-insensitive checks, and lexical ordering.

Deepak Prasad11 min read
programming

Bash [ ] vs [[ ]] vs (( ))

Learn when to use Bash [ ], [[ ]], and (( )) for tests: POSIX test syntax, Bash conditionals, pattern and regex matching, numeric comparisons, and common failure examples.

Deepak Prasad12 min read
programming

Bash case Statement with Examples

Learn how to use the Bash case statement with practical examples, match multiple values and wildcard patterns, add a default case, and compare case with if/elif.

Deepak Prasad10 min read
programming

Bash if, elif, else with Examples

Learn Bash if, elif, and else syntax with examples for variables, multiple conditions, command exit status, nested if statements, and common errors.

Deepak Prasad10 min read
programming

Bash Arithmetic: $(( )), (( )) and Decimal Math

Learn Bash arithmetic with $(( )) and (( )), including operators, integer division, counters, number bases, and floating-point calculations with awk and bc.

Deepak Prasad10 min read
programming

Bash Exit Codes: $?, exit and Common Status Codes

Learn how Bash exit codes work, check the last status with $?, use exit, understand codes 0, 1, 126 and 127, and handle pipeline failures with PIPESTATUS and pipefail.

Deepak Prasad10 min read
programming

Concatenate Strings in Bash

Concatenate strings in Bash with adjacent expansions, ${var} brace boundaries, += append, separators, printf -v formatting, and safe patterns for command output and loops.

Deepak Prasad7 min read
security

How Do People Dox Someone? Methods, Sources & How to Protect Yourself

Learn how doxxing works through usernames, social profiles, public records, data brokers and other exposed clues, what an IP can reveal, and how to audit and reduce your own online footprint.

Kennedy Muthii14 min read
programming

Get Bash Script Directory, Path and Name

Get the Bash script name, absolute path, and directory with $0, BASH_SOURCE, dirname, cd+pwd, and GNU readlink -f — including sourced files and symlinks.

Deepak Prasad9 min read
programming

Bash echo vs printf: Output and Newlines

Compare Bash echo and printf for newlines, prompts, columns, and portable scripts: echo -n, echo -e pitfalls, printf format strings, printf -v, stderr output, and safe printing of variable content.

Deepak Prasad7 min read
programming

Bash Script Arguments: $1, $#, $@, $* and shift

Learn Bash script arguments with $1, $#, $@, $*, shift, and ${10}. See how quoting preserves filenames with spaces, validate argument counts, and forward args safely to cp and other commands.

Deepak Prasad10 min read
programming

Bash read Command: Get User Input

Learn the Bash read builtin for interactive input: read into variables, use -r by default, prompt with -p, split fields with IFS, hide passwords with -s, time out with -t, and read arrays with -a.

Deepak Prasad14 min read
programming

Bash Environment Variables: Set, Export, List and Unset

Learn how Bash environment variables work with export, env, and printenv, how child processes inherit them, and how to set, list, unexport, and unset variables.

Deepak Prasad10 min read
programming

Bash Startup Files: .bashrc vs .bash_profile vs .profile

Learn when Bash reads .bashrc, .bash_profile, and .profile on login and non-login shells, how SSH and cron differ, what BASH_ENV does, and where to put PATH, aliases, and exports.

Deepak Prasad13 min read
programming

Bash Single vs Double Quotes: Differences and Examples

Compare Bash single vs double quotes with tested examples. Learn variable expansion, escaping quotes, $'...' syntax, globbing, filenames with spaces, and safe variable quoting.

Deepak Prasad10 min read
programming

Bash Variables: Create, Assign, Use and Unset

Learn how to create, assign, expand, quote, unset, and protect Bash variables with declare and readonly, plus how unset differs from empty and when to use ${var}.

Deepak Prasad9 min read
programming

Bash Comments: Single-Line, Inline and Multiline Examples

Learn Bash comment syntax with #, inline comments, quoted hash characters, multiline comments, heredoc workarounds, and how shebang lines differ from ordinary comments.

Deepak Prasad8 min read
programming

Bash vs sh: Differences and Which Shell to Use

Compare Bash vs sh with tested examples. Learn POSIX portability, Bash-only syntax, what /bin/sh runs, and when to use #!/bin/bash or #!/bin/sh.

Deepak Prasad14 min read
programming

Bash Shebang Explained: #!/bin/bash vs /usr/bin/env bash

Learn what a Bash shebang does, how #!/bin/bash differs from #!/usr/bin/env bash, when the shebang is ignored, and which one to use in shell scripts.

Deepak Prasad11 min read
linux

How to Write and Run a Bash Script in Linux

Learn how to write and run a Bash script in Linux, make it executable with chmod, understand the shebang, and fix common script errors.

Deepak Prasad7 min read
security

How to Install GOAD-Light on Proxmox (Active Directory Hacking Lab)

Install GOAD-Light on Proxmox VE with Packer, Terraform, and Ansible, then verify the three-node Active Directory lab from Kali Linux.

Deepak Prasad27 min read
security

How to Prioritize Vulnerabilities for Penetration Testing

Prioritize pentest findings using CVSS, EPSS, CISA KEV, reachability, exploit availability, and attack-path value to decide which vulnerabilities to validate first.

Deepak Prasad17 min read
security

Establish Persistence on Linux and Windows After Initial Access

Learn Linux and Windows persistence techniques after initial access — cron, SSH keys, systemd, scheduled tasks, Run keys, services, local accounts, and web shells with tested lab examples and cleanup.

Deepak Prasad16 min read
security

Lateral Movement on Windows with PsExec, WMI, and WinRM

Learn Windows lateral movement with PsExec, WMI, WinRM, NetExec, and Evil-WinRM — find admin-capable hosts and open remote shells from Kali in an authorized AD lab.

Deepak Prasad16 min read
security

Pass-the-Hash and Pass-the-Ticket Attacks on Active Directory

Compare pass-the-hash vs pass-the-ticket in Active Directory from Kali — replay NT hashes with NetExec and Impacket, use overpass-the-hash for a Kerberos TGT, and reuse .ccache tickets on GOAD-Light.

Deepak Prasad13 min read
security

Kerberoasting and AS-REP Roasting on Active Directory

Learn Kerberoasting vs AS-REP roasting with Impacket on Kali. Use GetUserSPNs and GetNPUsers, crack Kerberos tickets with hashcat or John, and verify recovered AD credentials on GOAD-Light.

Deepak Prasad13 min read
security

Install Metasploitable 2 on Proxmox for a PenTest Lab

Import Metasploitable 2 into Proxmox VE from the official VMDK, attach it to vmbr1 with the right SCSI and NIC types, assign a static lab IP when DHCP is unavailable, verify services from Kali, and snapshot ms2-clean.

Deepak Prasad10 min read
security

Install Kali Linux on Proxmox for a PenTest Lab

Install Kali Linux on Proxmox VE with dual NICs on vmbr0 and vmbr1, static IPs for management and lab traffic, SSH from your workstation, and a clean snapshot before you install tools.

Deepak Prasad18 min read