Re: "ls -d" OK, but not "ls"
On Wed, Jun 23, 2021 at 03:59:51PM +0200, Vincent Lefevre wrote:
> 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???
>
Is the result the same if you specify /bin/ls? I am wondering if 'ls'
might be an alias in your shell with some strange option(s) defined.
Regards,
-Roberto
--
Roberto C. Sánchez
Reply to: