Tag: bash
Posts of Tag: bash
  1. Array Loops in Bash

    Array Loops in Bash In this article we'll show you the various methods of looping through arrays in Bash. Array loops are so common in programming that you'll almost always need to use them in any significant p...Learn More
    UnixbashshellArrayLoop
  2. Copying a Directory with SCP

    Copying a Directory with SCP The Unix command scp (which stands for "secure copy protocol") is a simple tool for uploading or downloading files (or directories) to/from a remote machine. The transfer is done on...Learn More
    UnixbashSCP
  3. Zsh vs Bash

    **Zsh vs Bash** When we talk about UNIX based programming, it's usually about the shells, terminals, and the command line interfaces. The most prevalent shell in this regard is Bash but there are other variants...Learn More
    Unixbashzsh
  4. Substrings in Bash

    Substrings in Bash Throughout your programming career you'll find that there are quite a few times you need to extract a substring from another string. Strings are one of the most common data structures, so thi...Learn More
    UnixbashString
  5. 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
    UnixbashsshSCP
  6. 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
    PythonshellbashProgramming Languages
  7. 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
    Unixbashdevops
  8. 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
    bashUnix
  9. 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
    UnixLinuxbashBlog
  10. 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
    LinuxUnixbashBlog
  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
    bashcommand-lineUnixLinuxStringVariablesBlog
  12. 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
    UnixLinuxbashBlog