If you need to disable the output buffering when you use complex pipelines, passing the output between multiple pipes then you can definitely use the unbuffer
command. Let’s install unbuffer on Amazon Linux 2.
Prerequisites
- Amazon Linux 2
- sudo privileges
Install unbuffer on Amazon Linux 2
Step 1. Update Amazon Linux 2 system packages.
sudo yum update
Step 2. Install unbuffer on Amazon Linux 2.
sudo yum install expect
Step 3. Verify the installation.
unbuffer
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.