It seems like you're using a version of top that requires you to use a regular expression (regex) to filter the process list. The message you're seeing, "add filter #1 (ignoring case) as: [!]FLD?VAL", is indicating that you need to provide a filter expression to include or exclude (based on the ! prefix) processes that match the specified field (FLD) and value (VAL).
Here's how you can use this filter:
-
Start top: If you haven't already, open the top command in your terminal.
-
Enable filtering: Press o or O to enter the filter mode.
-
Add a filter: You'll see the message about adding a filter. You can add multiple filters by specifying each one and pressing Enter after each.
-
Create a regex filter: To create a filter using a regex, you would use the O key followed by the regex you want to match. For example, if you want to filter for all processes whose name contains "java", you would enter java (without the quotes) and press Enter.
-
Confirm the filter: After entering the regex, press Enter again to confirm the filter.
-
Exit the filter mode: To exit the filter mode and go back to the normal process list, press q or Esc.
Please note that the syntax and behavior of top can vary slightly between different distributions and versions of Linux. If you're using a custom or a very old version of top, the specific commands or options might be different.
If you're using a recent version of top from a standard distribution (like Ubuntu, Fedora, etc.), the o and O filters should work as described above. If you're using a custom version or an ancient system, the documentation for your specific top version should provide the most accurate information.