#!/bin/bash# Find all files larger than 1MB in the current directory, write the file name to a text file, Count # # Find command, Parameters: path address, command arguments,-size n (find files of length N)-type F ( Find a type of file, F normal
Linux Shell Common Tips (10) pipeline combinationTwenty. To get the system run data through the pipeline Combination shell command :1. Output the 5 most memory-intensive commands in the current system:#1) Lists all the processes that are running on
There are accidents, suddenly, with FileZilla download files on the FTP to the desktop, the prompt " cannot determine the drag-and-drop operation target." Because the shell is not installed correctly "The solution is simple, just take the following
Configuration Management Remote ScriptingVim/srv/salt/shelltest.slsShell_test:Cmd.script: #模块和函数-Source:salt://test/1.sh #脚本源路径-User:root #客户端执行者身份, can be other usersvim/srv/salt/test/1.sh#!/bin/bashTouch/tmp/111.txtif [-d/tmp/1233]Thenrm-rf/tmp/123
Consider the next, just own a little record, according to their own situation to record it, follow up with new things to add at any time. Oh, yes.
First, getting started with common sense1. Several commands1)!n: Executable nth command in
Backup of FTPPurpose : through Shell to upload the backed-up data to another server. FTP back up the server. Simulation Tomcat for production data. 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7D/BB/wKioL1bvOoaiyYeLAAAjXEUp800094.png "
Tag:shell binding ip/mac arp spoofing arp virus #!/bin/bash#function:count the relationship between IP and Mac in a C subnet#created by Comk at Mar.12.2016quitscript () { echo "User Interrupt, Quit ..."} Trap ' quitscript; Exit 5 '
In the process of learning Linux BASH Shell programming, it is found that many things are easy to forget because they are not used very often, so write an article to recordLS Displays the files under the current path, commonly used have-l show long
Date Created: 2016/02/29Update on: 2016/02/29
Shell variables cannot be left blank on both sides of the equals sign, otherwise the shell will mistake the variable name for the command name
Variables enclosed in double quotes can be replaced
/******************************************************************** * Shell Global and local variables * declaration: * To So far, when writing shell scripts, often by the shell function in the variable * scope confused, so today deliberately
Http://www.runoob.com/linux/linux-shell.htmlShell Pass ParametersIn addition, there are several special characters for handling parameters:
parameter Handling
Description
$#
The number of arguments passed to
This script is what you might need to do after you've just installed CENTOS6.6. When learning CentOS, you can run this script to do some configuration to help you not be bothered by these firewall yum SELinux IP.#!/bin/bash #判断是不是root用户if [[ "$
#!/bin/bash## Chkconfig:-95 15# description:tomcat Start/stop/status Script#Location of Java_home (bin files)Export java_home=/usr/local/jdk1.7.0_75#Add Java binary files to PATHExport path= $JAVA _home/bin: $PATH#CATALINA_HOME is the location of
Nonsense not much to say, directly on the code, the basic implementation of subtraction functions:#!/bin/bash# author by alsww# date : 2016.02.03# mail : [email protected]# blog : alsww.blog.51cto.comprint_info () { printf " Please enter the
the role of the shell is to convert a user-entered text command into an internal nuclear identification data instruction to the kernel for execution, and the kernel needs to be translated into binary to be executed by the CPU bottomthe user
#!/bin/bashRead-t 30-p "Please enter the partition you want to find (format Sda1~sda3):" AAAnumber=$ (df-h | grep $aaa | awk ' {print $} ' | cut-d "%"-F 1)If [$number-ge "70"]Thenecho "is not working properly, the message has been sent to your
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