I've got a file that I cannot remove via SSH.
If I run an ls
command on the directory, it clearly exists, but if it try to run an rm
on the file it says:
cannot remove 'database.sql': No such file or directory
If I check the permissions on both the file and folder, it is 777
, so I should have access to delete it.
If I run lsattr
, it tells me:
No such file or directory While reading flags on ./database.sql
Finally, if I try to run rm .
it again tells me:
rm: cannot remove 'database.sql': No such file or directory
Somehow it both knows that file is there (many commands "see" it), and can't remove it.
all-in-one-wp-migration/storage/sgmq5lpwyiio>ls -l
total 2327360
-rwxrwxrwx 1 nobody nogroup 2383152307 Jun 3 05:56 database.sql
all-in-one-wp-migration/storage/sgmq5lpwyiio>rm database.sql
rm: cannot remove 'database.sql': No such file or directory
all-in-one-wp-migration/storage/sgmq5lpwyiio>lsattr
lsattr: No such file or directory While reading flags on ./database.sql
all-in-one-wp-migration/storage/sgmq5lpwyiio>rm *.*
rm: cannot remove 'database.sql': No such file or directory
all-in-one-wp-migration/storage/sgmq5lpwyiio>
file *
in that folder?fsck
on that volume? What filesystem is it?