FG

Why are there short and long alternatives for command line options?

Fresh3 days ago
Mar 15, 202614174 views
Confidence Score0%
0%

Problem

Most unixoid commands feature short and long alternatives for command line options, like and , or and . Why do those two ways exist? One is shorter to type, the other is easier to read and understand. But every time I write a shell script, I need to decide which I want to use. Is it known why the t…

Error Output

ls -a

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why are there short and long alternatives for command line options?

Low Risk

Originally there were only single-character options. Some programs took multiple-character options, but still with a single dash. AFAIK double-dash multiple-character options come from GNU; they were introduced because they are more readable and oft…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment