Linux is widely adopted in networking tasks—from firewalls and DNS servers to secure remote connections. This guide highlights key command-line tools that help monitor network activity, transfer files, and maintain secure access across devices.
ping
sends ICMP packets to test connectivity:
ping linuxcommand.org
Zero packet loss indicates reliable connectivity. Note that firewalls may block ICMP.
traceroute
traces packet paths through multiple routers:
traceroute slashdot.org
Shows each "hop" with IP and round-trip latency. Asterisks signal unresponsive routers.
ip
replaces ifconfig
, controlling interfaces and routes:
ip a
Check for UP
status and valid inet
IPs to confirm connectivity.
netstat
reports active interfaces and routing tables:
netstat -ie
netstat -r
Useful for checking the default gateway and LAN routes.
ftp
transfers files via unencrypted protocol:
ftp fileserver
lcd Desktop
get ubuntu.iso
Use lftp
for modern FTP with HTTPS support.
wget
downloads files from web or FTP sources:
wget http://linuxcommand.org/index.php
Supports background jobs, recursion, and resume.
ssh
connects to remote systems via encrypted channels:
ssh remote-sys
ssh bob@remote-sys
To run a remote command:
ssh remote-sys 'ls -la'
ssh -X remote-sys xload
Displays GUI programs remotely via X11 forwarding.
scp
copies files securely:
scp remote-sys:document.txt .
sftp
gives FTP-like interaction over SSH:
sftp remote-sys
get file.iso
PuTTY provides SSH/SCP/SFTP for Windows. Download from:
www.chiark.greenend.org.uk/~sgtatham/putty/
Linux’s networking arsenal—ping
, traceroute
, ip
, netstat
, wget
, and ssh
—offers robust control over connectivity, file operations, and remote access. Mastery of these tools empowers administrators and end users to manage networks efficiently and securely.