Terminal Commands

DavePM

Member
Joined
May 2, 2023
Messages
95
Reaction score
37
Credits
771
What is the command for the Windows ipconfig in the terminal of Linux?
 


OP
DavePM

DavePM

Member
Joined
May 2, 2023
Messages
95
Reaction score
37
Credits
771
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
840
Reaction score
195
Credits
9,902
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
95
Reaction score
37
Credits
771
Thank you that worked 100%, you just so clever :D
 

Members online


Latest posts

Top