Re: "ls -d" OK, but not "ls"
Vincent Lefevre <vincent@vinc17.net> writes:
> On a Debian GNU/Linux 10 (buster) machine:
>
> $ ls -ld /etc/systemd
> drwxr-xr-x 3 root root 0 2021-04-19 09:40:41 /etc/systemd
> $ ls /etc/systemd
> ls: cannot open directory '/etc/systemd': No such file or directory
>
> Any explanation???
snowball:776$ ls -ld /etc/systemd
drwxr-xr-x 5 root root 4096 Jun 17 11:20 /etc/systemd/
snowball:777$ ls /etc/systemd
journald.conf logind.conf network/ networkd.conf pstore.conf resolved.conf sleep.conf system/ system.conf user/ user.conf
snowball:778$ stat /etc/systemd
File: /etc/systemd
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 901h/2305d Inode: 16517453 Links: 5
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-06-23 11:04:12.898744989 -0600
Modify: 2021-06-17 11:20:15.302495478 -0600
Change: 2021-06-17 11:20:15.302495478 -0600
Birth: 2012-10-03 22:45:10.910122061 -0600
I'm with the people guessing you've got FS corruption.
Reply to: