Commands commonly used by DOS, ADB, and shell

First, the meaning of the ADBthe full English name of ADB is Android Debug Bridge, which is Android debugging bridges; theadb executable is stored in the Android SDK, so you will need to download and install the Android SDK tool with the ADB command,

Shell determines whether a folder or file exists

File Comparison characters-e filename true if filename exists [-e/var/log/syslog]-D filename True if filename is a directory [-d/tmp/mydir]-F filename True if filename is a regular file [-f/usr/bin/grep]-L filename True if filename is a symbolic

Shell periodically transfers log files to cloud disk and periodically deletes cloud disk files

The shell script is processed periodically as follows: Cat /home/backup/logs_delete. SH #!/bin/bash/bin/find"*.log*" -mtime +4 -type f| Xargs mv {}/mnt/logs/nginx//bin/find"*.log*" -mtime +30 -type f| Xargs RM-L04 * *

Experimental three---shell programming

In addition to being an interpreter, the shell is a high-level programming language with variables, keywords, and a variety of control statements.Command historyHistory displays a list of historical commands, including its ownHistory 50 shows the

HADOOP04---Shell

After MySQL installation on Linux uninstall is not clean, ping server ping does not pass the ICMP protocol is closed, Ping is using the ICMP protocol. Export is a global variable that all users can log in to use.Introduction to 1.iptables firewall

Shell easy to confuse rules

This is I learn to make notes or to make notes on their own easy to remember the format is very important examples are reference I also made the color on the impression notes to distinguish it on the top of it. read for interactive scenarios

How to assign the effect of command execution to a variable like a shell under a bat batch

How do you implement a shell-like command to assign a value to a variable under bat?At first, it was really hard for me. With the familiarity of bat batch knowledge deepened.Learning to!!!Give me a chestnut:Svnlook UUID C:\Repository\test # What do

Shell Programming (ii)-IF judgment and special usage, file directory attribute judgment, case judgment

[TOC]Shell Programming (ii) One, the logical judgment in Shell Script 1.1 judgment Statement if1.1.1 format 1:if 判断语句;then commandfiExample 1# vim if01.sh //判断数值大小第一种方法用[],注意前后空格#!/bin/basha=5if [ $a -gt 3 ]then echo

Sort,cut,uniq of shell Learning file operation

In the use of Linux system, we often need to perform some operational analysis of the file, such as sorting the text, to remove weight, to intercept some of the rules of the field. Cut,sort,uniq is easy to use.1.sort: Generally there are three modes,

8.10 Shell Special Symbol cut command 8.11 sort_wc_uniq command 8.12 tee_t

8.10 Shell Special Symbol Cut command : Represents any arbitrary character? : Represents any single character#: Denotes comment characters\ denotes a de-semantic character| Represents a pipe characterThe Cut command is used to intercept a

Shell file lookup and compression commands

Locate command1.locate filenameFuzzy match as long as the file name contains the keyword can beNon-real-time lookup, faster than find.Rely on index database/var/lib/mlocate/mlocate.dbAutomatically run once a day to update the database.UpdateDB

Shell scripts: variables, file judgments, logical operations and other minutes

In the shell script, the variable definition, the reference each has the different way, in addition, very commonly has the file attribute judgment, the logical operation, the numerical operation and so on, the following record their attribute

Bash Shell concludes "II"

1. Exit status of the command (1), (Kw:exit status)Each command has an exit state, represented by a non-negative integerStatus code 0 indicates that the command is running without errorsNon-0 Status code indicates a command errorThe range of status

Centos7.2,shell script monitors CPU and SendMail auto alarm

Operating system: CentOS 7.2SendMail Automatic Alarm#完成时间: 2018.04.16#!/bin/bash#CPU 1,5,15###########################################################If [-e Detection_script]ThenMkdir-p/detection_script/Fi#############################################

Shell variables and basic flow control statements

An environment variable 1 overviewThe bash shell uses a feature called environment variables to store information about the shell session and the work environment, which also allows false data to be stored in memory so that the shell can run

Linux Commands Application Large dictionary-10th chapter shell-related commands

10.1 Commond: Suppress normal shell function lookups 10.2 exec: Replacing the current shell process with the Execute command 10.3 Bash:gnu's Bourne-again shell interpreter 10.4 Builtin: Execute shell built-in command 10.5 Enable:

Shell Script Programming Loop statements

ForWhileIfCase 1. for usage 1 for 变量 in 值1 值2 值3..;do 执行语句 done Usage 2for 变量 `命令`;do # 可以引用命令执行结果 执行语句done Usage 3for ((初始值;循环控制;变量变化));do 执行语句done #C语言风格的for循环用法For loop

Shell Script Programming Advanced

Preface: Before we get to the point, let's review the conditional tests on scriptingOne, Process Control Over-programming languagesA. Sequential executionB. Select executionC. Cyclic execution Sequential executionAs the name implies, it is

"Shell" Linux shell direct assignment and indirect assignment

What is direct assignment?1. The way the author directly assigns parameter values is called direct assignment.2. In general, an indirect assignment is assigned by an interactive method.Example 1:varl=arppinging.comThis is a direct assignment that is

Write a simple alarm system with the shell

Write a simple alarm system with the shell Create a directory structure mkdir -p /usr/local/sbin/mon/{bin,conf,shares,mail,log}mon //主目录bin //主程序目录shares //子程序目录mail //发邮件目录log //日志目录Program Main entry

Total Pages: 541 1 .... 280 281 282 283 284 .... 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.