There are many ways to run multi-line shell commands in Linux at once. Let’s explore and compare them.
Also find me here:
Baeldung Author
baeldung
This is the standard author on the site. Most articles are published by individual authors, with their own profiles, but when multiple people have a strong contribution, we publish collectively here.
Here's what I've written (so far):
Baeldung on Linux
- All
- Administration (143)
- Scripting (130)
- Files (89)
- Processes (70)
- File Editing (37)
- Filesystems (36)
- Networking (35)
- User Administration (26)
- Security (23)
- Web (22)
- Text Processing (18)
- File Viewing (18)
- Network Configuration (16)
- Package Management (14)
- File Searching (14)
- Docker (14)
- Service Management (13)
- Installation (12)
- Series (11)
- Network Monitoring (11)
- Search (8)
- File Conversion (8)
- File Compression (8)
- Building (7)
- File Permissions (6)
- Boot Process (5)
- File Transfer (4)
Guide to Generate Random Numbers in Linux
Filed under Scripting
Learn how to generate random numbers in a Linux environment.
Read the Source Code of Shell Commands
Filed under Processes
Learn how to find the source code for the common Linux tools.
Anonymous and Named Pipes in Linux
Filed under Processes
Learn about anonymous and named pipes in Linux.
Check if Directory Is Mounted in Bash
Filed under Filesystems
A quick and practical Bash guide to checking if a directory is mounted.
Get the Contents of a Web Page in a Shell Variable
Filed under Scripting
Sometime we may need to process the content of a web page in our scripts. Let’s see how we can download a web page to a shell variable for further processing.
Find the Current Working Directory of a Running Process
Filed under Processes
Learn how to find the current working directory of a running process.
Run Cron Job Only If It Isn’t Already Running
Filed under Processes
When scheduling long-running jobs with cron, we may need to implement some sort of mutex functionality to prevent two instances running at the same time. Here we discover a few things we can add to our scripts to achieve this.
Kernel Stack and User Space Stack
Filed under Processes
A quick and practical explanation of Linux stack spaces.