Tag: bash
Posts of Tag: bash
  1. How to Grep Recursively in Bash

    .lazyload-placeholder { display: none; } Introduction Grep is a powerful tool in the Unix world that allows you to search for specific text within files or even directories. It is widely used for log analysis, ...Learn More
    Unixbash
  2. Comparing Numbers in Bash

    .lazyload-placeholder { display: none; } Introduction Comparing numbers is a fundamental operation in many programming/scripting languages, including Bash. It allows for making decisions based on numerical valu...Learn More
    bash
  3. Guide to Parameter Expansion in Bash

    .lazyload-placeholder { display: none; } Introduction In Bash, parameter expansion is a feature that allows you to manipulate the value of a variable or to extract part of its value using a special syntax. It i...Learn More
    Linuxbash
  4. Bash: Difference Between [ and [[ Operators

    .lazyload-placeholder { display: none; } Introduction In bash, the [ and [[ operators are used for comparison and testing. The [ operator is an alias for the test command, which is used to check the properties ...Learn More
    Unixbash
  5. Bash: Check if Directory or File Exists

    .lazyload-placeholder { display: none; } Introduction It is important to check for the existence of directories and files in Bash scripts for several reasons. Firstly, it allows the script to handle situations ...Learn More
    Unixbash
  6. How to Save Command Output as Variable in Bash?

    .lazyload-placeholder { display: none; } Introduction In bash scripts, assigning the output of a command to variables can be convinient by storing the outputs of the commands and using them later. In this shor...Learn More
    LinuxUnixbash
  7. How to Parse Command Line Arguments in Bash

    Introduction Bash scripts take in command-line arguments as inputs both sequentially and also, parsed as options. The command-line utilities use these arguments to conditionally trigger functions in a Bash scri...Learn More
    LinuxUnixbashcommand-line
  8. Pimp my Terminal - An Introduction to "Oh My Zsh"

    Introduction Using a terminal can be a bit of an intimidating experience in the beginning - but after you get used to it, it can boost your productivity in ways you couldn't imagine and can become quite a pleas...Learn More
    LinuxUnixshellbashzsh
  9. How to Run a Bash Script on Login

    Eventually, you may find yourself wanting to run a particular script every time you log in to a Unix machine (SSH hop to another machine, see a detailed system status, etc.) or, you maybe you'd like to improve ...Learn More
    Unixbashhow to
  10. Guide to Understanding chmod

    Guide to Understanding chmod Introduction File access permissions and security are at the heart of *nix-based operating systems. File objects can belong to users and/or groups, and at times they need to be shar...Learn More
    LinuxUnixbash
  11. How to Concatenate String Variables in Bash

    How to Concatenate String Variables in Bash Introduction Bash utilities make so many tasks simple, but not all tasks have a straightforward command or operator. A very common and usual task in many scripting sc...Learn More
    StringLinuxUnixVariablesbashcommand-line
  12. How to Permanently Set $PATH in Linux

    How to Permanently Set $PATH in Linux Understanding the $PATH Variable In this tutorial, we will show you how to permanently set your PATH on Linux. First off, why should you care? The $PATH variable, or just P...Learn More
    LinuxUnixbash