Welcome to Linux Bash!

Thank you for visiting our website, here you will find the best content for managing your servers operating system, Linux.

Bash (Bourne Again Shell) is the free and enhanced version of the Bourne shell distributed with Linux and GNU operating systems. Linux comes in a few flavours but all run the same Linux Bash format. Bash is a command processor that typically runs in a text window where the user types commands that cause actions. Bash can also read and execute commands from a file, called a shell script. In order to take advantage of all Linux' features, a good understanding of Bash is advised.

At first sight Bash appears to be a simple command/reply system, where users enter commands and Bash returns the results after those commands are run. However, Linux Bash is more than that, it is a programming platform whereby users are able to write programs that accept input and produce output using commands in scripts. A shell then runs these commands from the executable files (a.k.a. scripts). Scripts are often given the sh file type, which is where we got inspiration for our project domain, linuxbash.sh

hello world Welcome! Here you will find ways to get started or pickup tips with Linux Bash. linuxbash.sh For more information see our categories.

Most Popular Posts From Last 30 Days

  • Posted on
    Featured Image
    When setting up a web server, Apache HTTP Server combined with PHP is one of the most popular stacks due to its efficiency, extensive support, and flexibility. In this article, we'll walk through the installation of Apache with PHP support via the libapache2-mod-php package on a Linux system. This guide is beginner-friendly and hopes to equip you with the necessary knowledge to get your web server running smoothly with PHP supported by Apache. Before installing any new packages, it's a good practice to update your system's package list to ensure you are installing the latest versions available.
  • Posted on
    Featured Image
    For developers and system administrators looking to set up web servers, combining PHP with Apache remains a popular choice, thanks to their extensive compatibility, ease of deployment, and comprehensive feature sets. This blog post explores how to run PHP within the Apache HTTP server using mod_php, which is an Apache module specifically for handling PHP scripts. mod_php is an Apache module that provides a robust interface for running PHP scripts directly on the Apache webserver. It processes PHP scripts by embedding the PHP interpreter into the Apache process itself, allowing PHP scripts to execute whenever a PHP page is requested.
  • Posted on
    Featured Image
    In the ever-evolving landscape of enterprise IT, Linux-based operating systems remain pivotal, thanks largely to their stability, security, and open-source nature. Red Hat Enterprise Linux (RHEL) has been a top contender in this space, renowned for its robust performance and extensive support. However, the shift in Red Hat’s strategy towards CentOS—a free derivative of RHEL commonly used in the enterprise—led to the rise of two significant alternatives: Rocky Linux and AlmaLinux. For organizations relying heavily on Linux systems, understanding the compatibility of these new entrants with Red Hat systems is crucial. Here, we delve into how Rocky Linux and AlmaLinux stack up against RHEL.
  • Posted on
    Featured Image
    Apache HTTP Server, commonly known as Apache, is one of the most widely used web servers in the world, credited for its robustness, flexibility, and open-source nature. Meanwhile, Perl remains a popular programming language, particularly praised for its text manipulation capabilities and CGI scripting. Combining these two via mod_perl, an Apache module, enhances performance for web applications by embedding a Perl interpreter in the Apache server. This setup enables you to write Apache modules entirely in Perl, thus extending the server capabilities with the flexibility of Perl scripting. In this guide, we will explore how to set up Apache with Perl using mod_perl on a Linux system.
  • Posted on
    Featured Image
    With the increasing need for powerful cross-platform development environments, the integration of Linux capabilities in Windows through WSL (Windows Subsystem for Linux) has become a game-changer. WSL allows users on Windows 10 and Windows 11 to run a Linux distribution alongside their Windows applications, offering remarkable flexibility. This dual capability enriches your environment to manage and deploy software using popular Linux package managers like APT, DNF, and Zypper. Whether you are a developer, a systems administrator, or just a tech enthusiast, mastering these tools within WSL can enhance your workflow significantly. In this guide, we'll dive deep into using these package managers efficiently in WSL.
  • Posted on
    Featured Image
    As your website grows larger and your online needs evolve, you might find yourself needing to tweak some server settings. One common setting that many users need to modify is the Apache HTTP Server's default port number. By default, Apache listens for incoming connections on port 80, the standard port for HTTP traffic. However, there are scenarios in which changing this can be beneficial. For those running multiple websites, using firewalls, or handling network policies that restrict the use of the default port, understanding how to change Apache's listening port to, say, 8080, can be essential. Here's a detailed guide on how to change Apache’s default port from 80 to 8080 in a Linux environment.
  • Posted on
    Featured Image
    One of the most critical aspects of managing a Linux system, especially in environments involving physical servers or high-performance computing, is monitoring the CPU temperature. High temperatures can lead to reduced performance, hardware malfunctions, and system crashes. Thankfully, Linux provides a way to track the temperature through the file system. In this article, we'll explore how to read CPU temperature details via the /sys/class/thermal/thermal_zone*/temp directory. Q&A: Reading CPU Temperature in Linux A1: In Linux, the /sys/class/thermal/thermal_zone*/temp directory is part of the sysfs (System Filesystem) that exposes information and interfaces provided by the kernel.
  • Posted on
    Featured Image
    As of today's web standards, HTTP/2 is a necessity for better performance over the network. Apache, being one of the most widely used web servers, supports HTTP/2 starting from version 2.4.17, provided it runs with a compatible SSL/TLS library. HTTP/2 boasts numerous advantages over its predecessor, including header compression, request multiplexing, and server push capabilities, all of which contribute to reduced latency and faster page load times. Before you begin to enable HTTP/2, ensure that you have the following: Apache version 2.4.17 or higher. OpenSSL 1.0.2 or newer if you plan to use HTTPS. Access to the server with sudo or root privileges. Basic knowledge of Linux Bash commands and Apache configurations.
  • Posted on
    Featured Image
    When managing packages on a Linux system, it's crucial to maintain clean and manageable software installations. Linux distributions use different package managers, but all have mechanisms to review past transactions, an excellent way to troubleshoot installation issues, verify changes, or simply audit installed software. In this blog, we'll explore how to use dnf history on Fedora and similar distributions, while also covering equivalent commands in apt for Debian/Ubuntu systems, and zypper for openSUSE/SUSE Linux Enterprise. dnf (Dandified YUM) is the default package manager on Fedora and other RPM-based distributions like CentOS and Red Hat Enterprise Linux.
  • Posted on
    Featured Image
    Understanding and manipulating binary and hexadecimal numbers are fundamental skills in many areas of computing, from system programming and debugging to network configuration. In Linux, Bash provides powerful tools and commands to handle these types of data efficiently. This article will guide you through the basics of binary and hexadecimal manipulation in Bash, including how to install necessary tools and utilize them effectively. Before diving into binary and hexadecimal operations, ensure that your system is equipped with a few essential tools such as xxd and bc. These utilities facilitate conversion and arithmetic operations in various numeral systems.
  • Posted on
    Featured Image
    In today’s interconnected world, managing who can access your website or server based on geographic location is more important than ever. Whether it’s enhancing security, complying with legal requirements, or optimizing content delivery, GeoIP blocking can be a powerful tool. For Linux server administrators, one of the easiest ways to implement this is through the mod_geoip module for the Apache HTTP Server. GeoIP blocking, or geographic IP blocking, is a technique used to restrict or allow access to content based on the user's geographical location. This is determined by the IP address of the user.
  • Posted on
    Featured Image
    Web developers seeking to deploy Python web applications have several good options at their disposal, but Gunicorn and uWSGI are two of the most popular and powerful choices. Both serve as Web Server Gateway Interface (WSGI) servers, which act as the middlemen between web applications written in Python and the web server itself. Here’s a comprehensive guide on setting up a WSGI server using Gunicorn and uWSGI, to help you deploy your web applications efficiently and manage web traffic effectively. Before diving into the specifics, it’s crucial to understand what WSGI really is. WSGI is a specification that describes how a web server communicates with web applications.
  • Posted on
    Featured Image
    What if your shell could plan a task, pick the right commands, and then explain what just happened? That’s the promise of AI agents: they don’t just answer questions—they can use tools, iterate on results, and help you automate real-world work right from your terminal. In this guide, you’ll learn what AI agents are, why they’re valuable on Linux, and how to stand up a minimal, safe agent you can extend. We’ll cover both local models (private, offline) and cloud models (fast, powerful), along with actionable steps and real-world examples. All commands are Linux-friendly, with apt, dnf, and zypper installation instructions where relevant.
  • Posted on
    Featured Image
    What if your Linux shell had a tireless co-worker—one that reads docs, drafts scripts, summarizes logs, and even runs curated commands for you? That’s the promise of AI agents. Most tutorials hand-wave Linux specifics or default to GUI-first workflows. In this guide, we’ll keep it terminal-first, show why Linux is the best home for agents, and walk you through building a practical, local-first agent that runs right on your machine. You’ll leave with: A clear mental model for AI agents on Linux A working terminal agent script using a local model (Ollama) Steps to add tools safely, run as a service, and sandbox Local-first control and privacy: Keep sensitive code and logs off third-party clouds by running models locally.
  • Posted on
    Featured Image
    Path Limits and Filenames in Linux: Understanding the Basics for Efficient File Management When navigating the Linux operating system, knowledge of how paths and filenames are structured is crucial for effective file management and system administration. Understanding these concepts will help you avoid common errors, optimise your scripts, and ensure compatibility across different filesystems. Let's dive deep into the concepts of path limits and filenames in Linux. What are Path Limits? In Linux, path limits define the maximum length of a pathname and the components (filenames) within that path. These limits are inherently tied to the underlying filesystem being used. PATH_MAX: This defines the maximum number of bytes a path can contain.
  • Posted on
    Featured Image
    Tired of API rate limits, rising inference costs, and shipping your data to someone else’s server? Run AI models locally on Linux. With today’s quantized models and lean runtimes, you can chat with an LLM, summarize logs, generate code, and more—without the cloud. This guide shows you practical, Bash-friendly ways to deploy local models, plus simple ways to integrate them into your shell workflows. Privacy and control: Your data never leaves your machine. Predictable cost and performance: No surprise bills or throttling. Offline capability: Keep working without internet. Linux-native tooling: Scriptable, composable, and automatable. You don’t need a datacenter. A modest CPU can run small quantized models.
  • Posted on
    Featured Image
    Red Hat Enterprise Linux 8 introduced a new concept in package management and software distribution called "Application Stream" or AppStream for short. This method enables users to have more flexibility in terms of software versions they install and manage on their systems. Although it originated with RHEL, understanding AppStream is also essential for users of other Linux distributions, especially those based on RHEL like CentOS and Fedora. In this blog post, we will explore how to use AppStream effectively on RHEL-based systems and discuss how to handle similar functionalities in systems using other package managers like apt (Debian/Ubuntu) and zypper (openSUSE).
  • Posted on
    Featured Image
    In the world of Linux, managing packages and repositories is a routine. For users of SUSE and openSUSE, Zypper is the command-line interface of choice for managing these packages. However, sometimes things can go wrong, and you may encounter issues like broken repositories, leading to errors during package installations or updates. In this blog post, we’ll explore how to troubleshoot these problems with Zypper, and provide guidance on apt and dnf where applicable. Repository not responding - This happens when Zypper is unable to access the repository URL, potentially due to network issues, the repository being down, or it no longer existing.
  • Posted on
    Featured Image
    Apache HTTP Server, commonly known as Apache, is one of the most widely used web servers in the world, credited for its robustness, flexibility, and open-source nature. Meanwhile, Perl remains a popular programming language, particularly praised for its text manipulation capabilities and CGI scripting. Combining these two via mod_perl, an Apache module, enhances performance for web applications by embedding a Perl interpreter in the Apache server. This setup enables you to write Apache modules entirely in Perl, thus extending the server capabilities with the flexibility of Perl scripting. In this guide, we will explore how to set up Apache with Perl using mod_perl on a Linux system.
  • Posted on
    Featured Image
    In the modern web development landscape, JSON (JavaScript Object Notation) has become the lingua franca of data exchange between servers and web clients. As a web developer, mastering the parsing and generation of JSON can streamline the process of integrating APIs, configuring systems, and managing data flow efficiently. While languages like JavaScript are naturally suited to handle JSON, server-side scripting languages such as Perl offer robust tools and libraries that make these tasks equally seamless, especially on Linux environments where Perl has a strong historic presence and system integration.
  • Posted on
    Featured Image
    Welcome to another deep dive into the exciting world of web development using Perl and Bash! Today, we're focusing on two pivotal aspects of building dynamic and interactive websites: handling form data and managing user sessions. Perl, a robust and mature scripting language, has long been favored for its text processing capabilities and CGI (Common Gateway Interface) support, making it a great choice for backend web development. In this guide, we’ll explore the essentials of manipulating form data and maintaining sessions in Perl, all while tapping into the power of Bash for script automation and task management. Before we delve into the specifics, let's quickly brush up on the concept of CGI.
  • Posted on
    Featured Image
    In the realm of web development, efficiency and performance are paramount. For developers using Perl, integrating scripts directly with the Apache HTTP Server offers a powerful way to accelerate web applications. One of the most effective tools for this integration is mod_perl, an Apache module that embeds a Perl interpreter into the web server. This setup reduces resource consumption and improves response times, making it an excellent choice for high-demand applications. mod_perl brings together the versatility of Perl and the robustness of the Apache HTTP Server.
  • Posted on
    Featured Image
    Ever hit a black screen after a kernel update, watched games crawl at 5 FPS, or saw your desktop compositor crash the moment you open a browser tab? GPU problems on Linux can be maddening—and also very fixable with a systematic approach and the right CLI tools. This guide shows you how to quickly identify what’s wrong, install or repair drivers, read the right logs, and verify performance. You’ll get real commands you can paste into your terminal, with package installs for apt, dnf, and zypper.
  • Posted on
    Featured Image
    Managing Apache servers is a fundamental skill for any web administrator or developer operating on a Linux system. Two essential commands that greatly simplify the management of your site configurations are a2ensite and a2dissite. Both play critical roles in enabling and disabling websites hosted on an Apache server. Whether you are a novice or seasoned administrator, understanding how to effectively use these tools will help you manage your web environments more efficiently. The commands a2ensite (which stands for "Apache2 enable site") and a2dissite ("Apache2 disable site") are scripts used to manage the symbolic links in the Apache configuration directories.
  • Posted on
    Featured Image
    As a web developer, dealing with Nginx – whether setting up new servers or managing existing ones – can often feel like navigating a field filled with potential pitfalls especially when it comes to configuration errors. Fortunately, Nginx provides a built-in tool, nginx -t, that serves as a first line of defense against configuration issues, making it an indispensable tool for debugging. This guide will walk you through how to effectively use nginx -t to ensure your server configurations are solid, error-free, and ready for production. The nginx -t command is a functionality provided by Nginx that allows you to test your configuration files for syntax errors and basic operational issues without actually loading the new configuration.