Use the method to copy it, save it as a shell file, such as security.sh. Upload it to a Linux server, execute SH security.sh, you can use the script!
The code is as follows:
#!/bin/sh
# Desc:setup Linux system security
# AUTHOR:CORALZD
#
1. Install Mutt mail Client
# yum Install Mutt-y
2. Create a script
# vi/etc/rc.d/mail_to_bak_daily.sh
Version One:
#!/bin/bash # ========================================================= # Please enter which
I am a new Linux user. Now I need to clean up a download directory of files, in fact, I just want to delete from the ~/download/folder in addition to the following format files so other files:
1.*.iso-All documents in ISO format.2.*.zip-All files
In general, it is necessary to determine the device type and system version in the development of Android programs.1, equipment type judgmentFor example, the judgment belongs to Google Nexus 5,nexus 7,MIUI V5, MIUI V6, Samsung devices, Meizu devices,
[Time: 2018-07] [Status: Open][Key words: Linux, WC, split, wildcard, escape character, Linux command]0 IntroductionThe purpose of this article is not to learn, just to strengthen the memory, so that the next time can be used directly without a
Shell Programming:Compiler: Also called interpreterThe shell provides us with another feature:Programming language: Turning human language into a machine-understandable languageMachine language (01 code), assembly language (still very low, growth
Sometimes installed Yum package, found that some have been installed, but if the installation, Yum needs to check the source, output a bunch of information, look very annoying, and then think of the first check after installation, if the Local has
echo Display in shell script with color display, echo display with color, need to use parameter-EThe format is as follows:Echo-e "\033[word background color; text color m string \033[0m"Example: Echo-e "\033[41;36m something here \033[0m"Where 41 of
1, write the service script/root/bin/testsrv.sh, complete the following requirements
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8A/90/wKiom1gz-oST82CyAAAqG5XhNMQ339.jpg "title=" Centos.jpg "style="
The problem is to choose the old boy teacher blog inside of the problem, extrapolate of which also extended two questions.Old boy teacher's blog address http://oldboy.blog.51cto.com/2561410/1718607Anyway1. Use the shell or Python to write a square
Excerpt from: Abs_guide: http://www.tldp.org/LDP/abs/abs-guide.pdf
the meaning of shell variable $#,[email protected],$0,$1,$2 in Linux is explained:Variable Description:$$ the PID of the shell itself (ProcessID)$! PID of the Shell's
Original link: http://blog.chinaunix.net/uid-22548820-id-3181798.html
Fork (/directory/script.sh): If the shell contains execution commands, the subcommands do not affect the parent's commands. When the subcommand executes and then executes
The Shell also supports functions. The Shell function must be defined before use.The Shell functions are defined in the following format:Function_name () { List of commands [return value]}If you prefer, you can also add keyword functions to
In the daily system management work, the need to write scripts to complete specific functions, writing shell scripts is a basic skill!In the process of writing, master some common skills and grammar can do most of the functions, that is, 2/8
Linux shell String Operations (length, find, replace) detailedString-related operations are often involved in the shell batch process. There are a lot of command statements, such as: awk,sed can do string various operations. In fact, the shell built
As already mentioned, variable names can only contain numbers, letters, and underscores, because some variables that contain other characters have special meanings, and such variables are called special variables.For example, $ represents the ID of
People who work with shell are familiar with shell programming in Unix/Linux. # is mentioned in all shell programming books #! /Bin/bash. What exactly does it contain? What does this string mean for the operating system? You may say, isn't it true
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