X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-12.4 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,T_RP_MATCHES_RCVD,USER_IN_DEF_DKIM_WL
X-Spam-Check-By: sourceware.org
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EAN2Etk+rRDoG/2dsb2JhbABFtAWBB4IVAQEBAwESAR0KPwUNAQgVDQYXAQdFAwEOAQQTCBYEh2cEAQucTKAHjSeCPGIDiECNb40CgWSDCQ
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;	charset="us-ascii"
Subject: RE: Cygwin Commands
Date: Fri, 18 May 2012 10:27:11 -0700
Message-ID: <70952A932255A2489522275A628B97C3133B0694@xmb-sjc-233.amer.cisco.com>
From: "Matt Seitz (matseitz)" <matseitz@cisco.com>
To: <cygwin@cygwin.com>
Cc: <max@kalani.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4IHRr3F016264

> From: max@kalani.com [mailto:max@kalani.com]
> When I enter:
> 
> admin@mypc ~
> $cd
> 
> admin@mypc ~
> $

The Cygwin/POSIX "cd" command is different from the Windows "cd"
command.

Cygwin/POSIX "cd" without arguments:  change the current directory to
the user's "home" directory

Windows "cd" without arguments:  display the current directory

The Cygwin/POSIX command to display the current directory is "pwd",
short for "print working directory".

> admin@mypc ~
> $dir
> 
> admin@mypc ~
> $

The Cygwin/GNU "dir" command is different from the Windows "dir"
command.

Cygwin/GNU "dir":  list files except those that start with a dot (".")

Windows "dir":  list files except those with the "hidden" attribute flag
set

The Cygwin/GNU command to list all files, including ones that start with
a dot, is "dir -a" ("a" is short for "all").

You might find the following link useful.  It's an introduction to Linux
commands for Windows users.  Since Cygwin emulates Linux commands, most
of what it says about Linux commands also applies to Cygwin commands:

http://tldp.org/HOWTO/DOS-Win-to-Linux-HOWTO.html






--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


