Tag: bash
Total: 16 Posts
Posts of Tag: bash
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. Get Total Size of a Directory in Linux

    Get Total Size of a Directory in Linux Introduction In Linux, ls -l would list the files and directories in a particular path, with their names, dates, and sizes (disk usage). The first thing you'll notice usin...Learn More
  9. Introduction to Bash

    Introduction to Bash Introduction The most common interactions with a computer nowadays are done through a Graphical User Interface (GUI). Before GUIs existed, users would interact with a computer via shell pro...Learn More
  10. How to Use the crontab Command in Unix

    How to Use the crontab Command in Unix Introduction When managing a computer, we may want to automate some tasks to run in certain periods or at the same time on each day/week/month. On a desktop, we may schedu...Learn More
  11. Executing Shell Commands with Python

    Executing Shell Commands with Python Introduction Repetitive tasks are ripe for automation. It is common for developers and system administrators to automate routine tasks like health checks and file backups wi...Learn More
  12. Using SCP to Copy and Securely Transfer Files and Folders

    Using SCP to Copy and Securely Transfer Files and Folders Introduction SCP stands for Secure Copy Protocol. It is a tool that can be used to transfer files from a local host to a remote host, from a remote host...Learn More