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,
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 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
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
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
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
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
/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 = ['
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[
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
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
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
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
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,
-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
[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
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
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
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.