Linux-like environment for Windows making it possible to port software running on POSIX systems (such as Gnu/Linux, BSD, and UNIX systems) to Windows.
Questions tagged [cygwin]
370 questions
79
votes
4 answers
Cygwin has no watch command?
I installed Cygwin on my Windows XP to use some of its commands. Now I what to check a file every 2 minutes and want to use watch for this purpose but I see that Cygwin has no such command. Is this really true? what can I do instead?
ethan
- 819
- 1
- 7
- 6
51
votes
3 answers
How to exit file reading mode (in `less`) in Linux terminal?
I have just installed Cygwin, and I have displayed a file's contents using the less command. Now I am unable to exit that in order to type other commands:
I want to exit this mode to type some other commands. How can I do that?
Elvin
- 851
- 2
- 8
- 9
46
votes
5 answers
How do I get rid of Cygwin's /cygdrive prefix in all paths?
I'm switching to Cygwin from the bash shell that ships with Git for Windows, and encountering a strange problem. Someone thought it would be a good idea to add /cygdrive/ to all paths, while I think it's a horribly ugly idea. I've been able to…
iconoclast
- 9,057
- 12
- 56
- 95
37
votes
2 answers
How to alter PATH within a shell script?
I have several projects that require me to change versions of Java/Grails/Maven. I'm trying to handle this with some scripts that would make the changes. For example:
#!/bin/sh
export JAVA_HOME=/cygdrive/c/dev/Java/jdk1.5.0_22
export…
Eric Wilson
- 4,622
- 9
- 32
- 43
31
votes
7 answers
Cygwin on Windows: Can't open display
I am running Windows 10 on my Surface Pro 3. I installed Cygwin and also added some useful packages (gvim, nedit, emacs, vim, g++). However, when I run gvim, I get "Can't open display". The same thing happens with nedit. When I did echo $DISPLAY, I…
John
- 311
- 1
- 3
- 3
29
votes
7 answers
Are cygwin vim commands different than normal vim?
I am unable to edit text files using vim in cygwin.
I have to press i many times to insert text. Sometimes it works and sometimes doesn't. Whenever I move cursor up down I have to press I many times.
What could be the problem? Does backspace work in…
Mirage
- 1,537
- 7
- 19
- 19
28
votes
5 answers
why won't x11 display work through ssh login?
I have logged in to a remote server and am trying to display an x application(e.g. firefox). but an error message appears. the below are my attempts to open firefox
Black@Black-PC ~
$ ssh -X kwagjj@$labserver -p 122
[kwagjj@James5 ~]$ firefox
Error:…
kwagjj
- 2,309
- 6
- 22
- 29
24
votes
1 answer
Why is vim creating files with DOS line endings?
I have
set fileformat=unix
in my .vimrc, and yet if I create a file in vim (running in Cygwin) it persists in creating DOS-format files, and I have to run them through dos2unix to clean them. (I guess I don't really have to, since Git cleans them…
iconoclast
- 9,057
- 12
- 56
- 95
22
votes
10 answers
Best way to use a shell with Cygwin in Windows 7
I installed Cygwin, to be disappointed that bash by default runs within "cmd.exe". I googled around and found Console2. It's not a particularly well-designed application, as doing adjustments is slightly painful, although most of the time it works…
T.K.
- 634
- 2
- 5
- 12
18
votes
1 answer
Is cygwin like wine, but for linux applications?
Does cygwin work line wine, providing a compatibility layer inside a foreign os?
richzilla
- 281
- 2
- 4
18
votes
3 answers
How can I set up Cygwin to automatically update and download without the GUI?
How can I set up Cygwin to automatically update itself?
How can I get Cygwin to download a package without having to go via the GUI thing?
delete
18
votes
6 answers
Stopping output from a program run in SSH session NOW
Problem
I execute command that outputs LOTS of information through SSH. For example, I foolishly add debug information inside a loop that executes million times, or just run cat /dev/urandom for kicks.
The terminal is flooded with information.
I…
rr-
- 983
- 1
- 8
- 16
17
votes
5 answers
find command in cygwin giving parameter format not correct
I am using cygwin in my windows machine. I am trying to do a find and it is giving parameter format not correct. Why is that?
$…
user14039
17
votes
5 answers
Command-line tool to search docx files
Is there a command-line tool to text-search a docx file? I tried grep, but it doesn't work with docx even though it works fine with txt and xml files. I could convert the docx to txt first, but I'd prefer a tool that operates directly on docx files.…
RoundPi
- 271
- 1
- 2
- 5
17
votes
3 answers
How to get traceroute on cygwin?
The implementation of traceroute(tracert) differs on Windows and Unix. I wanted to compare both with Wireshark. I am on Windows 7 now and I wanted to get Unix traceroute implementation quickly.
My first idea was to get it using MSYS or Cygwin. I…
Kirill
- 985
- 3
- 10
- 20