Linux-like environment for Windows making it possible to port software running on POSIX systems (such as Linux, BSD, and Unix systems) to Windows.

learn more… | top users | synonyms

0
votes
0answers
36 views

why does cygwin and putty write a tilde on its own? [on hold]

I would like to know how can I stop cygwin and putty writing a tilde on its own. When I use vim with these programs on windows 7 I get this annoying tilde written.
1
vote
4answers
4k views

Trouble with read line script in Cygwin

I'm on windows 7 using Cygwin. My script and text file are located in the same directory. #!/bin/bash while read name; do echo "Name read from file - $name" done < /home/Matt/servers.txt I get ...
10
votes
3answers
3k views

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?
3
votes
1answer
869 views

understand the output of stty -a and change ctrl backspace to just backspace

I am working in bash shell on a Solaris environment and whenever I type "backspace" it clears out the entire line. Do you have any suggestions for me to change the backspace clearing entire line to ...
0
votes
0answers
58 views

Does grep “-n” option change the number of the lines depending on the regex search? [on hold]

I've been working with grep on cygwin and I need the line number of a pattern; so if I write: grep -P -a -nh -i -- "ELEVATION|(\d+(\s+)?(FEET|FEETS|FT|METER|METERS))" * one of the outputs is this: ...
0
votes
0answers
11 views

Send-keys across tmux panes in vim in Cygwin is painfully slow

I am using vimux or vim-tbone to send code to an interpreter in another pane. It works fine with any shell, but I can't get it to work properly in windows. I can't have a VM, so I use cygwin at work ...
1
vote
0answers
20 views

Following the move of the source code from the AT&T repo to Github, has anyone built ksh93, AST, or UWIN from it, on a Cygwin platform? [closed]

Following the move of the source code from the AT&T repo to Github, has anyone built ksh93, AST, or UWIN from it, on a Cygwin platform? I refer to another thread on this forum: Is the shell ...
0
votes
1answer
30 views

Cygwin - tail stops reading input pipe after first write

I have the following script to run my application in Ubuntu with redirecting its input (where $in is named pipe which is used to send text lines to stdin). tail -f "$in" | "$app_bin" $app_args & ...
0
votes
1answer
31 views

Showing color in log output using tail command when using Cygwin?

I have a debian install that runs an application server. I ssh into this debian install from a Windows computer using cygwin and with the application server running I use tail -f to monitor the log ...
0
votes
2answers
4k views

Failed to connect to dl.google.com port 443: Network is unreachable

