step 1:

Play as many CTFs as you can: CTFtime

Linux, Crypto, and more: OverTheWire Wargames

PowerShell Training: Under the Wire

Network Simulator Game: CS4G Netsim

step 2: Rooms and pwning boxes

Play as many rooms as you can: TryHackMe

After TryHackMe, try Root Me

After Room Me, try Hack The Box

More practice: