0

in usual Linux , to find a file in PATH , we use which

$ which git
/usr/bin/git

but in void linux , i got :

/sbin/git

how can i get the real directory of my file in my path ?

nextloop
  • 166

1 Answers1

1

Different distributions put some files in different places. That's normal, just go with whatever you find in void-linux and don't worry if its in a different place than you are expecting to see it compared to another distribution . The only caveat would be if you suddenly find it in a real oddball location like /tmp or your home directory.

If its a standard utility installed by void-linux and its not in /usr/sbin, /bin (or their sub-directories) then question its authenticity and ASK about it before executing it.

Cat22
  • 11