# Networking Commands

### ping host

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1674402697364/8d5f3806-590f-4bcf-8683-0889ade79430.png align="center")

1\. `from`: The destination and its IP address. Note that the IP address may be different for a website depending on your geographical location.

2\. `icmp_seq=1`: The sequence number of each ICMP packet. Increases by one for every subsequent echo request.

3\. `ttl=52`: The Time to Live value from 1 to 255. It represents the [number of network hops a packet can take](https://phoenixnap.com/glossary/packet-switching) before a router discards it.

4\. `time=18.4 ms`: The time it took a packet to reach the destination and come back to the source. Expressed in milliseconds.

Press **Ctrl + C** on your keyboard to stop the process.

### whois domain

The whois system is a listing of records that contains details about both the ownership of domains and the owners

A typical whois record will contain the following information:

* **The name and contact information of the registrant:** The owner of the domain.
    
* **The name and contact information of the registrar:** The organization that registered the domain name.
    
* **The registration date.**
    
* **When the information was last updated.**
    
* **The expiration date.**
    

The `whois` the command was already installed on Ubuntu if not please follow  
the command - sudo apt-get install whois

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1674403296902/e5b5fc02-91f9-46f8-8cb0-8d041911a19a.png align="center")

### dig domain

**dig** command stands for ***Domain Information Groper***. It is used for retrieving information about DNS name servers. It is used by network administrators. It is used for verifying and troubleshooting DNS problems and performing DNS lookups

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1674403542670/2d196a27-c300-4734-99fc-9b0839a0d112.png align="center")

A record refers to IPV4 IP.   
Similarly, if the record type is set as “AAAA”, this would return IPV6 IP

### dig -x host

Reserve lookup host

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1674576748462/59ca242c-eb35-4171-8e0c-c6a610368a5e.png align="center")

### wget file

Download file

wget "URL"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1674577410741/28490ae0-38c0-4a52-b5f9-62443842b8a1.png align="center")

### curl url

outputs the webpage from the URL

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1674577803632/1f0f9ed3-7a64-4c48-8fed-e96cea3b3489.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1674577839667/241fe7a5-f7fc-4033-a84b-94f253df595a.png align="center")
