Vacuum cleaners have an electric motor that runs by magnetism. Inside the motor, wire coils create repulsive forces when electric current flows through them. The forces make the motor run . The magnetic coils in the motor have no magnetism when the vacuum cleaner is turned off. The coils have much stronger magnetism than kitchen magnets.
Magnets in the vacuum change direction of electrons increasing pressure and suction.
Refrigerators use a magnet in a very similar way except those magnets and magnetic fields never stop functioning. They can't be turned off without totally losing power like a vacuum can
A magnetic compass works because the Earth is like a giant magnet. The earth is also surrounded by a huge magnetic field. The Earth has two magnetic poles which lie near the North and South poles. You can then tell by the position of the sun which direction is North and which is South.
The Earth's natural magnetic poles and fields manipulate the direction of the compass.
A magnetometer is similar in design/ use of the magnet in a compass
Credit cards all have a dark magnetic strip on the back of them. The strip encloses data codes including the account number and your name. When you swipe the card at any time, an electronic device in the reader senses the magnetic codes and converts them into readable words and numbers.