Subject: RE: Cygwin Commands
From: "Matt Seitz (matseitz)" <[email-masked]>
To: <[email-masked]>
Cc: <[email-masked]>
Date: Fri, 18 May 2012 10:27:11 -0700
List-Id: <cygwin.cygwin.com>

> From: [email-masked] [mailto:[email-masked]]
> 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