Warning: bad syntax, perhaps a bogus ‘-‘? See /usr/share/doc/procps-3.2.7/FAQ

This warning usually appears when you try to use an option that is not recognized by the command you are running. In this case, the warning is related to the procps package, which provides various system utilities including ps, top, and free.

Here are a few possible reasons why you might be seeing this warning and some solutions:

  1. You are using an option that is not recognized by the version of procps installed on your system. To see the options that are supported by your version of procps, you can check the man page or the help message for the command you are running. For example, to see the help message for the ps command, you can run:
    ps --help
  2. You are using an option that is valid for one command but not for another. For example, the - character is often used as a shorthand for stdin or stdout, but it may not be valid as an option for some commands. In this case, you should check the documentation for the specific command you are running to see if the option is valid. (https://hydrogen.aero/)
  3. You have a typo or a mistake in the command you are running. Double-check your command to make sure that all the options and arguments are correct.
  4. Your procps package may be outdated or misconfigured. You can try reinstalling the package or upgrading to a newer version to see if that resolves the issue.

If none of the above solutions work, you may need to provide more details about the command you are running and the options you are using in order to diagnose the problem.

Leave a Comment