user1133324
user1133324

Reputation: 143

How to open non text files in Cygwin?

I am trying to open image files, pdf files and music files using Cygwin, a terminal that provides Linux functionality in Windows. So far I have not successfully executed a command that would accomplish what I want. I can only open text files at this moment using vim text editor.

Edit: Thanks for the comments. I am looking to open files using appropriate windows applications. Also, I do not know how I can figure out whether XServer is already installed and why would I need XServer to resolve my issue in the first place.

Upvotes: 2

Views: 1884

Answers (1)

andrewdotn
andrewdotn

Reputation: 34873

Use the cygstart utility, e.g.,

cygstart foo.bmp

will open up the image file in Paint.

It’s in the cygutils package, which I believe is installed by default. It has a man page that shows that you can use it to open URLs in your browser, among other things.

Upvotes: 4

Related Questions