Is there any way to get pgrep
to give me all the info about each process that ps
does? I know I can pipe ps
through grep
but that's a lot of typing and it also gives me the grep
process itself which I don't want.
Linux – How to get pgrep to display full process info
bashgreplinuxprocess
Related Topic
- Linux – How to run a command multiple times, using bash shell
- Bash – cat * | grep something… what file is the result in
- Linux Web Server – Proper Permissions for Website Files and Folders
- Bash – Run an interactive bash subshell with initial commands without returning to the (“super”) shell immediately
- Linux – How to Get TX/RX Bytes Without ifconfig
Best Answer
pgrep
's output options are pretty limited. You will almost certainly need to send it back throughps
to get the important information out. You could automate this by using a bash function in your~/.bashrc
.Then call the command with.