![](https://seccdn.libravatar.org/avatar/12100f1497f7c0b346606b8b4a32ae8d.jpg?s=120&d=mm&r=g)
In data venerdì 5 febbraio 2021 12:15:30 CET, Dave Howorth ha scritto:
On Fri, 05 Feb 2021 10:07:59 +0100
Stakanov <stakanov@disroot.org> wrote:
I have in my home directory a file, it appeared the 6th of November. I do not recall anything special. It is owned by root: [code] ls -l ?
-rw-r--r-- 1 root root 5 6 nov 16.15 ?
[/code]
What is the file actually called? The output doesn't match that of a file called '?' The file is actually called "Questionmark". It is not possible to give it a name, so I think the ? is actually a joker for missing file name.
$ touch ? touch ? touch: impossibile fare touch di ''$'\320': Permesso negato touch "?" goes back to prompt.
$ ls -l ? finds actually two files: -rw-r--r-- 1 entropia users 0 5 feb 14.03 ? -rw-r--r-- 1 root root 5 6 nov 16.15 ?
$ find . -maxdepth 1 -type f -exec sh -c 'printf "%-10s %s\n" "$1" "$(printf "$1" | xxd -pu )"' None {} \;
you cannot change the name to "?",
What commands do you use to try this exactly? I tried to do this in dolphin, super user mode.
it is 5 Bite of size, you cannot open it with kate e.g. to read or see the content. But you can:
[code] sudo cat /home/entropia/?
9427 [/code]
"9427"??
What could this be? A damage to the file system? Need to run fsck? And why I cannot, even as root eliminate it?
Please show the actual commands you use to try to delete the file. "eliminate" in Dolphine as superuser.
with [code] unlink /home/entropia/? unlink: operando "/home/entropia/\320" in più [/code] were "in più" is Italian locale and says: "extra operand" Trying su - and then unlink: # unlink /home/entropia/? unlink: extra operand ‘/home/entropia/\320’ ok, so "in più is "extra operand" So the issue is: is ? actually a filename or a joker? when you cat the file then the content it shows is the number 9427. Trying with rm: # rm /home/entropia/? And that worked! So it remains to ask for me: why would dolphin as superuser not work? (Showed permissions but could not change them and could not change name, etc). why unlink did not work while rm /home/entropia/? worked? rm is for me a bit a scary command as it can erase the whole home directory with a typo (or am I wrong?). And second question: what kind of origin could this file have? Content "9427" does not make any sense to me. So it must be some "lot and found" or similar thing.