0

I'm a linux beginner

I want to filter the possibilities in of a linux command , for example , how can i output the possibilities of 'service'?

I hope that was clear enough

thanks

ARIK
  • 9
  • 1
  • 2
    Can you clarify what you mean with "output the possibilities of service"? – Quasímodo Mar 27 '21 at 17:01
  • You could use the MAN pages, example 'man service' – GarfieldBonn Mar 27 '21 at 17:47
  • You say "without tab", so are you referring to the list of possible [completions](https://en.wikipedia.org/wiki/Command-line_completion) generated by your shell (e.g., Bash) when you enter a command and press ``TAB`` twice? – amadeusamadeus Mar 27 '21 at 17:56
  • Does this answer your question? [List all commands that a shell knows](https://unix.stackexchange.com/questions/94775/list-all-commands-that-a-shell-knows) – Artem S. Tashkinov Mar 27 '21 at 18:21
  • @amadeusamadeus yes exactly what you said , I'm sorry if I was not clear enough. I could not find it with 'man service'. – ARIK Mar 27 '21 at 21:23
  • Most commands have a `--help` option that should give you an overview of their invocation. Now, `service` is a bit special, as the man page says: "The supported values of COMMAND depend on the invoked script". This is so because `service` invokes a script which may have many different options that `service` know nothing about. Whether the script itself has a help function depends on the script as well. – berndbausch Mar 28 '21 at 03:05
  • @ARIK So you are talking about the *arguments* the shell suggests for completion, while people commenting about *man* and ```--help``` think you would be talking about the *options* of a command. Can you relate to [this question](https://unix.stackexchange.com/questions/581679/)? – amadeusamadeus Mar 28 '21 at 12:09

0 Answers0