• My Book
  • About My website
  • Search

Amit Agarwal Linux Blog

nice little bash function to search for running processes

2014-10-13 1 min read Bash

Here is a nice little handy function that I use very regurlarly.

You can use this function with parameter to just grep for that or just type psa to see all the running processes.

Just put this in your .bashrc file.

You might find it useful:

 

psa () 
{ 
    if [[ $1 == "" ]]; then
        ps -eaf;
    else
        ps -eaf | grep --color=auto -i $1;
    fi
}
Bash Bash Functions Functions Grep

bashrc with lots of functions and useful alias

2013-10-30 1 min read Bash

Here is a link of a useful 10K lines bashrc

http://pastebin.com/LEkXXuST

You may not want to put the whole thing, but get an idea and use what you think can be helpful to you or at-least get an idea. This was not posted by me, so if you are re-using code as is, check the permissions to copy.

Alias Bash Bashrc Functions
Latest posts
  • How to Install ExifTool and Detect AI-Generated Images
  • ai_ml_hacking
  • openrouter fusion - capabilities similar to Anthropic Fable
  • Leveraging ffuf for Timing Attacks: Practical Workflow and Burp Integration
  • Ollama Security Hardening: Practical Guide for Cloud Deployments
  • nmap_cheatsheet.md
  • Convert Man Pages to ASCII, HTML, Markdown, and PDF (Groff + Pandoc)
Categories
  • Linux (531)
  • Fedora (343)
  • Bash (217)
  • Uncategorized (191)
  • Learning (156)
  • Photo (76)
  • Vim Tips (37)
Social media
© 2018 - 2026 by Amit Agarwal - rss
Bilberry Hugo Theme