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
33
votes
1 answer

Multi-Session Manager for Git Bash Like GNU's Screen

I'm not sure what to name this question, as I am not sure what the technical name is for the type of program I am talking about. Is there a program available for Git Bash that is similar to screen, tmux, or byobu? I know all 3 are available for…
trysis
  • 8,086
  • 17
  • 51
  • 80
33
votes
4 answers

Is SSH ControlMaster with Cygwin on Windows actually possible?

Has anyone been able to use control master with cygwin on Windows to create multiple sessions without having to log on repeatedly? I need to automate a succession of SSH steps but cannot ask the user to enter the required tokenized password…
Giovanni
  • 750
  • 6
  • 11
33
votes
4 answers

'RTLD_NEXT' undeclared

I'm trying to compile a C program but I get the error 'RTLD_NEXT' undeclared. I think this is supposed to be defined in dlfcn.h which the c program includes, but when I looked inside dlfcn.h there is no RTLD_NEXT. How do I fix this?
neuromancer
  • 53,769
  • 78
  • 166
  • 223
32
votes
3 answers

Can I script a Cygwin install to include certain packages?

I install cygwin frequently enough that it would be handy to have the process automated. Specifically, I want to be able to specify ahead of time the packages that I want to install, so that I don't have to remember them at install-time. Is there…
Gabe Moothart
  • 31,211
  • 14
  • 77
  • 99
32
votes
10 answers

Set Default Shell in Cygwin

I've been using Cygwin for quite a while now. I now want to switch to fish from bash. Everyone is saying that you should use chsh -s /usr/bin/fish, but for some reason, chsh does not work for me. Trying to modify my Cygwin.bat file doesn't work…
Alex
  • 699
  • 1
  • 10
  • 20
32
votes
2 answers

How to run make from Cygwin environment?

I am trying to run linux driver on linux environment .. Following instruction to run winkvm .. stuck on point run make command using cygwin environment .. like Building original KVM drivers using Cygwin environment: cd kvm/kernel ## Do not type…
user2593158
  • 323
  • 1
  • 3
  • 5
32
votes
7 answers

How do I turn the beep slash bell off in cygwin?

The system beep/bell happens frequently (ie, when I type a few letters then type tab to autocomplete when there are a few options). How can I turn this off? I googled it and tried: set bell-style none (the command went through but nothing…
Breck
  • 670
  • 2
  • 7
  • 22
32
votes
3 answers

Running Git through Cygwin from Windows

I have started using Cygwin recently for other purposes and already have Git installed on my PC. I understand I can run the executable and install Git into Cygwin, but since I already have it installed I would like Cygwin to just use my Windows…
jh_
  • 411
  • 2
  • 5
  • 9
32
votes
1 answer

How do I get accented letters to actually work on bash?

My bash installation on cygwin doesn't handle accented letters properly. I tried adding set input-meta on # to accept 8-bit characters set output-meta on # to show 8-bit characters set convert-meta on # to show it as character, not the octal…
Ferdinando Randisi
  • 4,068
  • 6
  • 32
  • 43
32
votes
5 answers

How to install/setup TortoiseGit to work with GitHub

I have just installed Git For Windows, and created my SSH key using SSH through Cygwin. It seems to be working from command-line and the Git For Windows GUI, but now I want to use TortoiseGit. TortoiseGit uses a Putty-like SSH client by default but…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
31
votes
10 answers

Difference between msysgit and Cygwin + git?

What is the difference between msysgit and Cygwin + git? Now I'm using msysgit, but I don't like the Git Bash (you can't resize or copy/paste) so I'm thinking think about switching to Cygwin, because then I could use mintty.
why
  • 1,275
  • 4
  • 12
  • 23
31
votes
4 answers

How to fix "address space is already occupied" error on fetch/commit?

Started recently, basically every time I try to fetch or commit it gives me this weird error. It'll continuously try to "refetch/recommit" until I give up and CtrlC. C:\cygwin\home\git\new_trunk>git sf 1 [main] perl 760 child_info_fork::abort:…
iCodeLikeImDrunk
  • 17,085
  • 35
  • 108
  • 169
31
votes
7 answers

How to kill a process in cygwin?

Hi i have the following process which i cant kill: I am running cygwin in windows xp 32 bit. I have tried issuing the following commands: /bin/kill -f 4760 /bin/kill -9 5000 kill -9 5000 kill 5000 When i write /bin/kill -f 4760 i get the message,…
Diemauerdk
  • 5,238
  • 9
  • 40
  • 56
30
votes
1 answer

Convert Cygwin path to Windows path in a makefile

How can I convert a Cygwin style path ( /cygdrive/c/foo/bar ) to Windows style ( C:/foo/bar ) (yes, with / going forward) in a GNU makefile? I have the situation of using Cygwin's make with a GCC that does not understand Cygwin style paths, so paths…
grrussel
  • 7,209
  • 8
  • 51
  • 71
30
votes
7 answers

sudo command not found on Cygwin

I am currently trying to install and update a few packages on a Windows OS. The only matter is that I am using Cygwin in order to type the commands through a terminal (as I'm aware, I can type in Linux type commands such as cd, ls etc. on Cygwin - I…
Adam
  • 862
  • 2
  • 8
  • 12