Creating Files in Cygwin

I know this is a basic question, but I just started using Cygwin and I'm having trouble creating new C files and new files in general. I tried cygstart filename.c and it kept saying "file not found".

0

1 Answer

If you just want an empty file foo.c, then touch foo.c.

Although if you want to edit it in a text editor, you generally don't have to create a new file beforehand. For example, you could just say emacs foo.c or vim foo.c, even if foo.c doesn't exist yet. This is assuming you have the emacs or vim packages installed in Cygwin, of course.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest