操作系统是Ubuntu。我想在/home/z/Desktop中创建file.txt,其中文件的内容是some text here。 第一种常用的方法是运行nano /home/z/Desktop/file.txt和some text here。之后,按ctrl+x,按y,然后按Enter。 第二种方式运行cat > /home/z/Desktop/file.txt,类型some text here
我在服务器上通过ssh使用nano;在该系统上,nano默认情况下没有启用语法颜色。所以我复制这些文件nanosyntax(替代,也见@CraigBarnes' answer)在服务器上,并设立~/.nanorc为: include "~/nanosyntax/syntax-nanorc/php.nanorc"
include "~/nanosyntax/syntax-nanorc/php2.n