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

Shell Judge Linux System 32-bit or 64-bit command

In the previous article introduced the Shell to judge the various versions of Debian methods, in the actual use, the judge system is 32-bit or 64-bit is often used, today to introduce the content. Manually view the number of system digits To view

Shell standard output error >/dev/null 2>&1 analysis in Linux

The shell may often see: >/dev/null 2>&1 Eg:sudo kill-9 ' ps-elf |grep-v grep|grep $1|awk ' {print $} ' 1>/dev/null 2>/dev/null The result of the command can be defined as the output in the form of%> /dev/null represents empty device files >

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

Shell lookup Symbolic link and its approach to target introduction _linux shell

In Unix-like systems, symbolic links are common and we encounter a variety of processing work related to symbolic links.This article for you to introduce some of the practice of symbolic links, I hope to write a shell script to bring some help, the

About the directional output of the shell command 2>&1_dos/bat

MyCommand >mylog.txt 2>&1 should be the most classic usage. The result of the command can be directed output in the form of "%>",% representing the file descriptor: 1 is standard output stdout, 2 is standard error stderr. The system default% value

Linux using shell script to implement FTP automatic upload download code summary _linux Shell

1. FTP automatically log in to bulk download files. Copy Code code as follows: # # # # # # # # # #从ftp服务器上的/home/data to local/home/databackup#### #!/bin/bash ftp-nOpen 192.168.1.171 User Guest 123456 Binary Cd/home/data

Linux Shell Script Tutorial series (vi): arrays and associative arrays _linux shell

One, array, and associative arrays An array is an important part of a shell script that stores separate, independent data as a collection by means of an index. A normal array can only use integers as an array index, and associative arrays not only

Use the SHC tool to encrypt shell script details _linux Shell

SHC can be used to encrypt shell scripts, which can be converted into an executable binary file. After SHC the shell script, it generates two new files at the same time, one is the encrypted executable binary (the filename ends with. x), and the

How various parentheses are used in the shell _linux shell

What I want to say here is the parentheses in several shells, the braces and the bracketed variables, and the use of the command, as follows: 1.${var}2.$ (CMD)3. () and {}4.${var:-string},${var:+string},${var:=string},${var:?string}5.$ ((exp))6.$

Shell practical tip: Quickly remove space in a string _linux shell

In the process of sorting out the word library encountered a problem, some are actually the same keyword with a space, can not be normal to be heavy, then there is no way to quickly remove these characters in the middle of the space? After Baidu

Shell Scripting Nagios plug-in monitor resource occupancy _linux shell

In general, we only need to monitor the program process in the not on it. But this time, the company developed the program, the process is still in, but the deadlock. Lead to a wide range of effects, but even more importantly, do not know where the

Shell script implementation detects an IP network unblocked (including SMS alarm function) _linux shell

It took 1 days to write a script to detect whether an IP network is unblocked, but to detect whether the network is unblocked is easy to implement, but it is not good to add some restrictions. Copy Code code as follows: #!/bin/bash ######

Simple remote FTP timed backup shell script sharing _linux Shell

Let's get to the point. The company now has 2 servers, are CentOS systems, a local (LAN), a computer in the telecommunications room. Because the work needs, the daily backup room data to the local, has been FTP login, and then downloaded to the

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

Troubleshoot shell setup issues with Linux

Q: Today in Ubuntu 14 normal user SSH login shell found that the LS command to view the directory, the Discovery folder and files are the same color display! This is unreasonable, Linux will be based on the file type is different color display Ah!

Shell script collects the hardware information of Linux Server in batches fast implementation

Install the Ansible batch management system. (No, SSH remote command loop is also possible) Create a new table in a common database, using the information you want to collect as a column name, and provide the ability to insert with the shell.

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];

Linux Shell Scripting Learning Summary

Shell Programming:Bash:#!/bin/bash must be specified at the beginning of the shellHow the Shell executes:1../1.sh executes the 1.sh,1.sh in the current directory if the executable file2. bash/usr/local/1.shDefine variable aa= ' QQQ ' = cannot have

Shell Programming service scripting, file lock, and signal capture

Shell scripting is an essential skill for Linux OPS engineers and a very important skill, so it's only good to learn shell programming well. Basic grammar I will not speak, learn the C language of these languages, a little bit to understand the

Total Pages: 541 1 .... 82 83 84 85 86 .... 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.