Recently, I have adopted a Linux operating system in the construction of campus network application platform to provide campus network users with DNS, Apache, POP3, SMTP, FTP and other services. Since the number of students in our school is more
The DB2 tutorial is: use shell to extract and update DB2 data. The shell written for work needs to process the DB2 database
Program Use shell to extract and process DB2 data.
# SQL Definition
SQL = "select AAA, BBB, CCC from mytbl1"
#
Environment: 2 kserver + iis5 succeeded. The default permission is iusr.
Iis permission: script executable Description: by default, the server. createobject method can be used to use installed components on 2 k servers.
For example, we all know
Dvbbs 7.1 skips the endless loop. The linzi method can only have one management permission, but it is only a beginner's level.
If it is an SQL version, it is difficult to crack the database. In fact, it seems that you only need to capture the
Location parameters can be usedShift command shifts left. For exampleShift 3 indicates the original$4 now becomes$1, the original$5 now becomes$2, etc. The original$1,$2,$3 discard,$0 is not moved. Without ParametersThe shift command is
Variable type
I always thought that the bash shell variables are non-typed and can also be specified.
Administrator@DADI ~$ declare -i num=10Administrator@DADI ~$ echo $num10Administrator@DADI ~$ num='iamaint'Administrator@DADI ~$ echo $num0
After
8.1 count disk usage
1. Disk Space is a limited resource.
2 df and du are important commands used in Linux to measure disk usage. df is short for disk free and du is short for disk usage.
3. Find the disk space occupied by a file (or multiple files):
Command: 1. Modify the chmod permission:
The general format of the chmod command is: chmod [who] operator [permission] filenamew h o. The meaning of o is: u file master permission. G. O other user permissions. A. All users (file owner, users in
I recently looked at some things about linux shell. Occasionally, I found it online when I realized a dynamic clock on the terminal.
Http://blog.csdn.net/reage11/article/details/8586200 this blog can easily understand, But I carefully read his code,
1. $0, $1, $2, and so on: the location parameter is passed to the script from the command line, to the function, or to a variable.
The following is an example to illustrate what these three parameters are and give readers a perceptual knowledge.
1)
#! /Bin/bashNAME = javaNOP =/bin/trueDATE = $ (/bin/date + "% Y-% m-% d % H: % M: % S ") ps-ef | awk-F "" '{print $8, $2}' | grep ^ java>/dev/null 2> & 1 case "$? "In0) # It is running in this case so we do nothing. echo "$ NAME is running OK. relax.
Before capturing signals, you must first understand how to use kill:
Kill-l view Signal
650) this. width = 650; "title =" kill-l.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/2315524596-0.jpg "alt =" 225340553.jpg"/>
Usage:
Kill-NUMBER
For is an important loop statement in shell programming:
Syntax 1:
For variable in list
Do
Action
.....
Done
List:
① 'Seq 1 10' #1-10
② {1 .. 10 }## 1-10
③/Etc/rc. d/rc3.d/K * # All files starting with K in the directory will be cycled once.
④
Preface * with the development of the entire Internet, there have been countless websites, large and small. As a result, users are increasingly enhancing their website UI and speed experience. For enterprises or individuals, winning the user
Introduction:
In the production environment, the application service generates fixed log files by date every day. Developers often need O & M personnel to provide these application logs, sometimes for a single day, sometimes for a period of time,
Assume that the same Command needs to be executed on multiple nodes (considering the uncertainty of the command). Generally, the for loop is used and the command can be directly called through ssh. For example, you need to view the root directory
Overview
Multiple duts are usually used during testing, saving a lot of time to upgrade the new version of the work script.Code
#! /Bin/bash # download new version, scp to dut and upgrade # author: godlaughing url = $1 wget $ url download_dir
1. Output inbound Steering
In UNIX, each process has three special file descriptor standard inputs.(Standard input), standard output, and standardError ). The three normally accept terminal input, which is displayed by terminal. HoweverUNIX provides
Sometimes you need to configure a static IP address for the server or something and you do not know that the IP address is not occupied. In this case, it is very convenient to use this script.# Cat arping#! /Bin/bashIPaddr = 192.168.0.IPFILE
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.