• 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

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

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

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