linux系统,没有安装任何编辑器的情况,如何操作文件

【清空文件】

echo  " " > filename

【添加内容】

echo "123" >> filename

猜你喜欢

转载自www.cnblogs.com/lishidefengchen/p/13172964.html