[英]How can I backspace while writing to a text file using “cat > text.txt”?
Is there a way to use backspace when typing in to a text file through terminal using this command: 使用以下命令通过终端输入文本文件时,是否可以使用退格键:
cat > text.txt
Or is there a better command to use other than cat
to type into a txt file? 或者,除了
cat
以外,还有其他更好的命令可以用来输入txt文件吗?
echo "Whatever text incl. special chars" > text file.txt
From comment you posted below your question you mention: 从您在问题下方提到的评论中提及:
is there a way i can get the terminal window to act like a basic text editor?
有没有办法让终端窗口像基本的文本编辑器一样工作?
If that's what you want why not use vim/nano/emacs? 如果那是您想要的,为什么不使用vim / nano / emacs? There are plenty console text editors with surprising amount of advanced functionality in many cases ( quite often more than GUI editors )
在许多情况下,有很多控制台文本编辑器具有令人惊讶的高级功能( 通常比GUI编辑器更多 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.