[File] /usr/bin and /bin

Steve Grubb sgrubb at redhat.com
Thu May 27 16:55:28 UTC 2021


I was wondering something. There are distributions that have /bin and /sbin 
symlinked to /usr/bin and /usr/sbin respectively. Because files could be in 
either place, there are tests like:

#!\ /bin/bash
#!\ /usr/bin/bash
#!\ /usr/local/bash
#!\ /usr/local/bin/bash

and the same would apply to any other script with a shebang. Could this be 
solved programmatically rather than having to do this throughout the magic db 
for every script? I'm thinking this could make the magic db smaller and lower 
the maintenance associated.

Best Regards,

More information about the File mailing list