CSDN博客

img Lu_ming

2008 September 2nd Tuesday (九月 二日 火曜日)

发表于2008/10/1 15:11:00  341人阅读

   Yesterday, my a workmate wrote a script to delete some temporary files.  There is an important sentence,
"rm -rf /var/trn_data/*".  However, the sentence was turned to a horrible mistake due to his igorance.  It
was finally "rm -rf /var/trn_data /*".  Yeah, a space.  The space changed the original semantic, it means
the root directory will be delete mandatorily.
0 0

相关博文

我的热门文章

img
取 消
img