Ubuntu – Why are there infinitely many x11 subdirectories in /usr/bin/x11

directoryfilesystemxorg

Why does the /usr/bin/x11 folder hold another x11 folder and when you open that x11 you get another x11 and then another and another?

I did it about 6 times and got frustrated so I have no idea how deep this goes but

  • What is the purpose (or is it a glitch?)?
  • Is this eating disk space more than it should? (I was going to delete one or more but thought I better ask first )

I can see no reason why this should be happening at all.

Best Answer

/usr/bin/X11/ is a symbolic link (symlink) pointing to /usr/bin/. Hence it contains itself and you can follow those X11 folders all day long but there's still just one on your disk.

This is for compatibility reasons as some programs expect some other program to be in /usr/bin/X11/ but Ubuntu puts them in /usr/bin/.