Http://www.1987.name/141.htmlShell Basics
Terminal printing , arithmetic operations , common variables
Search for specific strings in the specified directory under Linux and highlight matching keywords
Get standard input from a keyboard or
As a database DBA for Linux systems operations or Linux, there are many times when you need to write scripts to help us achieve some of the requirements, and if some content within the script can try parallel processing, it will greatly improve the
Article from my personal blog: (Linux shell) Chapter II-The Joy of command (a)In the previous chapter we described some of the syntax that we need to be aware of in the Linux shell, and then we begin to understand the common commands of the Linux
Linux shell script output with color textThe color of the text terminal can be generated by using the ANSI unconventional character sequence.Example: "Echo-e \033[44;37;5m BLUE \033[0m""Echo-e \033[44;37;5m BLUE \033[0m BLACK"The area that needs to
1. What is a shell?The shell is the user interface of the system and provides an interface for users to interoperate with the kernel. It receives the command entered by the user and feeds it into the kernel to execute.In fact, the shell is a command
12. Sort commands for Rowssort:1. Sort command-line options:
Options
Describe
-T
Separators between fields
-F
Ignore case when sorting based on character
-K
Define
1. man helps explain commands you are familiar with or unfamiliar withEg:man ls to view LS-related usageNote: Press the Q key or CTRL + C to exit, under Linux you can use CTRL + C to terminate the current program run.2.ls to view the directory or
This script can do a timed detection, beyond the set value, that is, to send a warning to the mailboxThe script uses the bc,sendmail,163 mailbox,Yum Install BC#!/bin/bash#system monitoring Scriptwhile [1]do# the machine needs to open postfix or
Set exers = objws. exec ("pscp-r-SCP-PW" & password & "& loginid &" @ "& host &": "& data_path & filename &" "& windows_path) However Test Of Hour When copying Bay File Ratio Relatively Large, copy Longer Bay time Of Hour When it comes
Suppose we define a variable:File =/dir1/dir2/dir3/my.file.txt
You can replace $ {} with different values:$ {File # */}: Delete the first/and its left string: dir1/dir2/dir3/my.file.txt$ {File ### */}: Delete the last/and its left string:
Processing of acprotect's OEP using encryption Shell
Attachment download: Shelling file and PDF
1. encryption process:
Acproctect v1.41
Analyze the theft of OEP entry point code
2. analysis process:
After loading, EIP = 00412000
00412000> 60
System# Uname-A # view kernel/operating system/CPU Information# Head-N 1/etc/issue # view the operating system version# Cat/proc/cpuinfo # view CPU Information# Hostname # view the computer name# Lspci-TV # list all PCI devices# Lsusb-TV # list all
Tag: Shell
Shell task control terms:
(1) Foreground task: Run in shell. The shell prompt does not appear before the task is completed, so other tasks cannot be run at the same time.
(2) Background task: Run in shell, but not exclusively in shell.
The columns in the text line are broken:
Awk 'in in {srand ()} {for (I = 1; I
The lines in the text line are broken down:
Awk 'in in {srand ()} {B [rand () Nr] = $0} end {for (X in B) print B [x]} 'Data
Shuf-n1000 data
Use a.txtas the patternto
Generally, we use tr to replace strings or delete specified strings.
The TR syntax is as follows:
Tr [Option]... set1 [set2]
-C,-C, -- Complement
First complement set1
Replace the characters not in set1 with set2
[[email protected] ~]$ echo
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
Recently, I am writing a gnome-shell plug-in. Generally, exceptions of the plug-in will be captured by gnome-shell. Once the exceptions of the plug-in are captured by gnome-shell, the plug-in will be reloaded up to two times ), because gnome-shell
[Awk Introduction:]
Awk can obtain part of the content from a text, or typeset the text so that it can be output in a certain format.
[Awk workflow:]
Awk will upload a row of file content to the memory and segment the content in this line
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