Skip to main content

Command Palette

Search for a command to run...

Linux Network command

Published
2 min read
Linux Network command
  1. IP :

    The ip command in Linux is a powerful utility for network configuration and management. It allows users to perform various networking tasks such as configuring network interfaces, routing tables, and tunnels. Here are some common uses of the ip command:

    Show network interfaces:

ip addr show

Add a new network interface:

ip link add <interface_name> type <type>
  1. ifconfig :

    ifconfig is a command-line utility in Unix-like operating systems, including Linux, that is used to configure and display information about network interfaces.

    The syntax is

     ifconfig
    
  2. nslookup :

    Which is helpful for network troubleshooting and DNS tasks.

    The general syntax for the nslookup command is:

     nslookup google.com
    
  3. netstat :

    The netstat command is a networking utility that shows various networking statistics.

     netstat -at
    
  4. traceroute :

    The traceroute command is a networking tool available for Linux, macOS and windows. The command tracks the route that packets take to reach a destination on a TCP/IP network

     traceroute -T 184.95.56.32
    
  5. tracepath :

    The tracepath command find out paths and latencies from source to destination

     tracepath 184.172.3.32
    
  6. hostname :

    The hostname command helps display and change a system's hostname and domain

     hostname
    
  7. ping :

    The ping command is a network utility for testing whether a host is reachable. The command sends ICMP request to a host and measures the round-trip time.

     ping -c google.com