Learn Essential Tools for Efficient Network Management”
Networking in Linux involves a variety of commands for configuring network interfaces, troubleshooting connectivity issues, and managing network services. Here is a list of some commonly used networking commands in Linux:
Linux Network Configuration:
To Configure network interfaces.
ifconfig
Show/manipulate routing, devices, policy routing, and tunnels.
ip address ip route
To Configure wireless network interfaces.
iwconfig:
Show/manipulate the IP routing table.
route -n
Display network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.
netstat -a
A command-line client for NetworkManager, which is a tool for configuring and managing network connections.
nmcli
Query Internet name servers interactively or non-interactively.
nslookup example.com
DNS lookup utility.
dig example.com
DNS lookup utility.
host example.com
Show or set the system’s host name.
hostname
Send ICMP ECHO_REQUEST to network hosts.
ping google.com
Print the route packets trace to network host.
traceroute google.com
Combines the functionality of ping and traceroute.
mtr google.com
Dump traffic on a network.
tcpdump -i eth0
Administration tool for IPv4 packet filtering and NAT.
iptables -L
Uncomplicated Firewall, a user-friendly interface for iptables.
ufw status
OpenSSH SSH client.
ssh user@hostname
Secure copy (remote file copy program).
scp file.txt user@hostname:/path/to/destination/
Read and write data across network connections.
nc -vz example.com 80
OpenSSH SSH client.
ssh user@hostname
Read and write data across network connections.
nc -vz example.com 80
View and modify the ARP table.
arp -a
Show socket statistics.
ss -tunap
List open files, including network connections.
lsof -i
Query and change the system hostname and related settings.
hostnamectl status
Command-line tool for making HTTP requests.
curl http://example.com
Display or change Ethernet card settings.
ethtool eth0
Configure wireless devices.
iw dev
DNS and Hostname Resolution:
Configuration file for DNS resolver library.
cat /etc/resolv.conf
nmap:
Network exploration tool and security scanner.
nmap -p 1-1000 localhost
Traffic Monitoring:
Display bandwidth usage on an interface.
iftop
Firewall Configuration:
Dynamically manages the system’s firewall.
firewall-cmd --list-all
VPN:
Open-source software application that implements virtual private network (VPN) techniques.
openvpn client.ovpn
DHCP:
Dynamic Host Configuration Protocol client.
dhclient eth0
proxychains: Redirect connections through proxy servers.
proxychains curl http://example.com
Wireless Networking:
Get more detailed wireless statistics.
iwlist wlan0 scanning
Host Access Point Daemon, for turning your computer into a WiFi access point.
hostapd /etc/hostapd/hostapd.conf
Network File Transfer:
Remote file copy and synchronization.
rsync -avz /local/path user@remote:/remote/path
Network File Sharing:
File and printer sharing for Windows and Linux.
smbclient -L //server
Network protocol analyzer.
wireshark
Secure File Transfer Protocol for interactive file transfers.
sftp username@hostname
Remote Desktop:
VNC (Virtual Network Computing):
Start a VNC server on the remote machine.
vncserver :1
Connect to a VNC server.
vncviewer hostname:1
After connecting with X11 forwarding, you can run graphical applications.
xeyes
A. netstat
B. ifconfig
C. ipconfig
D. ip
A. dig
B. host
C. nslookup
D. All of the above
A. ssh connect username@hostname
B. connect ssh username@hostname
C. ssh username@hostname
D. ssh remote -u username -h hostname
A. rsync
B. scp
C. sftp
D. ftp
A. iftop
B. htop
C. nload
D. tcpdump
A. Virtual Network Connection
B. Virtual Network Computing
C. Visual Network Connection
D. Visual Network Computing
A. ssh -X username@hostname
B. ssh -F username@hostname
C. ssh -Y username@hostname
D. ssh -Z username@hostname
A. vncstart
B. vncserver
C. startvnc
D. runvnc
A. sshfs
B. mntssh
C. mountssh
D. remotefs
– A. run -X xeyes
– B. ssh -X username@hostname ‘xeyes’
– C. ssh -Y username@hostname ‘xeyes’
– D. startx xeyes
1-B. ifconfig
2-D. All of the above
3-C. ssh username@hostname
4-B. scp
5-A. iftop
6-B. Virtual Network Computing
7-A. ssh -X username@hostname
8-B. vncserver
9-A. sshfs
10-C. ssh -Y username@hostname ‘xeyes’
A. route
B. traceroute
C. nslookup
D. pathtrace
A. iwconfig
B. ifconfig
C. ipconfig
D. wlanconfig
A. Network Manager Client Interface
B. Network Monitoring Command Line Interface
C. Network Configuration and Management Line Interface
D. None of the above
A. Configure wireless network interfaces
B. Manage IP routing tables
C. Administer IPv4 packet filtering and NAT
D. Monitor network traffic
A. netstat
B. ss
C. sockinfo
D. connectstat
A. scp
B. rsync
C. sftp
D. ftp
A. ufw status
B. firewall-cmd –list-all
C. iptables -L
D. netstat -a
A. host
B. hostname
C. nslookup
D. ifconfig
A. Display bandwidth usage
B. Network monitoring
C. Network exploration and security scanning
D. Remote desktop sharing
A. ssh username@hostname ‘command’
B. ssh -c username@hostname
C. ssh -e command username@hostname
D. ssh execute -u username -h hostname
Answers:
11. B. traceroute
12-A. iwconfig
13-A. Network Manager Client Interface
14-C. Administer IPv4 packet filtering and NAT
15-B. ss
16-C. sftp
17-A. ufw status
18-B. hostname
19-C. Network exploration and security scanning
20-A. ssh username@hostname ‘command’
A. netstat
B. ss
C. top
D. ps
A. Copy files securely between local and remote hosts
B. Make HTTP requests and show the results
C. Configure wireless network interfaces
D. Display route information
A. Monitor network traffic
B. Display system resource usage
C. Show route information
D. Perform DNS lookups
A. iftop
B. htop
C. top
D. atop
A. ufw check status
B. ufw show
C. ssh ufw status
D. ssh firewall-cmd –list-all
A. Configure wireless network interfaces
B. Start a DHCP server
C. Perform DNS lookups
D. Obtain an IP address from a DHCP server
A. Display route information
B. Redirect connections through proxy servers
C. Monitor network traffic
D. Start a VPN connection
A. nmcli connection check
B. nmcli status
C. nmcli connection status
D. nmcli check connection
A. iftop
B. netstat
C. ss
D. tcpdump
A. List open files and network connections
B. Display system resource usage
C. Monitor network traffic
D. Configure wireless network interfaces
21. B. ss
22-B. Make HTTP requests and show the results
23-A. Monitor network traffic
24-A. iftop
25-B. ufw show
26-D. Obtain an IP address from a DHCP server
27-B. Redirect connections through proxy servers
28-B. nmcli status
29-B. netstat
30-A. List open files and network connections
A. Display route information
B. Monitor network traffic
C. Configure wireless network interfaces
D. Perform DNS lookups
A. lsof -i
B. lsof -a
C. lsof -o
D. lsof -f
A. Monitor network traffic
B. Display system resource usage
C. Configure wireless network interfaces
D. Redirect connections through proxy servers
A. arp -l
B. arp -a
C. arp -r
D. arp -t
A. ufw status
B. firewall-cmd –list-all
C. iptables -L
D. netstat -a
A. ssh -Y username@hostname
B. ssh -X username@hostname
C. ssh -G username@hostname
D. ssh -Z username@hostname
A. sockstat
B. ss
C. sockets
D. socketstat
A. ssh -c username@hostname
B. ssh execute -u username -h hostname
C. ssh -e command username@hostname
D. ssh username@hostname ‘command’
A. sshfs username@hostname:/remote/path /local/mount/point
B. mountssh username@hostname:/remote/path /local/mount/point
C. mntssh username@hostname:/remote/path /local/mount/point
D. remotefs username@hostname:/remote/path /local/mount/point
A. Display bandwidth usage
B. Network monitoring
C. Network exploration and security scanning
D. Remote desktop sharing
31. B. Monitor network traffic
32-A. lsof -i
33-A. Monitor network traffic
34-B. arp -a
35-A. ufw status
36-B. ssh -X username@hostname
37-B. ss
38-A. ssh -c username@hostname
39-A.
40-C. Network exploration and security scanning