在 Cygwin 中创建文件
我知道这是一个基本问题,但我刚刚开始使用 Cygwin,并且通常在创建新的 C 文件和新文件时遇到问题。我尝试了 cygstart filename.c ,但它一直说“找不到文件”。
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".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只想要一个空文件
foo.c
,那么touch foo.c
。尽管如果您想在文本编辑器中编辑它,通常不必事先创建新文件。例如,您可以只说
emacs foo.c
或vim foo.c
,即使foo.c
尚不存在。当然,这是假设您在 Cygwin 中安装了emacs
或vim
软件包。If you just want an empty file
foo.c
, thentouch 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
orvim foo.c
, even iffoo.c
doesn't exist yet. This is assuming you have theemacs
orvim
packages installed in Cygwin, of course.