0% found this document useful (0 votes)
3 views

Network commands in linux

Uploaded by

huwi4183
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Network commands in linux

Uploaded by

huwi4183
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

In Linux:

1. **ping**:
- The ping command in Linux is used to send ICMP Echo Request packets to a
specified destination IP address or domain name to check if it's reachable and
measure round-trip time. The command is typically invoked as follows:
```
ping <destination>
```
- For example:
```
ping www.example.com
```

2. **whois**:
- The whois command in Linux is used to query domain name registration
information from a WHOIS database. It provides details about the domain registrar,
registration date, expiry date, and more. The command is usually invoked as
follows:
```
whois <domain>
```
- For example:
```
whois example.com
```

3. **dig**:
- The dig command in Linux is a flexible tool for querying DNS name servers. It
can be used to retrieve various types of DNS records, such as A, MX, CNAME, and so
on. The command is typically invoked as follows:
```
dig <domain> <record type>
```
- For example:
```
dig www.example.com A
```

In Windows:

1. **ping**:
- The ping command in Windows operates similarly to its Linux counterpart. It's
used to send ICMP Echo Request packets to a specified destination to check
connectivity and measure round-trip time. The usage is the same as in Linux:
```
ping <destination>
```

2. **whois**:
- Unlike Linux, Windows does not include a built-in whois command. However, you
can use various third-party whois tools or online whois services to look up domain
registration information.

3. **dig**:
- Similarly, Windows does not include a built-in dig command. However, you can
achieve similar functionality using the nslookup command, which is available in
Windows. It can be used to query DNS records like A, MX, and NS records. The syntax
is different from dig but achieves similar results.
Overall, while Linux and Windows offer similar networking utilities like ping, they
may differ in their availability of certain tools like whois and dig. However,
third-party or online alternatives can often fulfill these functionalities in
Windows.

You might also like