触摸.env会赢得工作,触摸任何东西。
标题几乎总结了这个问题,我试图通过在CLI中运行touch .env
在部署的EC2实例上创建.ENV文件。该命令返回没有错误,表明它创建了文件,但是我不能cd
中,并且当我运行ls
时不会出现。 如果我尝试任何不是.env文件的东西,那就可以了,那么什么给出了?
The Title pretty much sums this issue up, I am trying to create an .env file on my deployed EC2 instance by running touch .env
in the CLI for the deployment. The command returns no errors, indicating it created the file, but I cannot cd
into it, and it does not appear when I run ls
.
It works totally fine if I try anything that isn't an .env file, so what gives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
touch
用于创建空文件,或更新现有文件的访问和修改时间。CD
用于更改为目录。不要尝试将CD
进入文件,因为这永远无法使用。ls
没有-a
没有显示以。
字符开头的任何文件。尝试
LS -A
查看是否存在.env
文件。touch
is for creating an empty file, or updating the access and modification times of an existing file.cd
is for changing to a directory. Don't try tocd
into a file, because that is never going to work.ls
without-a
does not show any files that start with a.
character.Try
ls -a
to see if the.env
file exists.