$ curl -v https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash * STATE: INIT => CONNECT handle 0x2001f130; line 1011 (connection #-5000) * Hostname was NOT found in DNS ...
1
vote
1answer
36 views

How to organize files in Linux/Unix shell?

I would like to try to organize my documents, and I was told that I can do this using the linux/unix cygwin terminal. I searched for the command in google but all I ever did find was organizing the ...
6
votes
2answers
123 views

Strange environment variable !::=::\ in Cygwin

Using Cygwin, I installed Environment Modules by downloading source code, running configure, make, and make install. Every time I run a module command, I get: init.c(718):WARN:165: Cannot set TCL ...
0
votes
1answer
2k views

Changing title without changing prompt on Cygwin

I have the following shell script function from this site that allows me to change the title in both Putty and Cygwin. In Putty connected to a Linux host it changes the title and leaves the prompt as ...
1
vote
0answers
31 views

Xrandr doesn't scale screen under Cygwin/X and Xming

The preamble: I have a very specific remote X client, that needs fixed resolution. 1280x1024, to say. And my notebook has 1440x900. And Windows aboard. So, the idea is to scale the output of the ...
16
votes
9answers
32k views

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 ...
0
votes
0answers
22 views

find and copy files change the modified date to 1980-1-1

I use command to find and copy files in cygwin in windows . My command is find -name '*.docx' -exec cp -p -t /word {} + however , when the files is copied to destination folder, I can see the ...
3
votes
2answers
242 views

Why does insert-mode map “<F4>” unpredictably inserts itself or executes intended key strokes?

In Vim 7.3.1-762, mintty 1.1.2 (xterm), cygwin, Windows XP, the insert-mode map <F4> executes the intended key strokes at one time but inserts itself at another time. This undeterministic ...
21
votes
7answers
17k views

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. ...
0
votes
0answers
27 views

Trying to run hadoop 2.7.1; localhost refused to connect

I'm trying to use hadoop (2.7.1) for the first time using cygwin on win 8. I followed the configuration and i think every thing is well. However when i issue sbin/start-all.sh, i get the following ...
3
votes
1answer
56 views

Remove files with match only from some subdirectories

I have a directory with several subdirectories; in each of these, I have some files. I want to perform a grep only for some subdirectories to find those files that match the query and remove them; ...
2
votes
0answers
117 views

Cygwin/X DISPLAY number no longer :0?

I use Cygwin/X to ssh into a linux computer cluster using a Windows (10) pc. Yesterday I was in the middle of an ssh session using X11 forwarding. Suddenly one of the X windows open started to hang ...
0
votes
2answers
60 views

Running JAVA in Cygwin through bash script

I've been encountering a problem with cygwin where I cannot run a jar file with an error that the file cannot be found. If it were easier i would "translate" the java source in bash, but ...
0
votes
0answers
17 views

How to launch a command on external machine on Windows Cygwin [duplicate]

Suppose, we have 2 local machines: Linux and Windows with Cygwin. We have an external server, that exists in ~/.ssh/config file on both machines: Host beta HostName <server IP> User ...
0
votes
2answers
439 views

gtags for cygwin

This might be a silly question, and hopefully it's not off-topic, but I can't figure out where else to ask. Is gtags available for cygwin? I'm using ctags but it'd be nice to have all the extra ...
0
votes
1answer
74 views

Where is the Cygwin NFS Server?

Apparently Cygwin is meant to include an NFS server component. But, having tried numerous sources from the available list (when running Cygwin's Setup.exe) I cannot find the NFS Server anywhere. Is it ...
2
votes
2answers
46 views

How to recover multiple files which has been moved into one?

I was trying to rename (mv) few of my files and ran a wrong loop resulting into renaming all the 10 files into one. Now I can see only one file whereas there should have been ten files. How do I ...
0
votes
1answer
39 views

Cygwin - Email - New Line (Carriage Return) (How to)

Am stuck, and on something really stupid. using Cygwin on Windows 8, Quick Bash script to search server for files modified in the past 120 days: Run once a week as a Cron job, But i cannot format ...
0
votes
1answer
551 views

Running Docker under Windows/cygwin environment

I'm not sure if this is the right community to ask about my problem as I'm actually trying to launch docker within cygwin environment on windows. After Docker Toolbox install I'm trying to launch ...
3
votes
1answer
358 views

How to hide files from Bash? [closed]

On the Git Bash shell on Windows, I'm stuck looking at crap left by Windows in my home directory: NTUSER.DAT NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TM.blf ...
0
votes
0answers
45 views

All Cygwin packages installed but can't run GDB

I have installed all of the Cygwin packages but when I try to launch my executable file by typing this into the terminal $ gdb ./a.exe I get the following message: -bash: gdb: command not found ...
7
votes
3answers
6k views

A terminal emulator for CygWin?

I have: Windows 7 CygWin A development board connected to COM1 port. I need: Connect to its serial port from CygWin. If I used Linux I would run a program like picocom or minicom. Also in ...
0
votes
0answers
50 views

cygwin ssh not working

I installed cygwin on Windows 7 and trying to test SSH to local host but getting the connection refused and stdin is not a terminal error: Here is the detailed log: $ ssh -vvv localhost ...
1
vote
1answer
18 views

How can I find .git repositories and pull'em all?

I tried. $ find . -name .git -type d -execdir git pull {}; find: The relative path ‘%ANDROID_HOME%/tools’ is included in the PATH environment variable, which is insecure in combination with the ...
1
vote
1answer
34 views

Why do different installations of sort sort punctuation differently?

I got a file with content like this: ----------- =========== -------- -=-=-=-=-=- When I sort in a linux os, it comes like this: $ sort 1.txt =========== -=-=-=-=-=- -------- ----------- ...
0
votes
1answer
58 views

Vim Powerline is only working when 2 buffers are open

I'm having some trouble with the Vim Powerline plugin. I've installed it but it is only working when I have two buffers open. Below are pictures describing the issue visually as well as my .vimrc. ...
0
votes
0answers
18 views

How to execute shell script in remote windows machine [duplicate]

I have a shell script which will be useful to download the jars from ftp and copy it in a particular location and do some deployment stuffs.. I need to run the script in remote Linux and windows ...
1
vote
2answers
179 views

cygwin and pdftk

I have spent a long time looking around and Goggling for this but I am no closer to getting this install. I have Cygwin install 64-bit version. And have installed apt-cyg and using this I have ...
1
vote
1answer
76 views

scons can't find glib-2.0 >= 2.32 on cygwin

I downloaded the source for rmlint and am trying to compile it on cygwin. When I run scons, it says Checking for glib-2.0 >= 2.32... Error: glib-2.0 >= 2.32 not found. In the cygwin setup ...
0
votes
0answers
63 views

Cygwin X seems to have messed up my Xming connection to my X-server

Yesterday I played around with Cygwin and ended up installing Cygwin/X on my local machine. I had a bunch of Xming shortcuts to a remote machine where I would launch applications with remote desktop. ...
0
votes
2answers
18 views

Running script in cygwin enviroment

I'm using this code: numbzip=`ls *.plt.zip | wc -l` &>/dev/null and trying to get rid of the output in the command window. No files ending on .plt.zip exist so it comes back with: ls: ...
4
votes
2answers
3k views

Is dpkg available for Cygwin?

I don't use Windows all that often, but I've found my self in a position where I'm stuck in front of one quite a bit temporarily. So I've been investigating Cygwin. My question is dpkg available for ...
2
votes
1answer
101 views

Creating a symlink with a colon in the name on cygwin bash

I'm using bash, version 4.3.42(4)-release (i686-pc-cygwin) on cygwin. I want to create a symlink C: -> /cygdrive because a vagrant build process has that file path specified. The vagrant script has ...
3
votes
2answers
20k views

How to exit file reading mode in linux terminal?

I appologize if its something really stupid i am asking. But this is my first day on linux commands infact I dotn have linux right now I have just installed CYGWIN for my learning. SO my question is ...
1
vote
1answer
30 views

Connect Symbolic Link to program or script that returns a file

I wanted to know if I can make a symlink to a file say in a Database. This is a wild guess, but is it possible to intercept the link-follow say using a C function and then let function return the ...
1
vote
2answers
409 views

Error when running TMUX under CYGWIN

When I run tmux in cygwin command line I get the error: $ tmux 0 [main] tmux 6688 C:\cygwin64\bin\tmux.exe: *** fatal error - NtCreateEvent(lock): 0xC0000077 Hangup I tried to reinstall tmux ...
0
votes
0answers
57 views

Please suggest a music player for cygwin under windows

I have installed cygwin on windows 7. I would like to find a music player for cygwin. However, I am not able to find any on cygwin package. Can you suggest a music player?
0
votes
0answers
97 views

profiling cannot open gcda file

I am compiling file UT_test.c and linking my file using gcc on cygwin environment using flags -fprofile-arcs -ftest-coverage. The objects and gcno are created at location ...
0
votes
2answers
35 views

AWK Using a Variable in an Equality Expression

A simplified version of my code looks like the following: declare -a DMN=(" " "200" "190" "180") NRL=3 runDHFiles() { awk 'NR>13 {if ($4==$DMN[$i]) print $1, $2, $3, $4;}' domain_all.dat >> ...
0
votes
0answers
23 views

yaffs2utils compile error in cygwin

I am trying to make yaffs2utils in cygwin and I have error below: gcc -I. -I./yaffs2 -O2 -Wall -Wshadow -Winline -Wpointer-arith -Wnested-externs -Wwrite-strings -Wstrict-prototypes ...
1
vote
1answer
55 views

Curl or Lynx: stripping Javascript possible?

I am doing corpus generation through curl or lynx of some web pages. I have written a program in bash to strip away the html code (e.g., when I do lynx -source myurl), but the problem is that some ...