[Shell Foundation]--find Command

Find command options-name Search by file name-type find a type of file (b for device block; d directory; C character device file; L sign (soft) link file; F normal file)-size find file length or size-prune exclude current folder when locating files,

Shell Script WC command Detailed!! Demand output Results

The WC command is used to print the number of lines of text, number of words, number of bytes, and so on (print the newlines, words, and bytes in files). In Windows Word has a "word count" tool, you can help us to the selected range of words,

Shell Programming Details (i)

Shell programmingThe language is divided into:Compiled languages: first to be translated into executable formatInterpreted language: Side interpretation side ExecutionVariables: The shell is a weakly typed programming language, and the variable does

Shell programming Details (II.)

File test:-e file: Test files exist-F File: Test files are normal files-D File: Tests whether the specified path is a path-R File: Tests whether the current user has read access to the specified file-W File: Tests whether the current user has write

Shell nested expect for loop nesting expect implementing file remote replication

Recently in the Zabbix, the company has six new servers. When the Zabbix client is deployed, the baby is really angry. Grandpa's always so repetitive work is also not AH. But as a war five slag, what else can be mixed with rice? Think of last year

Shell nested expect for loop nesting expect implementing file remote replication

Recently in the Zabbix, the company has six new servers. When the Zabbix client is deployed, the baby is really angry. Grandpa's always so repetitive work is also not AH. But as a war five slag, what else can be mixed with rice? Think of last year

The SED of shell programming

SED commandText Processing Three musketeers:Grep,egrep,fgrep: Text FilterSed: Stream editor, in behavior unitsawk: Text formatting tool, Report Buildersed [OPTION] ... {Script-only-if-no-other-script} [File] ...Common options:-N: Do not print the

Shell-View Weather

/bin binary Executable command/sbin System Management commands, which are stored in the hypervisor used by the system administrator/usr/bin a multitude of applications/usr/sbin Some management programs for super users$city = $argv [1];$list = ['

Shell to determine if the service is running

Using shell scripts to check service opening conditions#!/bin/bash# need to install Yum install Nmap first-y# checks whether the specified port is on function checkportstatus () {Status= ' Nmap-ss127.0.0.1-P $1| grep Open | Awk'{print $}'` if[

Linux Learning notes basic bash shell commands

The/etc/passwd file contains a list of all system user accounts and basic configuration information for each userUser name: Password: uid:gid: User's full name: User's default working directory: User Default shell programBy default, the bash shell

Linux Learning notes more bash shell commands

A monitoring procedure1.psOutput a lot of information about all programs running on the systemRunning the PS command will also open a processBy default, the PS command displays only the processes that are part of the current user running under the

Network card Traffic Monitoring script (Shell)

#!/bin/bash# Traffic monitor# Author:xiao guaishouget_traffic_info () {recv=`Cat/proc/net/dev |awk-F'[: ]+' '/' "$dev"'/{print}'' Sent=`Cat/proc/net/dev |awk-F'[: ]+' '/' "$dev"'/{print $11}''}get_traffic_rate () { in=`Echo$[($RECV-$old _recv)/1024x7

03. About the shell variables.

The shell supports custom variables.Defining variablesWhen defining a variable, the variable name does not have a dollar sign ($), such as:Variablename= "Value"Note that there can be no spaces between the variable name and the equals sign, which may

Shell Terminal shortcut key summary (MAC)

In summary, the development system is OS X 10.11.4, the tool is ITerm2, and the practice is currently based solely on that environment.1. Most commonly usedCmd+c: CopyCmd+v: PastingTAB: ComplementCTRL + A: Move to command start positionCtrl+e: Move

sed command under the shell

I. SEDsed (stream editor) translated as a stream editor , since it is an editor, its main function is to edit the text content of the corresponding editing, it can be specified in a predetermined mode of one or more files to automate processing,

Small code SHELL 30 minutes online

  -shell online   30 min-   û        please copy the code below   with the virtual machine liunx   Under the main file   named xxx.sh; terminal runs can simply enter  ./xxx.sh  to run     but there can be problem resolution 1:vim   yyy.sh   

Some easy-to-confuse concepts about shell scripting

[email protected] and $* the difference [Email protected]~] $vim my_fun.sh#!/bin/bash# [email protected] and $*My_fun () {echo "$#"}Echo ' The number of parameter in ' [email protected] ' is ' $ (my_fun "[email protected]")Echo ' The number of

shell--to Be Continued

Bash variables ? variable = value ? Reference by: $ variable [Email protected] desktop]# hi="Hello,and Welcome to $ (hostname). " Echo $HIHello, and welcome to localhost.localdomain.[ [Email protected] desktop]#? &>: Redirect all outputs? 2>&1:

Shell Text processing-split merge and filtering

Sort classification OperationsSample filesBoys in company c:hk:192:2192alien:hk:119:1982The hill:kl:63:2972aliens:hk:532:4892Star wars:hk:301:4102A Few Good men:kl:445:5851Toy story:hk:239:3972The command format for sort is: Sort-cmu-o output_file

Intranet version of Peanut Shell to solve the problem of no public network IP, combined with four-letter DTU use

Four letter DTU and peanut Shell configuration Application  in industry or industrial control monitoring management, mainly wireless remote monitoring, and everyone in the common use ofDTUor industrial routers and other wireless digital transmission

Total Pages: 541 1 .... 308 309 310 311 312 .... 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.