I hope you now know the rules involved in naming organic compounds. So, let's see how everything work while naming an organic compound.
*Count and Find the longest carbon chain.
*Check for functional group and unsaturation.
*Name according as the rules stated above.
*Writng your result- First, write the figure/number on which the functional group falls on for example; if methyl CH3 falls on the third carbon atom, we will write 3 and a dash at its front(3-). Next, write the methyl after the dash sign (3-methyl). Then, write the name for the number of carbon atom e.g prop, eth, meth, but, dec, non, oct etc... so, you should have something like this(3-methyl but), after that, you check if it is saturated or unsaturated/ check for double or triple bond and name it. If it has a double bond you should have this(3-methyl butene). But, if a group like hydroxyl, carbonyl,carboxyl etc is attached to it, you should name it as this (3-methyl butenol, 3-methyl butenone, 3-methyl butenoic).
If it has a single bond, you should have this(3-methyl butane). But, if a group like hydroxyl, carbonyl,carboxyl etc is attached to it, you should name it as this (3-methyl butanol, 3-methyl butanone, 3-methyl butanoic).
Also, we may have two or more alkyl group. For example, we have a methyl group attached to the 2nd, 3rd and 4th carbon atom, the prefix should be named 2,3,4- trimethyl.. using the example above, you should have 2,3,4- trimethyl butanol.