Linux命令之清空当前文件

vi进入文件

英文状态下按下  / 

输入  %d

执行

清空当前文件

over!O(∩_∩)O哈哈~

let the world have no hard-to-write code ^-^
原文地址:https://www.cnblogs.com/ovim/p/10729641.html