• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / Ubuntu 20.04 and Raspberry Pi Ubuntu – Connect To Wifi Command Line

Ubuntu 20.04 and Raspberry Pi Ubuntu – Connect To Wifi Command Line

By Sourabh / December 21, 2022 Category: How To, Ubuntu

Ubuntu 20.04: connect to wifi command line. On Raspberry Pi Ubuntu, connect to wifi command line. Here is how to connect to wifi using terminal in Ubunu Linux:

To begin with, identify the name of your wireless network interface. To do so execute the following command:

$ ls /sys/class/net

You can also know the name of our network interface using the iwconfig command:

$ iwconfig

You will see that the wireless network interface name would be something like: wlan0 or wlp3s0 or something like this. Once you get the interface name, you will need to activate it if it’s not already activated. To activate, run the ifconfig command:

$ sudo ifconfig wlp3s0 up
$ sudo iwlist wlp3s0 s | grep 'Cell\|Quality\|ESSID\|IEEE'

Now to connect to Ubuntu wifi using command line, edit the Netplan configuration file using the following command and insert the following configuration stanza while replacing the SSID-NAME-HERE and PASSWORD-HERE with your SSID network name and password (see below):

$ sudoedit /etc/netplan/50-cloud-init.yaml

The configuration should look like this:

wifis:
wlan0:
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true

Now execute the following command to apply the changes and connect to your wifi.

$ sudo netplan --debug apply

Primary Sidebar

Latest Posts

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap