Re: "ls -d" OK, but not "ls"

2021-06-25 Thread Vincent Lefevre
On 2021-06-23 22:47:40 +0200, Vincent Lefevre wrote: > On 2021-06-23 21:24:43 +0300, Andrei POPESCU wrote: > > Is this a new issue? > > I don't know. The machine had been reinstalled in January. But > since this reinstallation, I haven't tried to log in until today > (I was using it only via job

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Vincent Lefevre
On 2021-06-23 21:24:43 +0300, Andrei POPESCU wrote: > Is this a new issue? I don't know. The machine had been reinstalled in January. But since this reinstallation, I haven't tried to log in until today (I was using it only via job submissions). -- Vincent Lefèvre - Web:

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Andrei POPESCU
On Mi, 23 iun 21, 16:43:51, Vincent Lefevre wrote: > On 2021-06-23 10:27:01 -0400, Greg Wooledge wrote: > > On Wed, Jun 23, 2021 at 03:59:51PM +0200, Vincent Lefevre wrote: > > > > $ ls /etc/systemd > > > ls: cannot open directory '/etc/systemd': No such file or directory > > > > > > Any

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Joe Pfeiffer
Vincent Lefevre 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

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Vincent Lefevre
On 2021-06-23 10:27:01 -0400, Greg Wooledge wrote: > 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 > > The "0" here is suspicious, and

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Nicolas George
Vincent Lefevre (12021-06-23): > And while I'm at it, "strace" gives: > > [...] > stat("/etc/systemd", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 > openat(AT_FDCWD, "/etc/systemd", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = > -1 ENOENT (No such file or directory) > [...] > > So, on the same

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Vincent Lefevre
On 2021-06-23 16:26:10 +0200, Vincent Lefevre wrote: > On 2021-06-23 10:11:57 -0400, The Wanderer wrote: > > It could be useful to check on this with other tools. For a start, what > > does > > > > $ stat /etc/systemd/ > > > > report? > > File: /etc/systemd/ > Size: 0 Blocks:

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread The Wanderer
On 2021-06-23 at 10:26, Vincent Lefevre wrote: > On 2021-06-23 10:11:57 -0400, The Wanderer wrote: > >> On 2021-06-23 at 09:59, 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

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Greg Wooledge
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 The "0" here is suspicious, and would be an indicator of wrongness if this is ext4. What type of

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Vincent Lefevre
On 2021-06-23 10:11:57 -0400, The Wanderer wrote: > On 2021-06-23 at 09:59, 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

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Vincent Lefevre
On 2021-06-23 10:02:01 -0400, Roberto C. Sánchez wrote: > Is the result the same if you specify /bin/ls? Yes: $ /bin/ls /etc/systemd /bin/ls: cannot open directory '/etc/systemd': No such file or directory > I am wondering if 'ls' might be an alias in your shell with some > strange option(s)

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread Roberto C . Sánchez
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

Re: "ls -d" OK, but not "ls"

2021-06-23 Thread The Wanderer
On 2021-06-23 at 09:59, 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??? On

"ls -d" OK, but not "ls"

2021-06-23 Thread Vincent Lefevre
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??? -- Vincent Lefèvre - Web: 100%