where is the executable file supposed to be located?
Ubuntu has merged /bin with /usr/bin and /sbin with /usr/sbin. what i would like to know is, for some given command name, which directory its executable file would be in, had the merge not taken place. when i make a script that has commands that need be written as full path, i want to know which path to be used. what i used to do was check which it was in, such as by doing:
now it lists the file in both locations. either will work fine on this version (and flavor) of Ubuntu, but what if the script is run somewhere else, such as an older Ubuntu, some other distro, or BSD? how can i get the correct path if my Xubuntu system has these paths merged?
Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer
Bookmarks