连按几次方向上键,直到当前的命令变成 echo hello > hello_file,然后回车。这时,运行 cat hello_file 还会得到 hello,说明 > 会先把原来的内容清除,然后再写入。如果想要保留原来的内容,运行: