Unix/Linux Command memorandum, unixlinux Memorandum

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.