Unix/Linux Command memorandum, unixlinux Memorandum
Arp: The ARP cache contains one or more tables used to store IP addresses and resolved MAC addresses.
// Extract all Bound0 ip and mac Information
Arp-n-I bond0 | awk '$5 = "bond0" {print $1, $3 }'
Sed: used to edit the text in a document or string through a series of commands
// Read a single row of data from/script/ip and print it out.
Sed-n '1p'/script/ip
Iptables: an IP information package filtering system integrated with the latest 3.5 Linux Kernel
Iptables-t filter -(...) // Filter data packet filtering table
Iptables-t nat -(...) // Nat packet conversion table
Iptables-t mangle -(...) // Mangle specifies the data packet processing table
Crontab: used to set the command that is periodically executed. The command reads the command from the standard input device and stores it in the crontab file for later reading and execution.
// Edit the scheduler task list
Vi/etc/crontab
// Execute xxx every minute
*/1 ***** xxx
// Execute xxx at 02:20 every day
20 2 *** xxx
// Execute xxx every 20 minutes from to every day within January 1, December.
*/20 6-12*12 * xxx
// Execute xxx from Monday to Friday at every day
0 17 ** 1-5 xxx