Time when shell scripts are used for debugging

When using shell scripts for debugging, the company recently tested the server and often needed to adjust the system time. If one or two servers were better than half and a little bit more, there was a variety of confusions. I was so crazy about

Automatically mount NTFS at startup of ubuntu-solve the problem that chmod fails to use NTFS

Automatically mount NTFS at startup of ubuntu-solve the problem that chmod fails to use NTFS. Today, I am writing a program in C and I find that I have no permission to execute it when I prepare to run the E drive. Then, the chmod 777 hello command

Linux glibc upgrade operation

Linux glibc upgrade operation build install glibc www.2cto.com download glibcwget http://ftp.gnu.org/gnu/glibc/glibc-2.3.2.tar.gz download glibc-linuxthreadswget http://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.2.tar.gz unzip tar-zxvf glibc-2.3.2.

Site backup script

Install an lftp yum-y install lftp script to automatically back up the database www.2cto.com # every day #! /Bin/bash/usr/local/mysql/bin/mysqldump-uusername-ppassword -- databases blog>/home/wwwroot/backup/databackup _ $ (date + % Y % m % d ). SQL

Configuration examples in Linux

The Bash Shell in Linux does not support regular expressions. The regular expressions are Shell commands and tools, such as grep, sed, and awk. However, bash Shell can use some metacharacters in regular expressions to implement The Globbing function,

Use dd to add swap size

Use dd to add the swap size. The current swap size is 5951 MB. Create an empty file www.2cto.com 512M [root @ zwc ~]. # Free-m total used free shared buffers cached Mem: 3947 793 3154 0 15 367-/+ buffers/cache: 410 3537 5951 Swap: 651 5300 [root @

Linux network status check script

Linux network status check Script 1: Checks network connectivity through regular sending and receiving email www.2cto.com #/bin/bash echo "Daily test mail" & gt; state.txt mail-s Server_State abc@md1.21.co.jp state.txt ping-c 5 202.101.172.35>

How to add a hard disk to Centos

How to add a hard disk in Centos full tutorial Linux hard disk recognition: sda indicates 1st SCSI hard disks. hda indicates 1st IDE hard disks. content 0 indicates 1st USB optical drives. Generally, the "fdisk-l" command can be used to list the

Development Environment setup in Linux

Linux development environment setup recently, the younger brother tried to download the Linux development environment and set up the Linux commands. This really makes setting up the Linux environment easier. Next I will introduce some simple

How to uninstall GoldenGate on Linux and UNIX

How to uninstall GoldenGate on Linux and UNIX 1. log on to the database server (as oracle) where the GoldenGate software isinstalled.2. Change directory to the GoldenGate home: cd/home/oracle/ggs3. Start GGSCI: ggsci4. Stop all GoldenGate processes:

Full-text search of dovecot

First, install the Lucene plug-in for dovecot. If you use FreeBSD port for installation, you only need to make config, select LUCENE, and then portmaster dovecot. The configuration is also easy. I have already made the index and data separation, so

Compare if in shell

In shell, the key to comparing two strings is: www.2cto.com if ["$ test" x = "test" x]; then: 1. Use a single equal sign 2 to notice that there is a space on both sides of the equal sign: This is a unix shell requirement 3. Note that the last x of "$

First glance at linux system services

Daemon category:Based on the startup and management methods, it can be divided into standalone stand alone, and services managed in a unified manner through a super daemon.Stand alone: it is started independently and has been in memory since it was

Show status Details

Show status provides the server status information (like mysqladmin extended-STATUS ). The output is similar to the following display, although the format and number can be a bit different:Meaning:Aborted_clients indicates the number of dropped

Linux Shell Script Parameters

$0 ---- the name of the current program is actually an internal parameter, different from $1, $2... because it must have!$ # ---- The total number of parameters passed to the program, that is, the legendary array size$? ---- When the previous code

Rsync + inotify for real-time unidirectional Synchronization

Source server 10.13.114.16Target Server 10.13.114.17Objective: To synchronize the source server 10.13.114.16/home/admin/www/folder files to the/home/admin/www directory of the target server 10.13.114.17 in real time Step 1: Install rsync on the

Nginx log Segmentation

The core of the following script is: Compress the log file every morning and move it to the corresponding year/month directory. Then, regenerate the log file and record the log.   #! /Bin/bash Logs_path = "/home/wwwlog/" # log storage locationYear =

Uninstalling/installing BIND in Solaris

Pkginfo | grep bind // check whether bind is installed Pkgrm Bind name // uninstall Bind Directory of Cd/bind Gunzip bind-9.4.3-P3.tar.gz // decompress the tool to generate bind-9.4.3.tar Tar-xvf bind-9.4.3-P3.tar // A bind-9.4.3-P3 directory is

Opencv and eclipse under fedora15

If the installation version is installed on a DVD and the opencv of the project application is checked during customization during the installation process, the system will bring the opencv2.2 version, but the header file cannot be found, this is a

Two shell scripts jvm

The first regular capture of server JVM-related information#! /Bin/sh # get_current_time export JAVA_HOME =/opt/jdk1.6.0 _ 10/export PATH = $ JAVA_HOME/bin: $ PATH export CLASSPATH =.: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/dt. jar: $ CLASSPATH

Total Pages: 5467 1 .... 4580 4581 4582 4583 4584 .... 5467 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.