New to Terminal: Is a single dash used for abbreviated options and a double dash used for verbose options?

Take a look at the following image from the Git website (http://git-scm.com/docs/git-stash). Note how -q is an abbreviated form of --quiet and -p is an abbreviated form of --patch.

git stash example
I'm relatively new to Terminal. Is this one dash/abbreviated and two dashes/verbose pattern common to terminal programs (homebrew, npm, bower...)?
jdanaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BullockQA EngineerCommented:
It depends on the program.
For example, ls and cd have no options beginning with --
ozoCommented:
That is a common practice, especially among programs that use getopt/getopt_long
jmcgOwnerCommented:
The original UNIX command set used primarily single-letter flags (I'm talking circa 1975!). The "dd" command was an outlier.

Later development streams -- GNU being the first one I encountered -- introduced long option names, stemming from experience with other operating systems. When implementing programs to be work-alikes to the original UNIX commands, great pains were taken to provide backwards-compatible single-letter flags that were, usually, the first letter of the longer option name -- but it would not be correct to think of the single-letter flags as intentional "abbreviations". Thinking that would lead you to believe you can guess which single-letter flags there might be, which will frequently fail.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ozoCommented:
If you are unsure of the option usage for a particular command (which might be any time you are not just repeating a previous command from your terminal history) you would probably want to consult the man page for that command.
jdanaAuthor Commented:
Thanks for all the great feedback.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.