Use shell script to implement automatic backup of source files before VI/CP/MV

The following script backs up all the source files to be edited into the/bak directory, and all path locations remain unchanged, such as Vii/etc/hosts, and the/etc/hosts is copied to/bak/etc/hosts. # CAT/SH/VII #!/usr/bin/bash #判断源文件是否存在, exist

4 ways to execute the shell script and the difference introduction

This article mainly introduces 4 methods of executing the shell script and the difference introduction, this article explained the relative path way, the absolute path way, the Bash command call, the relative or the absolute way as well as the next

Linux use shell script to automatically submit Web 404 dead link to search engine

Shell Script Just do it, simply write a Shell script and it's done! Script Name: Web site dead chain generation script Script function: Daily analysis of the site the day before the Nginx log, and then extract the status code of 404 and UA for

One day a shell command Linux file Operation series-LN command detailed _linux Shell

In the hint: many of the translation of Ubuntu is literal literal translation, there are many problems, so I suggest you refer to my explanation here. Of course, it was also some of the suspicion of the text, I hope. Often operate on Linux, have a

HBase Shell Basics and Common commands detailed _linux shell

HBase is the Open-source implementation of Google BigTable, using Hadoop HDFs as its file storage system, using Hadoop MapReduce to handle the massive data in HBase, using zookeeper as a collaborative service. 1. Introduction HBase is a

How to force the removal of the RPM package _linux shell

Remove software To remove the software is very simple, just execute the following command: Copy Code code as follows: # rpm–e Xanim At this point, the user should be careful to use the name of the software Xanim, rather

Linux RPM Package Installation Query uninstall command Summary and Yum command detailed _linux Shell

Previously used Ubuntu, the installation of uninstall software is basically using apt-get this very simple, and the process of software dependencies will automatically help us deal with, similar to the fool-like installation. In addition, in the

Linux awk time calculation scripts and awk instructions _linux Shell

In Linux if planning time is a hassle, Use the awk script as follows BEGIN {fs= ":"; ofs= ":"} {total_seconds=total_seconds+$3} total_seconds>=60 {Total_seconds=total_ sconds-60 $2=$2+1 } {total_minutes=total_minutes+$2 $2=$2+1

Linux under SSH installation and SCP command using the detailed _linux shell

The Ubuntu default does not have SSH service installed, which can be done with the following command: Copy Code code as follows: yblin@yblin-desktop:~$ ssh localhost Ssh:connect to host localhost Port 22:connection refused

4 ways to execute a shell script and the difference introduction _linux shell

There are several ways to execute a shell script 1, relative path mode, need to first CD to script path Copy Code code as follows: [Root@banking tmp]# Cd/tmp [Root@banking tmp]#./ceshi.sh Script execution succeeded 2.

Shell script implementation detects cygwin the fastest mirror site _linux shell

This is a shell script, so first you need to install a basic Cygwin environment and, of course, curl. The principle is very simple, first download the latest MIRRORS.LST mirror list from cygwin.com, after simple processing, using curl to detect the

Multiple ways to perform mathematical operations through the shell _linux shell

In bash, Bash's math is a little awkward, it's hard to adapt and remember, so you have to write a blog post to make it easier to look through. There are four ways to perform mathematical operations: A, let order Copy Code code as follows:

Linux BASH Shell set font and background color _linux shell

BASH shell set font and background color Echo-e "\e[31mtest\e[41m" \e[30m change the display color of a character to black \e[31m change the display color of a character to red \e[32m change the display color of a character to green \e[33m change

Write a summary of some tips for robust bash shell scripts _linux shell

Many people use shell scripts to accomplish simple tasks and become part of their lives. Unfortunately, shell scripts can have a very large impact when they run an exception. It is necessary to minimize this type of problem when writing scripts. In

3 ways to allow cron to execute shell scripts in seconds in Linux _linux shell

Need to use shell script every 3 seconds to monitor the running state of a software process, found that Crond seems to only support to the points, do not know seconds, how to do? The first method: Of course the first thought is to write a trigger

Using the jquery plug-in extension to identify the type and version of the browser kernel and shell _jquery

Especially in today's various browsers are flying (it is said that only IE is the kernel of the browser there are 200 kinds of). Little brother today wrote a jquery based plug-in extension that identifies the type and version of the browser's kernel

Shell script to monitor if the site is abnormal

The shell monitors the site for unusual script, such as an abnormal automatic email notification to the administrator. Process: 1. Check that the Http_code returned by the Web site is equal to 200, if not 200 as an exception. 2. Check Web site

Introduction to Linux shell commands

In this article I introduce a few very useful and network-related commands I. Ifconfig This command is "translated to ipconfig" under windows and is used to display details such as network interfaces, subnet masks, and so on. Note: In each system,

Generate file Shell script and description (i)

Generate file Shell script and Description:#!/bin/shfile1=$ (date +%y%m%d%h%m%s) #定义变量获取当前时间ALM_TYPE=BOSS4ZC #定义变量instance_id=62100408# Defining variablesstatus=major# Defining variablesAlm_info=mysql Standby Host Downtime 10.**.62.**, please deal

Shell scripts monitor system load using the uptime command

#!/bin/bash#author:yanconggod#date:2017-01-19#version:1.0#  using  uptime  command to monitor system load postfix_path= "/usr /sbin/postfix "mailx_path="/usr/bin/mailx "email=" [email protected] "#  get native IP address ip= ' IFCONFIGENP2S0 |grep  '

Total Pages: 541 1 .... 69 70 71 72 73 .... 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.