如何防止意外overwrite一個檔案 - Linux
By Steve
at 2009-11-03T10:05
at 2009-11-03T10:05
Table of Contents
昨天發生了一個慘劇,
我有a.c b.c兩個檔案 想compile成main執行檔
然後我下 gcc -o a.c b.c
忘記打main 所以gcc就把a.c檔覆蓋掉了
寫了一個禮拜的code就這樣沒了...QQ
想請問有沒有辦法在檔案會被overwrite以前,
會像rm -i一樣 會先詢問過user在動作呢?
謝謝
--
我有a.c b.c兩個檔案 想compile成main執行檔
然後我下 gcc -o a.c b.c
忘記打main 所以gcc就把a.c檔覆蓋掉了
寫了一個禮拜的code就這樣沒了...QQ
想請問有沒有辦法在檔案會被overwrite以前,
會像rm -i一樣 會先詢問過user在動作呢?
謝謝
--
Tags:
Linux
All Comments
By Caroline
at 2009-11-07T17:29
at 2009-11-07T17:29
By Sandy
at 2009-11-09T05:03
at 2009-11-09T05:03
By Selena
at 2009-11-12T17:29
at 2009-11-12T17:29
By Daniel
at 2009-11-16T19:22
at 2009-11-16T19:22
By Jacob
at 2009-11-18T22:12
at 2009-11-18T22:12
By Todd Johnson
at 2009-11-19T03:00
at 2009-11-19T03:00
By Zenobia
at 2009-11-22T23:49
at 2009-11-22T23:49
Related Posts
Ubuntu 9.10 Firefox 3.5.3
By Ida
at 2009-11-03T09:04
at 2009-11-03T09:04
GUI Framework
By Puput
at 2009-11-03T08:38
at 2009-11-03T08:38
安裝kernel header
By Quanna
at 2009-11-03T00:59
at 2009-11-03T00:59
Ubuntu 9.10 雙螢幕設定 xorg.conf
By Noah
at 2009-11-02T21:24
at 2009-11-02T21:24
google chrome dev channel
By Connor
at 2009-11-02T20:52
at 2009-11-02T20:52