• 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 / How To Check Network Connection Configuration In Ubuntu Terminal

How To Check Network Connection Configuration In Ubuntu Terminal

By Sourabh / March 28, 2024 Category: How To, Ubuntu

Learn how to find network interface card details on Ubuntu. Here is how to check network connection configuration in Ubuntu terminal. This way, on Ubuntu, you can list network interfaces.

Find Network Card Name On Ubuntu Linux

Before you start to execute commands to find the status of Network Interface/Card, you will have to known the correct name of the installed interfaces on the Linux Ubuntu Systems.

To find the Network Card name, run the following command:

ls /sys/class/net/

The above command shows all the installed interfaces or network cards on the system. Please note that the wired interfaces start with the letter “e” and wireless/WiFi start with letter “w”.

network-details-ubuntu

The output for my Linux System is enp9s0 – lo – wlp7s0 Which means, I have two Network Interface – (enp9s0) Wired and (wlp7s0) Wireless.

View Network Interface Card Details

To view the Network Interface Card details on Ubuntu Linux Systems, run ipconfig command:

$ sudo ifconfig

Or

$ sudo /sbin/ifconfig

network-card-ubuntu

The above command will display the details of the Network Interface Card with the following details:

  1. eth0 – Ethernet network interface. The primary communication channel when a device is connected to network.
  2. lo – A Lookback interface. It is with only one endpoint and can not be used to communicate with rest of the computer or transfer files.
  3. wlp7s0 – Wireless communication network interface.

Once you get the name of the installed Network Interface, now it’s time to run the commands to find the status of the network connection and network cards.

For Wired Ethernet Connection

network-state-ubuntu

Open Terminal and run the following commands in Terminal.

cat /sys/class/net/enp9s0/carrier

If you got output as “1” (one), it means that the network cable is connected with your network card.

cat /sys/class/net/enp9s0/operstate

If you got output as “up”, it means that the network cable is connected with your network card.

For Wireless Connection

Open Terminal and run the following commands in Terminal.

cat /sys/class/net/wlp7s0/carrier

If you got output as “1” (one), it means that the network cable is connected with your network card.

cat /sys/class/net/wlp7s0/operstate

If you got output as “up”, it means that the network cable is connected with your network card.

Please Note: You will have to change the (enp9s0) Wired and (wlp7s0) Wireless for your system. Find the network card names and use the correct names in the commands given below.

Method 2

network-ubuntu-01

In case the above commands doesn’t work, there is another tool called “ethtool” to help you. ethtool is used to query and control network device driver and hardware settings, particularly for wired Ethernet devices.

Linux Users can also run the ethtool command to find out the connected state of a network cable on their system. Open terminal and execute the following command. Remember to change the correct Ethernet interface code:

sudo ethtool enp9s0

Verify That Network Interface Is Running

Run the following command to displays the list of devices that are active and running:

$ sudo ifconfig -s

If the interface is down it will not display the information.

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