Citation
La fonction ln n'efface pas de fichier (pour effacer c'est "rm")
[michel@localhost test.d2]$ ls -l *
-rw-r----- 1 michel michel 18 mar 31 18:40 info
-rw-r--r-- 1 michel michel 66 mar 31 18:42 informations
lrwxrwxrwx 1 michel michel 12 mar 31 18:45 news -> informations
[michel@localhost test.d2]$ ln -s info news
ln: `news': fichier existant.
[michel@localhost test.d2]$ ln -sf info news
[michel@localhost test.d2]$ ls -l *
-rw-r----- 1 michel michel 18 mar 31 18:40 info
-rw-r--r-- 1 michel michel 66 mar 31 18:42 informations
lrwxrwxrwx 1 michel michel 4 mar 31 18:46 news -> info
le fichier news a bien été supprimé et remplacé par un autre.
Poste le Thursday 31 March 2005 18:47:41