[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] comparing - and --



hello
in linux if u want to give a single alphabet option then u give the '-', but if u want to give an option that is more than one character long then we use '--'

as in

      ls -a - --color |more
or
      ls -al --color |more

u can even concatenate to single character options in to a single string. thats where it helps us to differentiate with single character & string options

Bye
Harsha



From: "T.V.Gnanasekaran" <gnana@xxxxxxxxxxxxxx>
Reply-To: linux-india@xxxxxxxxxxxxxxxxxxxxx
To: linux-india@xxxxxxxxxxxxxxxxxxxxx
Subject: [LI] comparing - and --
Date: Mon, 29 Nov 1999 19:29:40 +0530
MIME-Version: 1.0
From owner-linux-india@xxxxxxxxxxxxxxxxxxxxx Mon Nov 29 06:04:28 1999
Received: from [216.103.113.202] by hotmail.com (3.2) with ESMTP id MHotMailBA0BD1720047D820F3A8D86771CA0B390; Mon Nov 29 05:58:11 1999 Received: from localhost (daemon@localhost)by www.aunet.org (8.9.3/8.9.3/Debian/GNU) with SMTP id FAA18422;Mon, 29 Nov 1999 05:55:06 -0800 Received: by www.aunet.org (bulk_mailer v1.11); Mon, 29 Nov 1999 05:55:05 -0800 Received: (from majordom@localhost)by www.aunet.org (8.9.3/8.9.3/Debian/GNU) id FAA18401for linux-india-outgoing; Mon, 29 Nov 1999 05:55:02 -0800 Received: from blr.vsnl.net.in (blr.vsnl.net.in [202.54.12.6])by www.aunet.org (8.9.3/8.9.3/Debian/GNU) with ESMTP id FAA18395for <linux-india@xxxxxxxxxxxxxxxxxxxxx>; Mon, 29 Nov 1999 05:54:53 -0800 Received: from genome.avesthagen.com (PPP-89-110.bng.vsnl.net.in [202.54.89.110])by blr.vsnl.net.in (8.9.3/8.9.3) with ESMTP id TAA26847for <linux-india@xxxxxxxxxxxxxxxxxxxxx>; Mon, 29 Nov 1999 19:18:19 +0530 (IST) Received: from gnana by genome.avesthagen.com with local (Exim 3.03 #1 (Debian))id 11sRLB-0000HX-00for <linux-india@xxxxxxxxxxxxxxxxxxxxx>; Mon, 29 Nov 1999 19:29:41 +0530
Message-ID: <19991129192940.A804@xxxxxxxxxxxxxx>
User-Agent: Mutt/1.0i
Sender: owner-linux-india@xxxxxxxxxxxxxxxxxxxxx
X-Loop: linux-india@xxxxxxxxxxxxxxxxxxxxx
X-Url: http://www.linux-india.org

hi all,

This question sounds stupid but I am putting it to you anyway.
I have worked with different unices (Irix, OSF, solaris etc.)
When I came to Linux I discovered all command line options were
using two hyphens (--) instead of single -.

For example: ls --color

Now, why is it so? :)

-gnana
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.