KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I normally use ps -elf | grep proceesname to get a detailed description of the process named processname . I think that I have to write too much for this. Now what i was thinking is to create a bash alias like alias lsps='ps -elf | grep $1' which will give the above detailed description only by using lsps processname . So, my question is how do I create a bash alias which accepts an argument. PS: I know I can write a shell script for the above task but I was just wondering how to do it with bash alias.
Tags (comma-separated)
Save Edits
Cancel