Questions tagged [cygwin]

Cygwin is a collection of GNU and other Unix-like FOSS tools which run on MS Windows and provide functionality similar to a GNU/Linux distribution while (mostly) conforming to POSIX specifications. Use this tag for questions about developing programs and/or scripts to run in this environment. Questions on the *use* of tools in a Cygwin environment are more appropriate for Super User (https://superuser.com).

Cygwin is a Unix-like environment and command-line interface for Microsoft Windows. Cygwin provides native integration of Windows-based applications, data, and other system resources with applications, software tools, and data of the Unix-like environment. Thus it is possible to launch Windows applications from the Cygwin environment, as well as to use Cygwin tools and applications within the Windows operating context.

Cygwin consists of two parts: a dynamic-link library () as an API compatibility layer providing a substantial part of the API functionality, and an extensive collection of software tools and applications that provide a Unix-like look and feel.

Cygwin is:

  • a collection of tools which provide a Linux look and feel environment for Windows.
  • a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality.

Cygwin is not:

  • a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
  • a way to magically make native Windows apps aware of UNIX® functionality like signals, `ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.

The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE and Windows NT4.

Official Website: http://www.cygwin.com/

Useful Links:

7878 questions
50
votes
6 answers

vimdiff and move among left and right pane

I am using vimdiff for the first time. Online I found written that to move from the left pane you use CTRL + w + Left or right arrow This does not work for me. But I see that if I press just CTRL + w and press w for a sec and let it go, it switches…
Cratylus
  • 52,998
  • 69
  • 209
  • 339
49
votes
4 answers

How do I tell whether my cygwin installation is 32 or 64 bit?

How do I tell whether my cygwin installation is 32 or 64 bit? I don't remember which setup.exe to download. And I would hate to mess up my cygwin installation.
user18099
  • 663
  • 1
  • 6
  • 13
49
votes
13 answers

How can I associate .sh files with Cygwin?

I'd like to run a long rsync command in Cygwin by double clicking on a .sh file in Windows. It must start in the file's containing directory (e.g. /cygdrive/c/scripts/) so that relative paths work. Anyone gotten this to work? Note: I've just found…
Jerph
  • 4,572
  • 3
  • 42
  • 41
48
votes
2 answers

Node.js, Cygwin and Socket.io walk into a bar... Node.js throws ENOBUFS and everyone dies

I'm hoping someone here can help me out, I'm not having much luck figuring this out myself. I'm running node.js version 0.3.1 on Cygwin. I'm using Connect and Socket.io. I seem to be having some random problems with DNS or something, I haven't quite…
A Wizard Did It
  • 3,614
  • 4
  • 28
  • 32
48
votes
11 answers

Install Protocol Buffers on Windows

I am unable to find clear instructions to install Google Protocol Buffers (including compiler) on Windows x64 platform. I went through the instructions README file for compiler and source: For Compiler: To install, simply place this binary…
aces.
  • 3,902
  • 10
  • 38
  • 48
47
votes
1 answer

Bash Sort like Windows 'natural sort order'

I've got a bunch of PDFs that I'm trying to append together, and I've got a program that, given a list of files, will append them to one PDF. The issue I'm having is that piping the file names to sort does not produce the desired order. None of the…
jknielse
  • 701
  • 1
  • 6
  • 10
47
votes
6 answers

Good alternatives to Cygwin? - Cygwin doesn't support natively support Win32 apps

Update 1/9/2014: TL;DR version: Go to bottom of this post for a way to get Cygwin to be able to call non-Cygwin programs. After having spent the time to make some bash scripts that happen to be of significant size, newer versions of Cygwin have…
James Johnston
  • 9,264
  • 9
  • 48
  • 76
46
votes
7 answers

cygwin clearscreen from bash

I want to clearscreen from bash in a cygwin terminal. I have tried cmd /c cls echo -e "^V^L" echo -e "\014" None of these work - they all give a "linefeed". Pressing CTRL+L does work - but I want to call it from a Bash script. Any ideas?
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
46
votes
8 answers

Node.js Cygwin not supported

I am trying to install node.js. I followed this tutorial and i am stuck in the middle. When I write ./configure in my cygwin terminal it says "cygwin not supported". Please help me out Thanks in advance.
Mj1992
  • 3,404
  • 13
  • 63
  • 102
44
votes
5 answers

How can I set my Cygwin PATH to find javac?

I have a Windows 7 system on which I have installed the latest Java compiler. I also have the latest Cygwin. I want to use the Java compiler from Cygwin's shell. I edited the PATH variable in Cygwin as follows: export…
liv2hak
  • 14,472
  • 53
  • 157
  • 270
44
votes
12 answers

How to best integrate Emacs and Cygwin?

There are a ton of ways to integrate Cygwin with Emacs on Windows. EmacsWiki shows a few ideas. Here are the options that I've found: Use the Emacs that comes with Cygwin. (Then find a way to get to cmd.exe if you want it.) Use NTEmacs and…
User1
  • 39,458
  • 69
  • 187
  • 265
44
votes
5 answers

How to execute a bat file from cygwin bash that uses the Windows find command

The find command does completely different in Windows and Unix. On Windows it is a fgrep-like utility listing matching lines in a file; on Unix -- and on Cygwin -- it list filenames matching some criteria. Cygwin bash prepends its standard…
Miserable Variable
  • 28,432
  • 15
  • 72
  • 133
43
votes
7 answers

Cygwin - run script silenty from "run command"

I have script lets say: C:\foo.bsh I want to be able to run this command via the windows run command: Start -> Run Windows Key + R and type something small like 'foo' and hitting return. However, I do not want a cmd prompt to be visible. This…
Russ
  • 1,996
  • 3
  • 19
  • 31
43
votes
4 answers

Cygwin: How to actually use gcc-mingw

Since "gcc -mno-cygwin" does not work anymore, I was looking for a way to get a MinGW-targeted GCC running within my Cygwin environment. (Running a MSYS environment is not an option at this point.) The Cygwin installer offers a package "gcc-mingw",…
DevSolar
  • 67,862
  • 21
  • 134
  • 209
43
votes
4 answers

Startup is really slow for all Cygwin applications

Start of any Cygwin application takes more than a minute on Windows 8.1 x64. It doesn't matter, either I'm starting mintty from shortcut or cygwin.bat or ls.exe or bash.exe from bin folder. Each of them will be slow. After Bash or mintty is started…
Anton
  • 10,890
  • 8
  • 45
  • 54