1

Before I reinstalled MacOS, ls -l showed symlinks with their source path. Now ls -l shows symlinks as regular files - without the source path.

How can I make it show the source path?

I'm on a clean MacOS installation with ZSH and a basic .zshrc file.

Here's an image where etc is showed with it's source:

enter image description here

  • unix.meta.stackexchange.com/questions/4086 Also, you have asked about the behaviour of ls -l but have shown the behaviour of ll. Show the behaviour of the command that you are asking about. – JdeBP Dec 3 '18 at 11:43
  • 1
    Yes, please show us the output of /bin/ls -l. If that works, show us the output of type ll and type ls. – terdon Dec 3 '18 at 13:03
1

It's possible ls is reporting the file system correctly but instead your folders are hardlinked instead.

However without seeing the output from ls that you are now seeing (rather than what you are expecting to see), any answer here would be largely speculative.

@JdeBP: Also, you have asked about the behaviour of ls -l but have shown the behaviour of ll. Show the behaviour of the command that you are asking about

ll is usually just an alias for ls -l (for example, defined in the users ~/.bashrc)

  • "usually" is not good enough. I've seen enough variations on these over the years to not take what they may expand to for granted, and to not take for granted that ls itself is not a shell function/alias. – JdeBP Dec 3 '18 at 12:44
  • 1
    You're right, it was a hard link, all makes sense now. Thank you so much for the thoughtful response! – Emanuil Rusev Dec 3 '18 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.