Useful Snippets

Welcome!


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

Are your smart devices spying on you? Make better purchasing choices and find products that respect your privacy at Unwanted.cloud

RSS Latest posts from my personal blog


Subscribe to RSS feed


Show all running processes in Linux

Stanislav KhromovStanislav Khromov

To get a simple list:

ps aux

To filter for a process by name, pipe it to grep. In the example below we will find all the Apache processes:

ps aux | grep apache

Source

Full-stack impostor syndrome sufferer & Software Engineer at Schibsted Media Group

Comments 1
  • slope unblocked
    Posted on

    slope unblocked slope unblocked

    Reply Author

    The `ps aux | grep apache` command is a classic for finding specific processes, yet it always makes me chuckle when I inevitably see the `grep` process itself in the results. For something so fundamental, it feels almost too primitive at times, like there should be a cleaner native flag for simple name filtering.