How to Use SFTP to batch transfer files in shell scripts
The main steps are as follows:
1. generate key pairs for local users running shell scripts2. Distribute the public key to the remote server that SFTP wants to log on.3. Write and run shell
TheBash debugger Project (bashdb) lets you set breakpoints, inspect variables, perform a backtrace, and step through a bash script line by line. in other words, it provides the features you have CT in a C/C ++ debugger to anyone programming a bash
Options and parameters:
For example, the following command line:./Test. Sh-F config. conf-v-Prefix =/home
We call-f an option. It requires a parameter, that is, config. conf.-V is also an option, but it does not need a parameter.
-Prefix is called a
Uniq
The uniq command can remove duplicate rows from sorted files. Therefore, uniq is often used with sort. That is to say, to make uniq work, all repeated rows must be adjacent.
Uniq syntax
[Root @ WWW ~] # Uniq [-ICU] Option and parameter:-I:
In makefile, shell commands are often used, and $ VaR are often used. What is the difference? The difference is big. Do not consider using $ VaR in the command line of the makefile rule to share the variables of makefile with the shell. Here, only
ADB shell dumpsys meminfo
The following information is displayed:
Currently running services:Meminfo-------------------------------------------------------------------------------Dump of service meminfo:Applications memory usage (Kb ):Uptime: 5712383
How to reference defined environment variables in crontabA shell script/root/test/Shell/test_crontab_env.sh uses an environment variable test_crontab_env = test_crontab_env.Test_crontab_env exists in/etc/profile.For example:#! /Bin/bashEcho "'date +
Search for foreign materials:
Source: WinlogonCategory: NoneEvent ID: 1002Description: The shell stopped unexpectedly and assumer.exe was restarted.
1-NVIDIA put out a bad driver "nvtuicpl. cpl "which Windows Update may have placed on your system (C:
Linux shell scripts that safely kill Tomcat processes, as many good script programming skills are used in this script, I would like to share with you;
## Firstly find the process of the tomcat ....Tomcat_process_str = 'ps aux | grep 'java. * Tomcat '
Sometimes we need to check the correctness of IP input and the correctness of the network mask, written in shell script:
# Verify IP address correctness check_ip_format () {echo $1 | grep "^ [0-9] \ {1, 3 \}\. [0-9] \ {1, 3 \}\. [0-9] \ {1, 3 \}\. [
According to http://hi.baidu.com/only8731/item/b971fa127c0dd45b2b3e227e
Rpm-Qa | grep vsftpd check, no results
In fact, it is installed based on http://blog.sina.com.cn/s/blog_a403a0f801010fih.html. you can use chkconfig later.-List: Nothing is
Shell script Learning (2): conditional statements and loop statements 1. conditional statements
First, when it comes to conditional statements, we have to first talk about the judgment of the conditional expressions. What types of conditional
Shell script Learning (III): Shell functions and some common symbols and commands
I. Shell functions
Like C, Shell functions encapsulate commands and statements that have fixed functions and are usually used repeatedly in a single function, if you
Shell learning 2: ASPack 2.12 shelling
SkyjackerHttp: // blog.csdn.net/skyjackerEmail: hemiaoyu gmail.comQQ: 677055172007-2-10
1. Shelling Process
Automatically write a simple form program.Use aspack2.12 shelling (by using a volume) to generate the
1. Create and run Shell programsWhat is a shell program? Simply put, a shell program is a program that contains several rows.Shell or Linux Command file.Like programming in advanced languages, writing a shell program requires a text editor, such as
Linux mobile phone DIY. Shell application extension 1. Random incoming ringtone (e680 Series)
Papayas
2007-03-18
I. What is shell?
Before getting started, I always used to copy some stuff from the Internet to "enrich" the content of the
1. Regular generation.
Search an English article on the Internet today, get a, http://web.eecs.umich.edu /~ Silvio/teaching/eecs598/lectures/lecture10_3.pdf. I guess there should be other PDF addresses. I tried several other addresses, such as
From: http://bbs.hx95.com/read-htm-tid-230463.html
I. Introduction to SSH
SSH is the Secure Shell protocol. The full name is secure shell protocol or secure shell. Its operating principle is similar to telnet, but it has higher security. By using
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.