如何在 Heroku bash 中为新手查看和编辑文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26765327/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to view and edit files in Heroku bash for noobs?
提问by Sashko Lykhenko
I found cat
and ed
but they are too tough for me to use. Precisely, cat
does not view big files whole and ed
is a single line one! Are there any more ubuntu (humanistic) tools in Heroku bash?
我找到了cat
,ed
但它们对我来说太难用了。确切地说,cat
不查看整个大文件并且ed
是单行文件!Heroku bash 中是否还有更多 ubuntu(人文)工具?
回答by rdegges
You should not be using Heroku to view or edit files directly -- Heroku will delete the files you're working on randomly, THEY WILL NEVER BE SAVED!
你不应该直接使用 Heroku 来查看或编辑文件——Heroku 会随机删除你正在处理的文件,它们永远不会被保存!
If you'd like to work on a terminal session, you should instead look at renting a ubuntu server from a company like DigitalOceanor Amazonwho specialize in this sort of thing -- or, just install a proper terminal client on your computer.
如果您想在终端会话上工作,您应该考虑从DigitalOcean或Amazon 等专门从事此类事情的公司租用 ubuntu 服务器——或者,只需在您的计算机上安装一个合适的终端客户端。