<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Bashes on Manzolo Code Notes</title><link>https://notes.manzolo.it/bash/</link><description>Recent content in Bashes on Manzolo Code Notes</description><generator>Hugo -- 0.152.2</generator><language>en-US</language><lastBuildDate>Fri, 26 Sep 2025 10:00:00 +0100</lastBuildDate><atom:link href="https://notes.manzolo.it/bash/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker and Docker Compose</title><link>https://notes.manzolo.it/bash/docker/</link><pubDate>Fri, 26 Sep 2025 10:00:00 +0100</pubDate><guid>https://notes.manzolo.it/bash/docker/</guid><description>&lt;h1 id="docker-and-docker-compose-guide"&gt;Docker and Docker Compose Guide&lt;/h1&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Docker is a platform for developing, shipping, and running applications inside containers. Docker Compose is a tool for defining and running multi-container Docker applications using YAML files. This guide covers essential Docker and Docker Compose commands, with practical examples, to help you manage containers effectively.&lt;/p&gt;
&lt;h2 id="what-is-docker"&gt;What is Docker?&lt;/h2&gt;
&lt;p&gt;Docker allows you to package applications with their dependencies into containers, ensuring consistency across different environments. Containers are lightweight, portable, and run independently of the host system.&lt;/p&gt;</description></item><item><title>Git</title><link>https://notes.manzolo.it/bash/git/</link><pubDate>Fri, 26 Sep 2025 10:00:00 +0100</pubDate><guid>https://notes.manzolo.it/bash/git/</guid><description>&lt;h1 id="git-and-gitflow-guide"&gt;Git and Gitflow Guide&lt;/h1&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Git is a distributed version control system that enables multiple developers to collaborate on projects efficiently. Gitflow is a popular branching model that organizes Git branches for streamlined development and release management. This guide covers essential Git commands, introduces the Gitflow workflow, and provides practical examples for managing code repositories.&lt;/p&gt;
&lt;h2 id="what-is-git"&gt;What is Git?&lt;/h2&gt;
&lt;p&gt;Git tracks changes to files, allowing multiple users to work on the same project without conflicts. It supports branching, merging, and version history, making it ideal for software development and collaborative projects.&lt;/p&gt;</description></item><item><title>Linux Sysadmin Commands Guide</title><link>https://notes.manzolo.it/bash/linux/</link><pubDate>Fri, 26 Sep 2025 10:00:00 +0100</pubDate><guid>https://notes.manzolo.it/bash/linux/</guid><description>&lt;h1 id="linux-sysadmin-commands-guide"&gt;Linux Sysadmin Commands Guide&lt;/h1&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;As a Linux system administrator, mastering essential commands is crucial for managing servers, monitoring systems, and troubleshooting issues. This guide covers fundamental Linux commands for system administration, focusing on user management, process control, network diagnostics, and system monitoring, with practical examples.&lt;/p&gt;
&lt;h2 id="prerequisites"&gt;Prerequisites&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A Linux system (e.g., Ubuntu, CentOS, or Debian).&lt;/li&gt;
&lt;li&gt;Root or sudo privileges.&lt;/li&gt;
&lt;li&gt;Basic familiarity with the terminal.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="system-information"&gt;System Information&lt;/h2&gt;
&lt;h3 id="hardware-and-system-overview"&gt;Hardware and System Overview&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Display system information&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;uname -a
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Show CPU details&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;lscpu
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cat /proc/cpuinfo
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Display memory usage&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;free -h
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cat /proc/meminfo
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# List block devices (disks)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;lsblk
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;fdisk -l &lt;span style="color:#8b949e;font-style:italic"&gt;# Requires sudo&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Show mounted filesystems&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;df -h
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="system-uptime-and-load"&gt;System Uptime and Load&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Display system uptime and load average&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;uptime
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Show load average&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cat /proc/loadavg
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Interactive system monitoring&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;top
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;htop &lt;span style="color:#8b949e;font-style:italic"&gt;# If installed&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="user-and-group-management"&gt;User and Group Management&lt;/h2&gt;
&lt;h3 id="managing-users"&gt;Managing Users&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Add a new user&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo useradd -m -s /bin/bash username
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Set a password for the user&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo passwd username
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Modify user details&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo usermod -aG groupname username &lt;span style="color:#8b949e;font-style:italic"&gt;# Add user to a group&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo usermod -s /bin/zsh username &lt;span style="color:#8b949e;font-style:italic"&gt;# Change shell&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Delete a user&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo userdel -r username &lt;span style="color:#8b949e;font-style:italic"&gt;# Remove user and home directory&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="managing-groups"&gt;Managing Groups&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Create a new group&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo groupadd groupname
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Add user to a group&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo usermod -aG groupname username
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# List groups&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;getent group
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8b949e;font-style:italic"&gt;# Delete a group&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo groupdel groupname
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="example-creating-a-user-with-specific-permissions"&gt;Example: Creating a User with Specific Permissions&lt;/h3&gt;
&lt;p&gt;Create a user &lt;code&gt;devuser&lt;/code&gt; with sudo privileges:&lt;/p&gt;</description></item><item><title>QEMU Disk Image and VM Management Guide</title><link>https://notes.manzolo.it/bash/qemu/</link><pubDate>Fri, 26 Sep 2025 10:00:00 +0100</pubDate><guid>https://notes.manzolo.it/bash/qemu/</guid><description>&lt;h1 id="qemu-disk-image-and-vm-management-guide"&gt;QEMU Disk Image and VM Management Guide&lt;/h1&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;QEMU is a powerful open-source emulator and virtualizer for running virtual machines (VMs) and managing disk images on Linux systems. It supports a wide range of architectures and provides tools for creating, manipulating, and running VMs with flexible configurations. This guide covers essential QEMU commands for disk image management and VM operations, with practical examples for system administrators and developers.&lt;/p&gt;
&lt;h2 id="prerequisites"&gt;Prerequisites&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;QEMU installed on a Linux system (&lt;code&gt;qemu-system-x86_64 --version&lt;/code&gt; to verify).&lt;/li&gt;
&lt;li&gt;Root or sudo privileges for certain operations (e.g., installing QEMU or accessing KVM).&lt;/li&gt;
&lt;li&gt;Basic understanding of Linux terminal commands and virtualization concepts.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Install QEMU on Ubuntu/Debian:&lt;/p&gt;</description></item><item><title>SSH Forward Tunneling</title><link>https://notes.manzolo.it/bash/ssh-forward-tunneling/</link><pubDate>Fri, 26 Sep 2025 10:00:00 +0100</pubDate><guid>https://notes.manzolo.it/bash/ssh-forward-tunneling/</guid><description>&lt;h1 id="ssh-forward-tunneling-guide"&gt;SSH Forward Tunneling Guide&lt;/h1&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;SSH forward tunneling (also known as local port forwarding) allows you to securely connect to a remote service through an SSH server, making it appear as if the service is running on your local machine. This is useful for accessing services on a remote server or another machine in a secure network that aren&amp;rsquo;t directly accessible.&lt;/p&gt;
&lt;p&gt;In this guide, we&amp;rsquo;ll cover the basics of SSH forward tunneling, explain how it works, and provide practical examples.&lt;/p&gt;</description></item><item><title>Uncomplicated Firewall</title><link>https://notes.manzolo.it/bash/ufw/</link><pubDate>Fri, 26 Sep 2025 10:00:00 +0100</pubDate><guid>https://notes.manzolo.it/bash/ufw/</guid><description>&lt;h1 id="ubuntu-ufw-firewall-guide"&gt;Ubuntu UFW Firewall Guide&lt;/h1&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;UFW (Uncomplicated Firewall) is a user-friendly interface for managing iptables firewall rules on Ubuntu systems. It simplifies the process of configuring firewall settings, making it accessible for beginners and efficient for advanced users. This guide covers essential UFW commands, practical examples, and tips for securing your Ubuntu server.&lt;/p&gt;
&lt;h2 id="what-is-ufw"&gt;What is UFW?&lt;/h2&gt;
&lt;p&gt;UFW is a front-end for iptables, designed to make firewall configuration straightforward. It allows you to manage inbound and outbound network traffic by defining rules based on ports, protocols, and IP addresses.&lt;/p&gt;</description></item><item><title>Essential Bash Commands - File Management and System Analysis</title><link>https://notes.manzolo.it/bash/essential-commands/</link><pubDate>Thu, 25 Sep 2025 10:00:00 +0100</pubDate><guid>https://notes.manzolo.it/bash/essential-commands/</guid><description>Learn fundamental Bash commands for file management and system analysis that every developer should know</description></item></channel></rss>