I assume you are talking about a kitchen or bathroom cabinet? here is so info to help you.
Take a look at this:
Hi Denise, here is a video I hope will help you hang your cabinets. Search Results
Suggested clip · 108 seconds
www.youtube.com › watch
How to Hang Cabinets - YouTube
Here is some Information that may help.
First off, run a level chalk line and screw in a ledger board. Set the cabinet on the ledger, then screw through the back of the cabinet into a stud using a gold colored drywall screw. When you hang the next cabinet, align the face frames and screwed the face frames of the two cabinets together. You will need to level all three dimmensions and use shims to adjust.
This might help: https://www.youtube.com/watch?v=yRwbLtSHKPU
Here's some useful tips
some tips here: https://www.youtube.com/watch?v=fM906TG-PYw&t=2s
First thing to do is to find the studs we’re your hanging the cabinet and mark them with a level.you will need 5 inch sheet rock screws,a drill a level.a pencil.and another person to hold cabinet .mark the studs place the cabinets we’re you want and measure with the level if there straight.drill a screw in to we’re the stud I’d up top to hold the cabinet up then before you put another screw on the other side on top get the level to make sure it’s it’s level then screw in the other screw then just drill down from other screw and add 2 more straight down from others.