Search results
Aug 26, 2017 · In Linux command line, one can use either of two ways to pass options to commands. Either we can use the short option format which uses a single dash followed by a single letter, for example: -o or the long option format which uses two consecutive dashes followed by a word, for example: --option.
The most common is GNU getopt style, with one dash for short options and two dashes for long options. Initially, Unix programs took single-letter options preceded by a single dash and optionally bundled: ls -laF. ls -l -a -F. The two commands above are equal.
Dec 13, 2023 · Usually "-" is used for 'short' options (one-letter, -h), and "--" is used for "long"(er) options (--help). Short options can usually be combined (so "-h -a" is same as "-ha") In Unix-like systems, the ASCII hyphen–minus is commonly used to specify options.
To use this effectively in xterm, it has to preprocess the command parameters to prefer -v (for version) over -vb (visual bell). The X Toolkit has no direct way to specify a preferred option when there is an ambiguity.
Slashes are Windows's original option syntax and not all windows commands accept the dash-options. With Dir /? you the list of the options for dir. But with . Dir -? you get a file not found-message (tested with Windows XP) (Same with dir -w...).
Aug 17, 2016 · Yes, -v is often used for "verbose" - and -V is sometimes used for "version" - but there is no real consesnsus between commands. For example -i means "interactive" for cp , mv , ln and rm - the command will prompt before overwrite or delete.
People also ask
How to pass options in Linux command line?
Can short options be combined into a single argument?
Why are there two types of shorthand command combining?
Does GNU have a double dash long option?
Does a POSIX command use a multi-letter option before a dash?
What does -H -a mean in Unix?
Along with single line and multi-line comments, the document language KDL supports a novel, scope/syntax aware form of comment syntax called "slashdash" comments. In KDL, the token /- will treat the following node, argument, property or children block as a comment, even if it spreads across multiple lines.