Terminal Commands

DavePM

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


Ok I had to install net tools first but the ifconfig command did not show me the gateway address!
 
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.
 
Thank you that worked 100%, you just so clever :D
 

Members online


Latest posts

Top