ADB overviewThe SDK's Tools folder contains an important command of the Android emulator Operation ADB,ADB is all called (Android Debug Bridge is the role of debug bridges. With ADB we can debug Android programs via Ddms in Eclipse. With this tool,
Inter-Program Collaboration mode-shell outShell out this noun although not how to hear, but perhaps in silent use, plainly is through a program through the form of a command to invoke another program, that is, System (2) systems call. The existence
Develop shell script to check nginx real-combat sharingFirst, this script implements the function:1, automatic check nginx under the agent node is normal2, through the page display status, the problematic node gives the page alarm and sound alarm.3,
First, the basic operation1. Important Shortcut keys
Tab
Complete commands, directories, parameters, filenames, etc.
CTRL + C
Force the current program to terminate
Ctrl+d
Keyboard input end
Here are some of the shells I've compiled and used for many years to share with you. Speaking of automation operations many people will talk about puppet, ansible,saltstack these tools I have used, and eventually gave up. The early configuration of
Sometimes back to SSH tunnel, the manual use of SSH to create these is not too big a problem, but if you try to boot, write a shell script and run the script in Rc.local is not successful, the reason is not known.Later discovered autossh this thing,
#!/bin/bashlocal_dir= '/tmp/test_huadan ' ip= ' 192.168.0.221 ' password= ' Lhm0125 ', des_dir= '/tmp/test_huadan ' list=$ ( Find $Local _dir-cmin-60) for i in $List do#echo $i if [-f $i] then expect This article is from the "Python" blog, so be
Atom-shell is the framework for GITHUB to develop desktop applications using WEB Technology (node. js, JavaScript, HTML 5) with the Atom Open source cross-operating system (Windows,linux,macos X).Atom is built on top of Atom-shell.Well, the above
Shell Scripting Learning The shell is the command parser that converts the user-entered instruction into a program that the appropriate machine can run.The shell is a program that acts as an interface between a user and a Linux system, allowing the
Draw is to draw out the graphical interface keytest is to get the keyboard Tetris is the whole gametetris.sh#!/bin/bashapp_name= "${0##*[\\/]}" app_version= "1.0" #颜色定义iSumColor =7# total colors cred=1# red cgreen=2# green cyellow=3# Yellow cblue= 4#
A. For commandTwo. While commandThree. Until command1.for Command Basic format1 for inch List 2 Do 3 Commands4 done1[Email protected]:~/testshell>CatFortest.SH 2#!/bin/Bash3#test forCommand4 5 forCityinchBeijing Shanghai Shenzhen Dalian6 Do7
Do not look at notes, for a long time do not have to forget, or you have to look at the notes often ah.A simple shell programShell Structure 1, #! specifies the shell2, #注释行3, commands, and control structures that execute the script. Step one:
Edit command:
Ctrl–a move cursor to beginning of line
Ctrl–e move cursor to end of line
Ctrl–l Clear screen (function with clear command)
Ctrl–d Delete the character at the cursor location
Ctrl–t the character in the position of
From:http://www.jb51.net/article/34322.htmThe bash shell supports only one-dimensional arrays, but there is no limit to the number of arguments.Declares an array:Declare-a Array(In fact, you don't have to declare it, you assign it directly to the
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