[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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) defined.

Yes, "ls" is aliased in my shell (zsh). That's why I also tried
after running sh (dash), where I have no aliases.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: