The Baeldung logo
  • The Baeldung LogoLinux Sublogo
  • Start Here
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

  • Category upScripting
  • Category upAdministration
  • Category upFiles
  • Category upProcesses
  • Category upNetworking
  • Category upInstallation
  • Category upFile Editing
  • Category upFile Viewing

Tag: bash

>> Shell Script That Outputs an Excel File

>> How to Loop Over Each Character in a Bash String

>> Differences Between eval and exec Commands

>> How to Sort Bash Arrays

>> Is It Possible to Undo a Command in Shell?

>> Why Are There Multiple Shell Prompts?

>> How to Capture Stdout Line by Line in Bash

>> Examples of the Modulo Operator in Bash

>> How to Write a Script to Install Multiple Applications

>> Defining a Hash Table in Bash

>> How to Export Variables From a File

>> Nested case Statements and ;; Semicolon Terminators in Bash

>> How to Extract the First Word of a String in Bash

>> Check if a Number Is a Prime in Bash

>> How to Use grep on a Bash Variable

>> Generation of Random Integers in a Range in Bash

>> Wrap Quotes Around Each Line in a File or Variable

>> How to Assign Default Value to a Variable Using Bash

>> How to Run Variable Content as a Command in Bash

>> How to Walk Through a Directory Structure in a Shell Script

>> What’s the Effect of Editing a Shell Script While It’s Running?

>> Reading a Single Character in Shell Script

>> Check if the find Command Returns a Match

>> How to Call Python From a Bash Script

>> How to Echo the Variable Name Instead of Variable Value

>> Launching a Shell Script by Double-Clicking

>> How to Compare Time in Shell

>> How to Use OR Patterns in Shell Wildcards

>> How to Verify the Length of a Variable in Bash

>> Passing Multiple Commands to a Kubernetes Container

>> Checking the Validity of an IP Address in Linux

>> Set Environment Variables From File of Key/Value Pairs in Linux

>> Importing Multiple SQL Dump Files Into MySQL From the Command Line

>> How to Determine Whether a File Is Hard Link or a Soft Link

>> Logging Bash Scripts

>> Different Ways to Efficiently Sort Large Files

>> How to Use Bash Script to Insert Values in MySQL DB

>> When Is Double Quoting Necessary in Bash?

>> Converting XLS to CSV in Linux

>> Bidirectional Clipboard Piping in Bash

>> Print Path or Directory Permissions Recursively

>> Bash One-Liners to Remove Characters From a Variable

>> How to Ping a NIC by MAC Address

>> How to grep Lines Containing N Digits or Numbers

>> How Relational Operators Work in Case Statements in Bash

>> How to Toggle Comments in a File From the CLI

>> Changing Command-Line Arguments in Bash

>> Passing an Array as an Argument to a Function in a Bash Script

>> Automatic Docker Login in a Bash Script

>> How to Print a Given Number in Reverse Order

>> Passing a Function as a Parameter in Bash

>> How to Repeat Each Line in a File Multiple Times in the Command Line

>> Insert Newline in Shell Command

>> Shortening the Current Directory Path in the Terminal on Linux

>> Returning a Regular Expression (Regex) Match in the Shell

>> Close File Descriptors in Bash

>> How to Find Filenames That End With a Number in Bash

>> Returning Only One Value Using ldapsearch

>> How to Cut a Field From Text Line Counting From the End

>> Handling Signals in Bash Script

>> Reading the Memory of a Running Process

>> Use and Representation of End-Of-File

>> Meta Keys and Key Processing Priority in the Shell and Terminal

>> The Backslash and Removing Backslashes From a Text File or String

>> How to Output Comma-Separated Strings Using Bash Brace Expansion

>> How to Pass Arguments to a Shell Script Fetched by cURL

>> Differences Between Bash Loop Counters and Sequence Iteration

>> How to Properly Format the Source of a Shell Script

>> Matching Uppercase and Lowercase Letters With Regex in Shell

>> How to List All Cron Jobs for All Users on Linux

>> How to Print an RFC-3339 Format Date

>> How to Obfuscate a Bash Script to Make It Unreadable

>> How to Pass Arguments From a File to a Bash Script

>> How to Use grep in an if-else Statement in Bash

>> How to Remove Lines That Contain Fewer Than n Characters

>> Memory Usage per User in Linux

>> How to Append a String Variable to Itself in Bash

>> How to Delete Text Before a Delimiter From the Command Line

>> How to List All Executables From $PATH

>> Waiting for the Network Being Up in a Bash Script

>> Solving the Error “Pseudo-terminal will not be allocated because stdin is not a terminal”

>> Check if a Bash Array Contains a Value

>> What’s the Difference Between Bash’s set and export?

>> How to Test for POSIX Compliance of Shell Scripts

>> How to Use the Ternary Conditional Operator in Bash

>> Add Syntax Highlighting and Additional Features to the Shell Command-Line

>> How to Remove an Element From an Array Completely in Bash

>> Remove All Comments From a Bash Script in the Shell

>> Showing the Definition of a Function in Bash

>> Infinite Sleep for Infinite Blocking in Bash

>> How to Convert Binary to Hex and Decimal in the Shell

>> What’s the Meaning of $! in Bash Scripting

>> How to Run a Command in the Background With a Delay

>> How to Throttle the Download Speed in Bash

>> How to Test DNS Speed

>> How to Convert a Shell Script Into a Binary Executable

>> How to Split Only on a Newline in Shell

>> Remove and Avoid Duplicate Entries in Bash History

>> Matching Multiple Conditions in One case Statement in Shell

>> Pinging Multiple IP Addresses or Hosts With One Command

>> Guide to Passing Bash Variables to jq

>> How to Make Tab Auto-Completion Case-Insensitive in Bash

>> Formatting Text in Linux Terminals

>> Print the Count of Lines Together With a Command’s Output

>> Transposing a File From the Command Line

>> Using $RANDOM to Generate a Random String

>> Executing an SQL Script From the Command Line

>> Difference Between Executing Multiple Commands with && and ;

>> How to Use a Regex Inside an if Clause in Bash

>> The Pipe Buffer Capacity in Linux

>> How to Create a Shortcut to Execute a Shell Script in Bash

>> Do File Extensions Have a Meaning in Linux?

>> How to Extract “n” Characters Before and After a Match in Shell

>> Mouse Events and Input Event Interface in Linux

>> How to Extract the Base Filename From a URL in Shell

>> The “at” Command in Linux

>> How to Trim Whitespace From a Bash Variable

>> How to Call One Shell Script From Another

>> Reversing the List of Words in a Bash String

>> What’s the Difference Between bash script.sh and ./script.sh

>> IP Address Geolocation Lookups on Linux With GeoLite2

>> Iterate Over a Range of Numbers Defined by Variables in Bash

>> Iterating in Reverse Using for Loops and Other Constructs

>> Good Place to Install Custom Bash Scripts in Linux

>> “Illegal option -o pipefail” While Using the set Command

>> Using nohup With a for Loop

>> How to Check the Existence of Input Argument in a Bash Script

>> What Does mdev Mean in ping Statistics?

>> How to Process a Bash Variable With sed

>> Path of Bash Script From Symbolic Link

>> In What Order Do Piped Commands Run?

>> Idling and Dummy Executable Files That Do Nothing in Linux

>> Convert INI File Into a Bash Array

>> Use Bash With Alpine Based Docker Image

>> How to Retry a Failed Command in Shell

>> Run Cron Job Manually With Proper Environment

>> Script to Automatically Test if a Website Is Available

>> Determine Whether a Shell Variable Is Empty

>> Differences Between Single and Double Brackets in Bash

>> Bash Bitwise Operators

>> Execute a Command Whenever File or Directory Changes

>> Check if Command Executed Successfully in Linux

>> List All Available Commands and Aliases in Linux

>> The Exclamation Mark (!) in Interactive Shells

>> Linux Shells Performance: dash vs bash

>> Hiding User Input in a Bash Terminal

>> The Difference Between #!/usr/bin/bash and #!/usr/bin/env bash

>> Escape a Single Quote in Single Quote String in Bash

>> How to Load Environment Variables in a Cron Job

>> Concatenate Two Strings to Build a Complete Path in Linux

>> Why Do We Use ./ (Dot Slash) To Execute a File in Linux

>> Get Exit Code of a Background Process

>> Difference between ${} and $() in Bash

>> How to Insert a New Line Character in Linux Shell Script Output

>> Bash HISTSIZE vs. HISTFILESIZE

>> Storing a Command in a Variable in a Shell Script

>> When to Use an Alias vs Script vs a New Function in Bash

>> Difference Between .bashrc, .bash-profile, and .profile

>> Pass the Output of a Command as an Argument for Another

>> Check if a String Contains a Substring in Linux

>> Debugging a Bash Script

>> Read Random Line From a File in Linux

  • ↑ Back to Top
The Baeldung logo

Categories

  • Administration
  • Files
  • Filesystems
  • Installation
  • Networking
  • Processes
  • Scripting
  • Search
  • Security
  • Web

Series

  • Linux Administration
  • Linux Files
  • Linux Processes

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo