Skip to main content

Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
203 votes
9 answers
433k 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 ...
Mulone's user avatar
  • 2,203
124 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 ...
Tom's user avatar
  • 3,614
121 votes
10 answers
89k 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 ...
Jared's user avatar
  • 2,275
83 votes
10 answers
101k 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 ...
Pavel Vlasov's user avatar
  • 1,741
79 votes
7 answers
42k 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----...
Castaa's user avatar
  • 980
78 votes
10 answers
335k 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?
Mohit Deshpande's user avatar
68 votes
6 answers
132k 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 ...
Rusty Lemur's user avatar
65 votes
7 answers
32k 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,
wting's user avatar
  • 1,132
63 votes
4 answers
57k 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 ...
daveslab's user avatar
  • 1,005
63 votes
2 answers
38k 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 ...
Rinaldo Jonathan's user avatar
59 votes
5 answers
37k 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 ...
Kazark's user avatar
  • 3,479
48 votes
1 answer
61k 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 ...
knorv's user avatar
  • 3,512
46 votes
9 answers
31k 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 ...
Leonel's user avatar
  • 861
46 votes
7 answers
70k 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 ...
sumek's user avatar
  • 697
44 votes
9 answers
71k 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 ...
Jason Sundram's user avatar
43 votes
13 answers
194k 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 ...
llaskin's user avatar
  • 603
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/...
TMB's user avatar
  • 671
43 votes
5 answers
54k 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., ...
Matt's user avatar
  • 904
41 votes
5 answers
73k 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 | ...
Mike's user avatar
  • 635
40 votes
2 answers
114k 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 ...
Shamal Sandeep's user avatar
36 votes
5 answers
31k 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 ...
gyaani_guy's user avatar
35 votes
7 answers
37k views

zsh with Cygwin

How can I configure zsh to be the default shell under Cygwin?
simao's user avatar
  • 903
35 votes
6 answers
86k 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 ...
starcorn's user avatar
  • 3,246
35 votes
7 answers
37k 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. ...
85fce's user avatar
  • 428
33 votes
8 answers
42k 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 [email protected]) I get the following error: ...
Rebecca Scott's user avatar
32 votes
6 answers
40k 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. ...
GrandAdmiral's user avatar
32 votes
4 answers
62k views

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

Is there a multi-tab terminal replacement for Cygwin's terminal?
Randomize's user avatar
  • 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 ...
Jon Erickson's user avatar
  • 2,304
31 votes
3 answers
100k 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 ...
user496934's user avatar
30 votes
2 answers
122k views

Where do I get make for cygwin?

I need binary file.
user avatar
30 votes
4 answers
74k 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 ...
Nolski's user avatar
  • 303
29 votes
3 answers
31k 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.
Snuff Movie's user avatar
29 votes
12 answers
32k 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 ...
user620189's user avatar
28 votes
9 answers
106k 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 ...
Zitrax's user avatar
  • 535
27 votes
3 answers
49k 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 ...
kirill_igum's user avatar
  • 1,318
26 votes
9 answers
39k 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 ...
user1093774's user avatar
26 votes
6 answers
26k 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 ...
drjrm3's user avatar
  • 1,506
26 votes
4 answers
22k 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.
axiomx11's user avatar
  • 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 ...
Zombies's user avatar
  • 3,892
25 votes
5 answers
10k 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 ....
mike's user avatar
  • 479
21 votes
5 answers
18k 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.
Alex's user avatar
  • 609
21 votes
7 answers
36k 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
3 answers
42k views

When trying to connect remote clients to Cygwin/X, I get 'Authorization required, but no authorization protocol specified'

I just installed Cygwin/X and I launch it with startxwin -- -listen tcp to allow remote clients to connect to it through tcp. However, remote clients fail to connect to the remote display with the ...
qwertzguy's user avatar
  • 2,604
21 votes
7 answers
42k 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 ...
Hubidubi's user avatar
  • 323
21 votes
4 answers
22k views

Can git-bash and cygwin shell do the same things?

On Windows 10, can git-bash and cygwin shell do the same things? What can one do but the other can't? For example, As shells, can they both work the same as bash? What programs and commands can run ...
Tim's user avatar
  • 17.3k
20 votes
4 answers
81k views

Print current time (with milliseconds)

I want this command in windows with cygwin installed, so any Linux command will work for me.
Val's user avatar
  • 6,215
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 ...
hanshenrik's user avatar
  • 1,735
20 votes
6 answers
10k 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 ...
FooF's user avatar
  • 461
20 votes
6 answers
24k 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, ...
skiphoppy's user avatar
  • 2,743
19 votes
6 answers
30k 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?
Cristian's user avatar
  • 353

1
2 3 4 5
36