Use shell scripts to continuously change the IP address of the FreeBSD host

I wrote about a small automatic vote a year ago.ProgramBecause the website of the other party is limited to one IP address, only 10 votes can be cast per day, so this automatic voting program is mainly used to vote on the proxy server in the initial

Shell simple iptables script Management

#! /Bin/bashwhile ["1" = "1"] doclearecho "------------------------ menu --------------------" Echo "(1) service iptables restart" Echo "(2) iptables Add "Echo" (3) iptables Delete "Echo" (4) iptables stop "Echo" (5) iptables save (remember to save

Shell script Encoding

Http://southking.javaeye.com/blog/613089 Run the. Sh script in Linux./bin/sh ^ m: Bad Interpreter: no such file or directory is abnormal.   Analysis: This is caused by different system encoding formats: The. Sh file edited in Windows may have

Real-time server network speed monitoring (shell script)

Usage: #> Moniotr. Sh eth0 1 #! /Bin/bash # Test network width# The first parameter indicates the Real-Time refresh time after the NIC name. 1 indicates 1 second. Function usage{Echo "Usage: $0"Echo "e.g. $0 eth0 2"Exit 65}If [$ #-lt 2]

ADB shell top

  ADB shell top PID: ID of the process in the system CPU %-current instantaneous CPU usage # Thr-ProgramNumber of threads currently used UID-the user ID that runs the current process Name-program name Android. process. Media VSS-virtual set

Usage of sed in Shell (mode replacement)

ZZ: http://doc.linuxpk.com/80440.html Sed (Stream Editor) usage: 1. It is a non-interactive text stream editor. It edits a file or copies the text exported from standard input. 2. Specify the text line to be changed using the row number or

AIX shell (1)

AIX shell skills 1) command completion and history command function: set-o vi and then use (ESC \) to complete the file name in the command, use (ESC +) to view the historical command list, and use (ESC -) use the previous command. You can use esc

Linux Shell decompression command

. TarUnpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)---------------. GZDecompress 1: gunzip filename.gzDecompress 2: gzip-D filename.gzCompression: gzip filename .Tar.gz and. tgzDecompress:

Learning about single quotes, double quotes, parameter scopes, and eval in Shell

A custom net function is used to capture the IP address, netmask, and broadcast information of the network adapter from the ifconfig output result. ##ip netmask broadcastfunction net(){ name=$1 num=\$$2 /sbin/ifconfig -a | awk '

Shell programming in Linux

Prerequisites: The shell environment pdksh and Bash; the default shell environment in Ubuntu is Bash.   Syntax: Variables 1. There are three types of variables: environment variables, internal variables, and user variables. The environment

Shell script learning-10 (TR, uname, chkconfig command learning)

  The TR command reads data from the standard input device and returns the data to the standard output device after string translation. Cat filename | tr u n: used to replace the U in the filename file with N on the screen, but not in the actual

Shell script for counting the number of source code lines [00 original]

Today, I wrote a shell script to count the number of lines of source code in a directory, as follows :#! /Bin/bash Find.-Name *. Java> srcfilespathname Count = $ (WC-l srcfilespathname) # record the number of source files Echo "number of source

[Linux] shell quick learning summary [TBD]

Shell versionSH: Bourne shell, the original Unix shell.CSH: C shell.Ksh: Korn shell.Bash: Bourne again shell. Linux default shell.Tcsh: C shell extension.Pdksh: Ksh is not free. This is free. Echo-n "Date and time is:"-N does not wrap.Echo "Your

A shell script that checks and automatically installs the RPM required by oralce

When installing oralce in Linux, you must first check whether one pair of RPM has been installed. If you check them one by one each time, it will be very troublesome, so a script is simplified. This script takes only three steps: 1) Save the

SSH Secure Shell client garbled

Reference: http://feidaodalian.iteye.com/blog/697158It is said that this is an unsolved bug of the SSH Secure Shell client for many years. Both the client and the server must be 'utf-8' encoded.Find information on the Internet and find a simple

Usage of GNU Emacs by non-programmers ...... Shell mode 6th set command line abbreviations

It is a good thing. In many places of life, people like to use abbreviations, which saves time and effort. Bash also has its own abbreviation, alias,Alias always has a lot to do. Why not? As mentioned above, we often talk about a large number of

Shift usage in shell programming

Location parameters can be used shiftCommand left shift. For example shift 3Indicates the original $4Change $1, The original $5Change $2And so on. $1, $2, $3Discard, $0Do not move. Without Parameters shiftThe command is equivalent shift 1. Very

Linux bash shell Learning (20): Command Line Processing

  This article is also the seventh chapter of "Learning the bash Shell" 3rd Edition, "Input/Output and Command-Line Processing", four of the Reading Notes. Our goal is to read books thin. We will examine how the Linux system parses bash.   Step 1

Shell Example 1

Clear log files under/var/log Basic edition: 1 # Cleanup 2 # Of course, use the root identity to run this script 3 4 cd/var/log 5 cat/dev/null> messages 6 cat/dev/null> wtmp 7 echo" logs cleaned up." Version 2: 1 #! /Bin/bash 2 # correct start part

Scheduled shell script execution in linux

From: http://blog.csdn.net/jingxiangren/article/details/4745631 In oracle, you can use the dbms_job package to regularly execute pl/SQL and SQL processes. crontab can only be used for scheduled tasks at the operating system level, such as

Total Pages: 541 1 .... 204 205 206 207 208 .... 541 Go to: GO

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.