Questions tagged [cygwin]

cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.

Filter by
Sorted by
Tagged with
200 votes
9 answers
410k views

How to install new packages on Cygwin?

I installed the latest version of Cygwin with a number of packages. I soon realised that I need more packages (such as wget, etc) and I couldn't find a way to install the new packages without running ...
  • 2,173
123 votes
5 answers
25k views

How do I make ctrl-arrow keys move forward/backward a word at a time in Cygwin bash?

In the default Cygwin installation, using CTRL-LEFTARROW or CTRL-RIGHTARROW simply prints 5C or 5D instead of skipping a word at a time as expected. Home/End keys work properly, so remapping should ...
  • 3,564
121 votes
9 answers
86k views

Upgrading and installing packages through the Cygwin command-line?

I'm a blind computer user that uses Cygwin. The installation program isn't very accessible: upgrading, installing, and removing specific packages is quite hard to do since you have to use simulated ...
  • 2,255
83 votes
10 answers
96k views

How to update Cygwin from Cygwin's command line?

To search and download a package missed from Cygwin I need to run setup.exe GUI each time, click many times and do other boring things. Is there a way to do the same from Cygwin's command line ...
  • 1,546
79 votes
7 answers
41k views

Using Cygwin in Windows 8, chmod 600 does not work as expected?

I'm trying to change the permissions to my key file key.pem in Cygwin 1.7.11. It has the permissions flags: -rw-rw---- chmod -c 600 key.pem Reports: mode of 'key.pem' changed from 0660 (rw-rw----...
  • 980
75 votes
10 answers
325k views

How to completely uninstall/remove cygwin from Windows 7

How can I completely uninstall/remove cygwin? I don't think it is as simple as deleting C:\cygwin. Maybe alter registry?
64 votes
7 answers
31k views

Cygwin bash prompt is wrapping lines on the same line

I'm using Cygwin bash prompt, and for long commands the text will wrap around on the same line as opposed to going to the next line despite setting my PS1 to simply ' $'. Here's a screenshot,
  • 1,112
63 votes
6 answers
109k views

How can I use SSH with a SOCKS 5 proxy?

I have a SOCKS5 proxy set up through PuTTY with port 7777 configured as a dynamic port. I can use firefox/filezilla/etc by configuring them to use a SOCKS proxy with localhost and port 7777. But I ...
62 votes
4 answers
55k views

How to go to remote directory in Cygwin?

I'm using the latest version of Cygwin to try to cd into a network drive on Windows XP Pro Service Pack 3. The path in Windows Explorer to this directory is something like: \\myserver\photos\original ...
  • 995
59 votes
5 answers
35k views

How can I get a block cursor in Vim in the Cygwin terminal?

I am used to having a block cursor in normal mode in Vim. This makes sense with the Vim paradigm; when you press x, it is clear which character will be deleted. I've installed Cygwin on a Windows ...
  • 3,389
55 votes
2 answers
33k views

What is the difference between Windows Subsystem for Linux (WSL), Cooperative Linux (coLinux), and Cygwin?

Did anybody still remember coLinux? I remember it is used for SpeedLinux and Portable Ubuntu some years ago. It's pretty clear what is coLinux doing, running Linux on top of Windows somehow, but can ...
47 votes
1 answer
59k views

Installing Cygwin packages from the command-line [duplicate]

Possible Duplicate: upgrading and installing packages through the cygwin command line? I'm looking for a "yum"-link method to install additional Cygwin packages from the command-line. Let's say I ...
  • 3,492
45 votes
9 answers
30k views

How to change the title of the mintty window?

MinTTY is the new default Console for Cygwin. What's a shell command (something I can put in .bashrc, or even better, in .zshrc) to change the title of the MinTTY window ? I'd like the title of the ...
  • 851
44 votes
9 answers
69k views

There's no 'sudo' command in Cygwin

Because there's no sudo command in Cygwin, scripts that I want to run fail with ./install.sh: line N: sudo: command not found What's the standard way for getting around this? Editing the scripts to ...
43 votes
6 answers
41k views

How do I configure ConEmu to run Cygwin Bash?

I created a new task {Bash} passed my home directory /dir "C:\Users\TMB\" and added bash as an application C:\cygwin\bin\bash.exe When I open Bash, it is unable to use the basic UNIX/...
  • 661
42 votes
13 answers
168k views

SSH key asking me for a passphrase?

I have a public/private key pair. Neither of them have any sort of passphrase associated with them. Whenever I try to ssh using either the private or public(and I'm pretty sure I should only be ...
  • 593
42 votes
5 answers
51k views

How do I change the default startup directory in Cygwin?

Whenever I start cygwin, I need to cd several levels down to the only directory that I care about when using cygwin. How can I get cygwin to start in this particular directory by default...i.e., ...
  • 884
40 votes
5 answers
67k views

Writing "tail -f" output to another file

As a continuation from my last post where I have used grep & tail -f to find occurences of "rare" events. I would like to record this in another file. I've tried turning tail -f log.txt | ...
  • 615
40 votes
7 answers
49k views

tmux/screen alternative for powershell

Is there an alternative to tmux/screen that would work on Windows with Powershell? I'm aware of Powerscreen, but it seems dead for a long time. Cygwin wouldn't work with Powershell, would it? Console2 ...
  • 627
39 votes
2 answers
107k views

WGET Command Not Working in Cygwin

I'm using Cygwin on Windows because some commands in Windows's CMD are not working but working on terminal of OS X and Linux. When I type the wget command and URL, it says command not found. Is there ...
35 votes
7 answers
36k views

zsh with Cygwin

How can I configure zsh to be the default shell under Cygwin?
  • 893
35 votes
6 answers
82k views

how to access different directories outside cygwin home dir

I have installed dropbox in my computer, but it is located outside my cygwin directory. The probably easiest way would be to just move the dropbox directory to cygwin's home dir. Anyway I wonder if it ...
  • 2,986
34 votes
5 answers
29k views

How to change the default shell in Cygwin?

I am trying to change my default shell from bash to zsh in cygwin. The normal unix command chsh isn't available on cygwin The etc/passwd file it seems isn't used anymore in existing versions of ...
34 votes
7 answers
33k views

Cygwin from Windows is very slow/ laggy

Suddenly all Cygwin commands I start from the Windows command line have a ~10-20 second lag before they execute, so that Cygwin becomes totally unusable. I already tried to reinstall without success. ...
  • 418
32 votes
8 answers
38k views

"Bad owner or permissions" error using Cygwin's ssh.exe

I'm trying to use ssh.exe in Cygwin (in Windows 7). I copied a config file into c:\cygwin\home\[USERNAME]\.ssh. When I run ssh (for example, ssh -vT git@bitbucket.org) I get the following error: ...
32 votes
4 answers
60k views

Is there a multi-tab terminal replacement for Cygwin's terminal? [duplicate]

Is there a multi-tab terminal replacement for Cygwin's terminal?
  • 543
31 votes
4 answers
23k views

Cygwin fatal error unable to remap.. What does it mean?

When running python in cygwin, I get the following error: 0 [main] python 6140 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\time.dll to same ...
  • 2,294
31 votes
6 answers
38k views

How to use Cygwin to copy an image from an SD memory card

Long story short, I'm working on a Windows 7 machine and I'd like to strip the image off an SD card (backing up the card from a Raspberry Pi). I'm trying to use Cygwin, but not having much success. ...
30 votes
2 answers
119k views

Where do I get make for cygwin?

I need binary file.
user avatar
30 votes
4 answers
70k views

Cygwin Dos2Unix Command not found

I am having some problems using cygwin. I am trying to use the dos2unix utility and cygwin is throwing -bash: dos2unix: command not found When I go back into the installer and look through the ...
  • 303
29 votes
12 answers
31k views

Backspace does not work in Cygwin

I just installed Cygwin and the BACKSPACE functionality is not there, i.e. when I hit the Backspace key, I get a space. I've been trying to research this issue on Google, but did not find anything ...
29 votes
2 answers
95k views

Install Vim in Cygwin

I have installed Cygwin on my Windows machine and I have also selected some additional packages as part of my installation (like GCC etc). Now I want to add Vim also to my existing Cygwin setup. What ...
28 votes
3 answers
29k views

How can I delete the cygwin folder on my c drive?

I have a folder called C:\cygwin. How can I delete this folder. It says I need permission from the administrator. However I am logged in as administrator.
26 votes
4 answers
21k views

How do I change the unreadable dark blue color Cygwin uses for directories?

I'd like to change the blue color that Cygwin uses for directories. It is too dark to read on most screens.
  • 373
25 votes
2 answers
20k views

Enable 256 colors for cygwin under mintty?

I am using cygwin via mintty, which is the default. I installed ncurses. I then run these commands to see what my color pallet is for this terminal session: $ tput colors 8 I have googled but so far ...
  • 3,712
25 votes
6 answers
25k views

top command in cygwin?

I am starting to use Cygwin(64) on my Windows 8 laptop, however, the top command is not recognized. I have read online that I need to get the procps package, but it is not available on the 'Cygwin ...
  • 1,394
24 votes
9 answers
37k views

How to kill a windows process in a cygwin terminal?

I have a problem regarding how to kill a process in Cygwin on Windows. I am completely new to Cygwin. But I have a task that I simply cant kill. I have tried issuing the following commands: kill 4568 ...
24 votes
2 answers
39k views

is there equivalent of rsync in MS powershell?

Rsync is very useful, I don't have to copy all files in a directory. It updates only the newer files. I use it with cygwin but I think there are some inconsistencies, which are not the main focus of ...
  • 1,288
23 votes
9 answers
88k views

Get display resolution from windows command line

I have seen several suggestions about programs to change the resolution from the command line. However I just want to display it, not change it. On linux I can use xrandr or xdpyinfo to get this ...
  • 478
22 votes
4 answers
8k views

Pdf viewer that handles live updating of pdf/doesn't lock the file

I'm working on a latex document (with pdflatex, cygwin, acrobat reader) and I'm am tired of the make - close - open process. On osx with Preview I don't have that problem, since I can compile the ....
  • 449
21 votes
7 answers
35k views

"unable to get setup.ini" error during Cygwin installation

While installing cygwin I'm getting the following error unable to get setup.ini What is the reason? I'm newly studying Unix. So Please guide me in this.
user avatar
21 votes
7 answers
40k views

ssh config under cygwin

I have Cygwin installed on Windows 7. I made default install. I would like to use ssh config file (~/.ssh/config) to set host and options for connecting. Normal ssh command is not able to find the ...
  • 323
20 votes
2 answers
4k views

Which ping implementation is Cygwin using?

What is the source of the implementation of ping is Cygwin using? It apparently isn't GNU ping (because in GNU ping, the number of pings to send is decided with -c X, while in Cygwin ping, it's ...
20 votes
4 answers
17k views

how to install gpg on cygwin? currently it's missing

I have cygwin installed on Win 7 but can't see gpg in /usr/bin/.. is this normal? How can i get it? I am trying to verify a linux ISO and need this to check the signature file.
  • 599
19 votes
4 answers
69k views

Print current time (with milliseconds)

I want this command in windows with cygwin installed, so any Linux command will work for me.
  • 1
19 votes
6 answers
9k views

How to check if cygwin mintty/bash is run as administrator?

Problem Statement: What is the most elegant and robust way to test if Cygwin mintty bash session is "Run as adminstrator"? Why, specifically? I have typically several mintty terminals open when using ...
  • 451
19 votes
6 answers
20k views

How can I tell when I logged into Windows?

On UNIX I can tell when I logged in and out of my workstation with the last command. Is there a way to get the same information on my Windows workstation? I notice that Cygwin has a last command, ...
  • 2,633
19 votes
6 answers
29k views

Change Cygwin Prompt

The default cygwin prompt of "user@computer path \n $" is too long for me. I would like to keep the path. I want it to become: path $ Is there a config file I can modify to do this?
  • 353
19 votes
7 answers
28k views

Use Notepad++ from Cygwin without having the shell wait for an exit code

I'm running Cygwin and would like to use Notepad++ as the main shell editor, kind of like what I have on my Mac, where I can type mate whatever to open up an instance of TextMate. In my ~/.bashrc file ...
  • 2,309
19 votes
3 answers
8k views

C-x C-c not working in Emacs 23.1

I am using Emacs 23.1 with Cygwin but when I try to exit by pressing C-x C-c it says C-x C-g is undefined and I am not able to exit.
user avatar

1
2 3 4 5
35