What is -h vs --help in Linux command?
-h vs --help
To sum up, the Linux shell provides access to help information for commands through both -h and —help.
However, —help is a more uniform and universal option that may be used with a variety of commands. Shorter and occasionally used, -h can have varying availability and significance.
It is advised to use --help to reliably obtain help information, particularly for commands that are unknown.