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

Network_commands

The document provides a comprehensive guide on using tar and zip commands for creating and extracting archives, as well as various networking commands in Kali Linux. It covers network interface management, configuration, connectivity testing, scanning, packet analysis, DNS lookup, routing, and wireless networking. Additionally, it introduces tools for managing network services and offers a foundation for further exploration of advanced networking topics.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Network_commands

The document provides a comprehensive guide on using tar and zip commands for creating and extracting archives, as well as various networking commands in Kali Linux. It covers network interface management, configuration, connectivity testing, scanning, packet analysis, DNS lookup, routing, and wireless networking. Additionally, it introduces tools for managing network services and offers a foundation for further exploration of advanced networking topics.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Tar command and using

Creating a tar archive: tar -czvf archive.tar.gz filename

Extracting a tar archive: tar -xzvf archive.tar.gz

Commands

c - Create a new archive.

z - Compress the archive with gzip.

v - Verbose mode (optional, shows the progress)

f - Specify the file name

ZIP commands and using.

zip filename.zip filename.txt

unzip filename.zip filename.txt

set password for zip file?

zip filename filename.txt

End________________________________________________________________________

Networking_________________________________________________________________

1. Checking Network Interfaces

ifconfig - Displays information about network interfaces.

ip a or ip address - Shows details about network interfaces.

2. Network Configuration

ip link set <interface> up/down - Activates or deactivates a network interface.

ip addr add <address>/prefix dev <interface> - Adds an IP address to an interface.

ip addr del <address>/prefix dev <interface> - Removes an IP address from an interface.


3. Testing Connectivity

ping <hostname/ip> - Checks connectivity to a host.

traceroute <hostname/ip> - Traces the route packets take to a host.

tracepath <hostname/ip> - Similar to traceroute, but simpler.

4. Network Scanning

nmap <target> - Scans ports and services on a network.

netdiscover - A network discovery tool for identifying live hosts.

5. Packet Analysis

tcpdump -i <interface> - Captures and displays network packets.

wireshark - A GUI tool for analyzing network traffic (requires installation).

6. DNS Lookup

nslookup <domain> - Queries DNS records for a domain.

dig <domain> - Provides detailed DNS information.

7. Network Routing

route - Displays or modifies the IP routing table.

ip route - Shows or manipulates the IP routing table.

8. Network Services

service <service> start|stop|restart - Manages network services (e.g., service networking restart).

systemctl <service> start|stop|restart - Modern system management for services.

9. Wireless Networking

iwconfig - Configures wireless network interfaces.

airmon-ng - A tool for managing wireless interfaces in monitor mode.

airodump-ng <interface> - Captures wireless packets.

10. Miscellaneous

netstat - Displays network connections and listening ports.

ss - Provides similar functionality to netstat but with more details.

These commands and tools provide a good foundation for working with networks on Kali Linux. As you get more
comfortable, you can explore advanced networking topics and tools specific to your needs.

You might also like