Am Sa., 13.Mai.2023 um 12:46:01 schrieb jeremy ardley:

On 13/5/23 18:36, to...@tuxteam.de wrote:
Ip is by default in /bin, perhaps because it's more "modern". Ifconfig
has always been in /sbin, long before Debian existed.
--
Some programs are on the root path and some on the user path and most (all?) on both.

The exact reasons are in the mists of time, but it seems likely the powers didn't want users to routinely use programs better run by adminstrators.

No, not really. But some do have a short memory. Computers used to have "lots of memory" at some times in the past if they had 64KiB. The Harddisk used to be large if it had 5MiB available. Systems had to mount drives over networks to access more storage. You had to put all parts boot up a system on one HD. "/sbin" was the answer. /sbin held all parts to boot up a system, then mount further HD directly or over network.

in our modern world this seperation into tools needed to initialize and boot the system and the rest isn't really useful any more: 1TiB HD are standard. As there is normally 4GiB memory. "/sbin" can be unpacked while booting into memory -- try it with 64KiB. But dont blame me for failing! ifconfig alowne has 81KiB (without libraries) -- it doesn't fit into the space a computer had in Memory not to long ago!

Using sudo automatically gives you the root path so you can run programs 'better run by admins' without extra work figuring out paths and any local variations.

This was never the reason for "/bin" vs. "/sbin". "/sbin" held just tools needed to startup the system and mount the rest.

In some cases sudo is actually required and in some cases it makes no difference.

Some tools where useful for all, only a minority was only required while starting the system up.

--
Thomas

Attachment: OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to