Developer · 4 November 2026

Subnets and Chmod Explained Without the Jargon

Two things that confuse new sysadmins and developers: IP subnets (the /24 part) and Linux file permissions (the 755 part).

Both topics look like secret codes the first time you see them. They are really just counting.

What /24 means

An IPv4 address has 32 bits. The number after the slash says how many of those bits identify the network. The rest identify individual devices. A /24 leaves 8 bits for devices, which is 256 addresses. Two are reserved, the network address and the broadcast address, so 254 are usable. A /16 gives 65,534 hosts and a /30 gives just 2.

Type an address and prefix into the subnet calculator to see the network, mask, broadcast address and host count. If you want to see the actual bits behind an address, use the IP address converter.

What 755 means

Linux permissions come in three groups: the owner, the group and everyone else. Each group gets read (4), write (2) and execute (1), which are added up. 7 is 4+2+1, so full access. 5 is 4+1, read and execute. So 755 is owner full, everyone else read and execute. That is the standard for scripts and folders. 644 is the normal choice for ordinary files, and 600 is for private keys.

The chmod calculator lets you pick the access for each group and shows the number, the symbolic form like rwxr-xr-x and the command to run.

Avoid 777. It lets anyone on the server change the file, and it is almost never the right fix.

Tools mentioned in this article