Procps package might not be part of some Amazon Linux 2 docker images. So if you want to list the active processes you will get: ps command not found
. It can be easily resolved by installing procps package.
Prerequisites
- Amazon Linux 2
- sudo access
Solution
Step 1. Update the EC2 packages.
sudo yum update
Step 2. Install procps.
sudo yum install procps
Step 3. To verify that is resolved, run:
ps aux
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.