
It's important to differentiate at least, between hum, hiss and broadcast noise.
Hiss is white noise, and is high frequency, so there it helps to roll off highs and perhaps lower the output level of the guitar/amp or the input level of the recording device.
Hum comes in two types, both low frequency. One is about 120hz and is caused by power supply, (too) high currents ect. For that you can check the circuits in the guitar/amp, make sure they are good quality, and perhaps roll off some low end on the recording as a compensation effort.
The other type of hum is called 50/60hz hum, and comes from lack of grounding of some devices in your recording chain and/or cables that's crossing each other on the floor ect. Make sure at least one of the devices you are using have the power supply connected to ground (the third leg on the wallwart), and make sure your cables are not crossing other cables and that they are good quality cables with sufficient isolation. Counter-intuitively the thinner cables are usually the better ones with the solid isolation.
Hum problems are the worst and can be the hardest to localize and fix.
Broadband noise is the running noise from your computer, which clutters up in the low frequencies and can sometimes be confused with hum. Usually most troublesome when recording vocals in a project studio, but with guitars, you probbaly only get that if you're recording with a condenser/ribbon room mic. If so, make sure you know the pickup pattern on the mic and place it so the computer is in the "dead" zone of the pickup pattern, and/or throw a blanket on the computer when recording.