ps, amazon linux 2,

PS Command Not Found in Amazon Linux 2

Nov 23, 2022 · 1 min read · Post a comment

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.