跟下一条语句没有关系, > /your/file 的效果是把文件清空, FYI:
复制内容到剪贴板
代码:
[dearvoid@LinuxEden:tty3 ~/tmp] # l file
-rw-r--r-- 1 root root 4385 2007-08-17 10:52 file
[dearvoid@LinuxEden:tty3 ~/tmp] # > file ; l file
-rw-r--r-- 1 root root 0 2007-08-17 10:52 file
[dearvoid@LinuxEden:tty3 ~/tmp] # echo > file ; l file
-rw-r--r-- 1 root root 1 2007-08-17 10:52 file
[dearvoid@LinuxEden:tty3 ~/tmp] # echo -n > file ; l file
-rw-r--r-- 1 root root 0 2007-08-17 10:52 file
[dearvoid@LinuxEden:tty3 ~/tmp] # o