[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: suprimer un fichier fantôme



bernard.schoenacker@free.fr a écrit :
bonjour,

je souhaite nettoyer un fichier fantôme comportant
des caractères particuliers

/usr/share/doc/console-tools/examples% ls
ls: ?Ö¬?Ö?: Aucun fichier ou répertoire de ce type

comment le nettoyer, en effet rm -rf du répertoire n'a
aucune efficacité du fait qu'il me refuse les droits
même en étant root


slt
bernard



Ça m'a l'air normal , regarde chez moi :

michel@Ariane:/usr/share/doc/console-tools/examples$ ll
total 116
drwxr-xr-x 3 root root  4096 2006-12-30 15:05 .
drwxr-xr-x 6 root root  4096 2006-12-30 15:05 ..
-rw-r--r-- 1 root root   295 1999-04-08 23:29 ??
-rw-r--r-- 1 root root   843 2006-09-05 18:37 README.strange-name
-rw-r--r-- 1 root root  1152 1999-04-08 23:29 sample.rc
drwxr-xr-x 2 root root  4096 2006-12-30 15:05 screenmaps
-rw-r--r-- 1 root root   944 1999-04-08 23:29 spawn_console.c
-rw-r--r-- 1 root root   934 1999-04-08 23:29 spawn_login.c
-rw-r--r-- 1 root root  1619 1999-04-08 23:29 utflist.cp437.gz
-rw-r--r-- 1 root root 63717 1999-10-25 22:21 utflist.long.gz
-rw-r--r-- 1 root root 10130 1999-04-08 23:29 utflist.short.gz
michel@Ariane:/usr/share/doc/console-tools/examples$

et maintenant voyons ce README :

michel@Ariane:/usr/share/doc/console-tools/examples$
cat README.strange-name

The file with a strange name in this directory is no mistake.
It shows that Linux handles filenames in Unicode (UTF-8)
without ever realizing that they are in Unicode.
[However, some old tar's are unhappy with this filename.]

If you want to see it (the filename consists of two musical notes):
% consolechars --default-font   # load PC font, just to be sure
% echo -e '\033%8'      # set Unicode output mode
% ls -N                 # show filenames (raw)
% echo -e '\033%@'      # set Latin1 output mode again.

If you want to remove it:
% rm ./??????

If you want to input Unicode:
% kbd_mode -u           # Be careful! Do this only with a kbd_mode
                        # from kbd-0.88.tar.gz or later!
and next tell loadkeys what key combinations correspond to which
Unicode values. (See also the contents of that musical file.)

See also the scripts unicode_start and unicode_stop in ../src.
michel@Ariane:/usr/share/doc/console-tools/examples$

Amicalement

Michel

--
Tuxophiles, bien sûr que nous sommes tuxophiles, et winophobes en plus.
Mais il ne faut pas confondre tuxophilie et tuxo-intégrisme, l'amalgame
est fait beaucoup trop rapidement par les winophiles-tuxophobes .



Reply to: