Learn how to capture standard output one line at a time in Bash.
Also find me here:
Baeldung Author
Karthik Devan
I work freelance on full-stack development of apps and websites, and I'm also trying to work on a SaaS product. When I'm not working, I like to travel, play board games, hike and climb rocks.
Here's what I've written (so far):
Baeldung on Linux
- All
- Administration (6)
- Scripting (5)
- Networking (3)
- Processes (2)
- File Searching (1)
- File Editing (1)
Set Environment Variables From File of Key/Value Pairs in Linux
Filed under Scripting
Learn how to set environment variables that are stored in a file as key/value pairs on Linux..
Shortening the Current Directory Path in the Terminal on Linux
Filed under Administration
Learn how to shorten the directory path that appears in a Linux terminal.
Usage of Compgen Command in Bash
Filed under Scripting
Learn how the compgen command is used for auto-completition in Linux.
Find Binary Files in a Directory
Filed under File Searching
Learn how to use Linux commands to search for files that contain binary content.
Good Place to Install Custom Bash Scripts in Linux
Filed under Administration
Learn the recommended ways to install custom Bash scripts for system-wide use on Linux.
Checking Whether the Display Server Is Xorg or Wayland
Filed under Administration
Learn several methods to determine if a display server is using Xorg or Wayland in Linux.
Check Time-To-Live (TTL) For a DNS Record
Filed under Networking
Learn how to check the TTL for DNS records using dig and nslookup on Linux.
Checking PTR Records Using the Command Line
Filed under Networking
Learn how to check PTR records using various Linux commands.
Editing MP3 Tags on Linux
Filed under File Editing
Learn how to tag MP3 music using command line tools id3v2, eyeD3, and id3tool on Linux.
Printing ASCII Art in the Shell
Filed under Scripting
Explore different ways to print ASCII artwork in the shell.
Wildcard a Subdomain in the Hosts File
Filed under Networking
Learn three ways to resolve all subdomains of a given domain to the local IP address.
Difference Between a Terminal, Shell, TTY, and Console
Filed under Administration
Explore the terms console, terminal, and tty and learn why are they very closely related.
Entirely Detach a Process From Terminal
Filed under Processes
Explore several ways to run programs detached from the terminal.
Find Out System Hardware Info From the Linux Command Line
Filed under Administration
Learn about many ways to list a Linux system’s hardware details, including processors, main and secondary memory, as well as peripheral devices.
Checking the Battery’s Status via the Terminal
Filed under Administration
Learn some ways to check the battery status (charging status and power percentage) using commands.
How to Get the Command Line Args Passed to a Running Process on Unix/Linux Systems?
Filed under Processes
Explore two different ways of getting the list of arguments that we pass to a running process.
When to Wrap Quotes Around Arguments in a Shell Command
Filed under Scripting
Look at various scenarios where different quotes may be used or omitted and understand how quoting works