delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/18/13:27:57

X-Recipient: archive-cygwin AT delorie DOT 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
MIME-Version: 1.0
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 AT cisco DOT com>
To: <cygwin AT cygwin DOT com>
Cc: <max AT kalani DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4IHRr3F016264

> From: max AT kalani DOT com [mailto:max AT kalani DOT com]
> When I enter:
> 
> admin AT mypc ~
> $cd
> 
> admin AT 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 AT mypc ~
> $dir
> 
> admin AT 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019