We often uninstall and install wscript. Shell, FSO, stream and other objects as needed. Next I will explain how to uninstall and install wscript. Shell, FSO, and stream objects.1. Uninstall the wscript. Shell objectRun regsvr32 wshom. ocx/u in cmd.2.
I would like to remind you that this client sends a UDP heartbeat packet to the server through port 6060. The package information is as follows:
17:19:35. 734433 IP 192.168.1.7.32773> 61.152.96.119.6060: UDP, length 2017:19:35. 784568 IP 61.152.96.
1. Diff
1) Name
Diff-find differences between two files
Synopsis
Diff [Options] From-file to-file
Description
In the simplest case, diff compares the contents of the two files from-file and to-file.
2) Option
A single letter preceded
It is simple and powerful to share shell usage and scripts that you may not know!
Before reading the following sections, we strongly recommend that you open a shell experiment, which is not a major commodity in Shell textbooks :)
! $! $ Is
To call a function in a shell file compiled by yourself, use the following method:
For example, you have compiled a test. Sh file as follows,
#============ Test. sh:
#! /Bin/shEcho_line (){Echo dateEcho "Wellcome to shell func! "}Echo_line
Shell string truncation problem:1. Linux Shell intercepts the first eight characters of the character variable by using the following methods:1. expr substr "$ A" 1 82. Echo $ A | awk '{print substr (, 1, 8 )}'3. Echo $ A | cut-c1-84. Echo $5. expr $
Here we recommend a few Linux books and good tutorials to help learners avoid detours. It can make boring things fun. Isn't it?
First recommended entry-level books:
Laruence's Linux basic learning for Private food (3rd)
It explains Linux in a
Full text link: http://www.61eda.com/Services/peixun/IC/200912/2232.html
The GUI debugging problem of visual JTAG encountered yesterday was finally solved. The riple direction is correct. The TCL script starts to add init_tk, and waits before
1. binary output file
Cat can open text files and cannot output files in binary format. Both the OD command and hexdump can complete the binary output task as follows:
(1) OD command
Od-tx4-an-v-W1 dos_setenv.sh
-T indicates the output type.-TX
$ {# String} $ String Length
$ {String: Position} In $ string , Extract substring from position $ position
$ {String: Position: length} In $ string , Extract substrings with a length of $ length from the position $ position
Software shelling can compress the volume to prevent resource modification and increase the difficulty of cracking. We need to debug a software. Generally, the non-compressed Shell needs to be removed first.
Program Debugging is supported. Common
20. Use the shell command in the pipeline to obtain system running data:
1. output the five commands that occupy the most memory in the current system:#1) run the ps command to list all processes running on the current host.#2) The fifth field is
Special characters
# Note
Comment # comment
In the middle of the quotation mark and # representation # itself
Echo $ {path # * :}# parameter replacement, not a comment
Echo $(2 #101011) # Number conversion, not a comment
; Separator
Command
In Linux, although there are various graphical interface tools, shell is still a very flexible tool. Shell is not only a collection of commands, but also a very good programming language. You can use shell to automate a large number of tasks. shell
In linux, the/proc/$ PID/status file provides the usage of the Process resources (memory, stack, semaphore, sub-parent process, although linux provides a lot of memory viewing commands, they all look at the overall usage and cannot view the memory
Script Writing Skills
Script File Name naming rules
The characters in the file name include
Letters, numbers, ".", "_", and "-". Note: The script file name cannot start with a number.
Name the script file name. Try to use the abbreviations of
Question 1: Get sequential numbers from 1 to 9Shell Method 1:
For I in 'seq 1 9'; do echo $ I; doneSimilar to seq 1 9 or seq 9
123456789
Shell Method 2:
For (I = 1; I Similar to for I in {1 .. 9}; do echo $ I; done
123456789
Python method
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