| Command |
Description |
|
# iconv -l |
lists known encodings [man] |
|
# iconv -f fromEncoding -t toEncoding inputFile > outputFile |
converting the coding of characters from one format to another [man] |
|
# find . -maxdepth 1 -name *.jpg -print -exec convert |
batch resize files in the current directory and send them to a thumbnails directory (requires convert from Imagemagick) [man] |
|
# ifconfig eth0 |
show configuration of an ethernet network card [man] |
|
# ifconfig eth0 192.168.1.1 netmask 255.255.255.0 |
configure IP Address [man] |
|
# ifconfig eth0 promisc |
configure 'eth0' in promiscuous mode to gather packets (sniffing) [man] |
|
# ifdown eth0 |
disable an interface 'eth0' [man] |
|
# ifup eth0 |
activate an interface 'eth0' [man] |
|
# init 0 |
shutdown system(2) [man] |
|
# ip link show |
show link status of all network interfaces [man] |
|
# iptables -t filter -L |
show all chains of filtering table [man] |
|
# iptables -t nat -L |
show all chains of nat table [man] |
|
# iptables -t filter -F |
clear all rules from filtering table [man] |
|
# iptables -t nat -F |
clear all rules from table nat [man] |
|
# iptables -t filter -X |
delete any chains created by user [man] |
|
# iptables -t filter -A INPUT -p tcp --dport telnet -j ACCEPT |
allow telnet connections to input [man] |
|
# iptables -t filter -A OUTPUT -p tcp --dport http -j DROP |
block HTTP connections to output [man] |
|
# iptables -t filter -A FORWARD -p tcp --dport pop3 -j ACCEPT |
allow POP3 connections to forward chain [man] |
|
# iptables -t filter -A INPUT -j LOG --log-prefix |
Logging on input chain [man] |
|
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
configure a PAT (Port Address Traslation) on eth0 masking outbound packets [man] |
|
# iptables -t nat -A PREROUTING -d 192.168.0.1 -p tcp -m tcp --dport 22 -j DNAT --to-destination 10.0.0.2:22 |
redirect packets addressed to a host to another host [man] |
|
# iwconfig eth1 |
show wireless networks [man] |
|
# iwlist scan |
wifi scanning to display the wireless connections available [man] |