The method of encrypting shell/.sh script under CentOS

But shell scripts are readable and writable, and are likely to reveal sensitive information, such as user name, password, path, IP, and so on. Similarly, sensitive information is leaked when the shell script is run. SHC is a tool for encrypting

File backup downloading and uploading of shell script in CentOS system

# # # # # # # # # #从ftp服务器上的/home/data to local/home/databackup#### The code is as follows Copy Code #!/bin/bashftp-nOpen 192.168.1.171User Guest 123456BinaryCd/home/dataLcd/home/databackupPromptMget *CloseBye!

Use shell script to configure iptables firewall in Linux

To have a holiday, today is really idle egg pain, originally just want to write a configuration iptables script, did not expect to be so complicated by their own, or to share out to everyone, interested can change their own.PS: This script only

Limit IP logon shell script when Linux system exits

in a production environment, it is possible that other administrators or users may modify Hosts.allow to allow more IP landing machines; In order to facilitate unified management, we can modify the Allow and deny files to the default settings when

Linux Daemon Automatically restarts shell script sharing

#!/bin/sh #本脚本为守护进程, ,  automatic restart process   Function check_and_kill_and_start () {log_file=$1 If a process zombie is found Name=$2 dead_duration=$3 # echo  "check the progress " $ps _name ymd=$ (date +%Y-%m-%d) Log_file=${log_file}${ymd}.log

Introduction to the use of shell scripts in lamp environment installation

cd/lamp/libxml2-2.6.30./configure--prefix=/usr/local/libxml2/MakeMake installcd/lamp/libmcrypt-2.5.8./configure--prefix=/usr/local/libmcrypt/MakeMake installCd/lamp/libmcrypt-2.5.8/libltdl./configure--enable-ltdl-installMakeMake installcd/lamp/zlib-1

The Linux shell command file locking function

      in industrial applications, some files from industrial equipment will be placed in the specified directory, as these files need to be reformatted before being processed by higher-level software. At this point the processing of the script is

Share a key compile shell script code to install GCC

Today, I saw an article with a shell script and a makefile that would automatically download all of the required packages and compile GCC: The code is as follows Copy Code $ # Download the scripts using wget.$

Linux shell Simulation multithreaded implementation of the task detailed

The shell itself cannot be multi-threaded, but it can simulate multithreading by starting the subprocess and putting the child processes into the background, in order to increase the efficiency of the script while not significantly increasing the

Nginx Log Analysis shell script in Linux

When using a virtual host before, look at the Web site run log, found a lot of abnormal malicious access. At that time because they do not have the system permissions can not be able to screen these actions. Now have their own cloud host, front-end

Common shell command combination in Linux

Change the contents of the file in each line in the 20140321_files.txt file to Action_begin,Sed-i "s/action/action_begin/g" ' Cat 20140321_files.txt ' Replace the file contents tags in 20140321_files.txt with tags.phpSed-i "s/tags/tags.php/g" ' ls 2

Linux shell script to pass an array to the inside of awk to process the _linux shell

A few days ago I talked to a few colleagues about a problem: How do you pass an array to the inside of awk for processing in a shell script? No way was found at that time. Two days ago in the QQ group to discuss awk, the conversation inadvertently

How to properly use the Linux command –du_linux Shell

This article briefly describes how to use the Linux command –du, you need friends can refer to. Du (disk usage) Feature Description: Displays the size of the directory or file. syntax:du [-abcdhhklmssx][-l ][-x

Shell script Programming Loop statement _linux Shell

It is common to repeat a series of commands while running a script, when we need to use a loop statement to do this. One, for command Format: for variable in list; Circulation body Done The for command traverses each value in the list and exits

30-way Shell exercises

1 First Test "/etc/vsftpd", "/etc/hosts" is the directory, and through the "$?" Variable view returns a status value to determine the test result.[Email protected] ~]# [-d/etc/vsftpd][[email protected] ~]# echo $?1[[email protected] ~]#

Install Zsh's shell under Mac to replace the original bash

ZshThe Mac system comes with zsh, which is generally not the latest version, and can be installed by Homebrew if requiredBrew Install Zshzsh --versionversion of Zsh can be viewed by commandUse echo $ZSH_VERSION the command to view the ZSH version

Execute shell script and Subshell.

Two methods Start a new shell and execute the shell scripts. Shell scripts at the moment. The scripts that brings up another shell will be added to the front of the scripts file. #! /bin/shThe first approach is to point out

Shell Scripts split Nginx logs and regularly clean up [do not restart nginx]

The script is as follows:#! /Bin/bash# Nginx access log segmentation shell script# Log DirectoryLog_dir = "/usr/local/nginx/logs /"Cd $ log_dirTime = 'date + % Y % m % d -- date = "-1 day "'# Log Retention daysSave_days = 15# Location where the log

Simple nginx log segmentation shell script

Nginx log access. log is not separated, and access records are always recorded in this file. For a long time, log query and file system are not good, so segmentation is required.Vim/data/scripts/cut_nginx_log.sh #! /Bin/bash# Auto-run this

Total Pages: 541 1 .... 289 290 291 292 293 .... 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.