Shell Common Operation command series in Linux: Service operation

Basic operation of the service/etc/init.d/sendmail Start # Launch service/etc/init.d/sendmail Stop # Close Service/etc/init.d/sendmail Status # View the current status of the service/date/mysql/bin/mysqld_safe--user=mysql # start MySQL background

Using shell script to build a virtual host method

This afternoon wrote a simple one-click Automatic Virtual Host shell script, the script to implement automatic configuration Nginx virtual host, automatically create FTP account, automatically create a database, users, and automatically achieve

One day a shell command Linux text Series-file command usage _linux shell

Introduction to Linux file commands: This command is used to identify file types and to identify the encoding format of some files. It gets the file type by looking at the header information of the file, not as if Windows determines the file type

Bash Shell Script Learning Summary _linux Shell

1. Character truncation:If the character truncation is a generic path, you can use both the basename and dirname tools:BaseName can truncate a filename from a file path For example: Copy Code code as follows: $

Peanut shell and pcanywhere graphics and text Tutorial all Introduction _ Server

A name to know what PcAnyWhere mean, PcAnyWhere is a set of established remote control software, can run under windows95/98/nt/2000/me. Users can remotely manage computers connected to the Internet or the intranet through a master or a controlled

Shell implementation Multilevel menu system Installation Maintenance script instance sharing _linux Shell

Demo Effect: 1, the first level menu 2, Level two menu 3. Perform operation Script reference: Copy Code code as follows: #!/bin/bash #author Lic (Oldboy Linux student) #date 1304 disk_no= "/DEV/SDA1" Nginx_dir= "/usr/local/

7 ways to use the Shell function introduction _linux Shell

1. Define functions within the shell file and refer to: Copy Code code as follows: [~/shell/function]# Cat factorial.sh #!/bin/bash function factorial { Factorial=1 For ((I=1;i Todo factorial=$[$factorial * $i] Done

Windows Write shell script in Linux execution error resolution _linux shell

Write a shell script under Windows, upload to Linux run the Times wrong: Copy Code code as follows: [Root@localhost test]#./test.sh -bash:./test.sh:/bin/sh^m:bad interpreter:no such file or directory Test.sh Source: Copy

Linux Shell Custom Function method (definition, return value, variable scope) _linux shell

First, define the shell function (define functions) Grammar: [Function] funname [()]{Action[Return int;]} Description 1, can be defined with function fun () or directly fun (), without any parameters.2, the parameter returns, may display adds:

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

Unix Shell Scripting Programming Knowledge point

Scripting programming languages and compiled languages: Scripting programming Language: (Bash) The scripting language is usually interpreted (interpreted), which is read into the program code primarily by the interpreter (interpreter) and is

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  '

Using shell scripts to implement LANMP one-click Installation

Use shell scripts to implement a one-click installation of the LANMP system. The operating system used is CentOS 6, which does not differentiate between 32-bit and 64-bit, requiring the machine to connect to the Internet. Supports both LAMP and LNMP,

Syntax error for the For loop in the shell (syntax Error:bad for loop variable)

This error occurs because some Linux systems use Ash to compile shell scripts by default, as is my machine, but the scripts I write should be executed with bash. Although I noted in the beginning #!/bin/bash, as if it is still the default to find

Linux shell Scripting--building basic scripts (i)

Create a shell scriptWhen you create a shell script file, you must specify the shell to use in the first line of the file, in the format:#!/bin/bashCreate and execute SH scriptCode 1-1[Email protected]:/data# cat demo1 #/bin/bashdatewho[email

1th Linux driver ___ Compiler shell driver

In the previous blog post, we have learned how to coordinate how each level in the whole system works, and the command issued by the application layer reaches the drive layer under the kernel, thus achieving the purpose of operating the hardware

Use Shell to delete files from three days ago or three days in Linux

Description: +n is greater than N,-n is less than n, n is equal to N.Find/-amin-30-ls # finds files accessed in the last 30 minutes of the systemFind/-atime-2-ls # finds files accessed in the last 48 hours of the systemFind/-mmin-10-ls # finds files

Classification and usage of shell commands under Linux

Guide When you're going to really manipulate your Linux system, there's nothing like a command-line interface that lets you do that. To be a Linux master, you must be able to understand the different types of shell commands and use them

Linux file Remote transfer client shell script vs. distributed client time synchronization scripts

#! /bin/bash# transferring code and scripts to the Worker node # change the current working directory CD ${Amazoncrawler_home}#读取worker节点ip列表i=0 whileRead Line1 Do#去除空格 line1= ' echo $line 1 | Sed s/[[:space:]]//g ' #若为空则忽略本行if["$line 1" x = x];

Shell Script Loop statement--until loop

Until cycleThe environment used to perform loops when a proposition is falseWhen a proposition is false, it enters the loop; exit the loop when the proposition is trueOr if the condition is not satisfied, enter the cycle of the sceneIn logical

Total Pages: 541 1 .... 52 53 54 55 56 .... 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.