How to connect to wifi using just the terminal?

i need to learn to do it just using the commands in the terminal. any help would really help thanks


Solution 1:

I suggest that you do the following steps:

nmcli device wifi rescan
nmcli device wifi list
nmcli device wifi connect my_lil_router password 1234567890

Of course, substitute your exact details here.