binary called "top" not have realtime filter/search? [#SHAZBOTAA7235423352662A]

Giorgos Keramidas keramida at freebsd.org
Sat Jan 13 03:22:55 UTC 2007


On 2007-01-12 19:27, Philip Hallstrom <freebsd at philip.pjkh.com> wrote:
>>On 2007-01-12 14:02, Peter aka SweetPete <swtpete at gmail.com> wrote:
>>>I've red the manpage for "top" (from heh heh "top" to bottom...),
>>>and I am amazed that there is not a feature to hit '/' or '?' in
>>>order to search and display only processes which match a certain
>>>keyword/search term.  For example, a user running top could hit '/'
>>>and enter "fire", which would display processes related to
>>>"firefox."
>>
>> That's an excellent idea :)
>>
>> Should we also allow for limiting by other stuff too, i.e. like the
>> 'l' command in the mail/mutt mailer accepts a 'limit pattern' with a
>> syntax like:
>>
>>
>> Limiting by username or user ID
>>
>>    ~u username		only show processes of user `username'
>>    ~U uid		only show processes of user uid
>>    ~U uidmin-uidmax	only show processes of users minuid-maxuid
>
> username is already there...
>
> u      Display only processes owned by a specific username (prompt  for
> username).   If  the username specified is simply "+", then processes
> belonging to all users will be displayed.

I know.  I was "thinking loudly" of a way to extend this without having
to hijack the entire keyboard.  If/when we have a more featureful
limiting mechanism, we can certainly leave 'u' as a key binding that
works exactly the same as before, for compatibility reasons.



More information about the freebsd-questions mailing list