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

Linux Network Commands Cheat Sheet: by Via

This document provides a cheat sheet of common Linux network commands and their descriptions. It lists commands for viewing network connections like netstat and lsof, configuring network interfaces such as ifconfig, setting the default gateway and DNS servers, and performing DNS lookups and zone transfers. The cheat sheet serves as a quick reference guide for working with networks and services on Linux systems.

Uploaded by

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

Linux Network Commands Cheat Sheet: by Via

This document provides a cheat sheet of common Linux network commands and their descriptions. It lists commands for viewing network connections like netstat and lsof, configuring network interfaces such as ifconfig, setting the default gateway and DNS servers, and performing DNS lookups and zone transfers. The cheat sheet serves as a quick reference guide for working with networks and services on Linux systems.

Uploaded by

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

Linux Network Commands Cheat Sheet

by itnetsec via cheatography.com/21064/cs/6767/

Linux Network Commands

Comm​and Desc​rip​tion

watch ss -tp Network Connec​tions

netstat -ant TCP connec​tions

netstat -anu UDP Connec​tions

netstat -tulpn Connec​tions with PIDs

lsof -i Establ​ished Connec​tions

smb:/​/<I​P>/​<SH​ARE​NAM​E> Access Windows SMB Share

share <US​ERN​AME> <IP> c$ Mount Windows Share

ifconfig <IN​TER​FAC​E> <IP​/CI​DR> Set IP and netmask

ifconfig eth0:1 <IP​/CI​DR> Set virtual interface

route add default gw <IP​> Set Default Gateway

ifconfig <IN​TER​FAC​E> mtu <SI​ZE> Change MTU size

export MAC=<M​ACA​DDR​ESS​> Change MAC Address

ifconfig int hw ether <MA​CAD​DRE​SS> Change MAC Address

dig -x <IP​> Domain Lookup IP

host <IP​> Domain Lookup IP

dig@<​IP> <DO​MAI​N> -t AXFR DNS Zone Transfer

host -l <DO​MAI​N> <NA​MES​ERV​ER> DNS Zone Transfer

echo "​1" > /proc/​sys​/ne​t/i​pv4/ip forward Enable IP Forwarding

echo <"NA​MES​ERV​ER"> > /etc/r​eso​lv.c​onf Add DNS Server

User inputted data is to go between the brackets < >. When you enter the command and supply the input, remove the brackets for the command to run
succes​sfully.

By itnetsec Published 27th January, 2016. Sponsored by CrosswordCheats.com


cheatography.com/itnetsec/ Last updated 27th January, 2016. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com

You might also like