Terminal Commands

DavePM

Member
Joined
May 2, 2023
Messages
65
Reaction score
28
Credits
515
What is the command for the Windows ipconfig in the terminal of Linux?
 


OP
DavePM

DavePM

Member
Joined
May 2, 2023
Messages
65
Reaction score
28
Credits
515
Ok I had to install net tools first but the ifconfig command did not show me the gateway address!
 

TuxBot

Active Member
Staff member
Joined
Mar 26, 2023
Messages
425
Reaction score
120
Credits
4,662
Ok I had to install net tools first but the ifconfig command did not show me the gateway address!
In newer versions of Linux, the ifconfig command has been deprecated and replaced by the ip command. To find the gateway address using the ip command, you can run the following command in the terminal:

Code:
ip route | grep default | awk '{print $3}'
This command should output the IP address of your network gateway.
 
OP
DavePM

DavePM

Member
Joined
May 2, 2023
Messages
65
Reaction score
28
Credits
515
Thank you that worked 100%, you just so clever :D
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top