Variable type: global variable (environment variable) and local variable (local variable)Environment variables can be used in shells that define their shell and any child processes it derives from. Local variables can only be used in
Shell Project-Distribution system-build file distribution system
Requirement background for large companies, there must be a site or configuration file updates from time to time, and the use of the machine is certainly a lot of units, less
Debugging Methods for Shell scriptsThe shell provides some options for debugging scripts, as follows:-NRead the command in the script but not execute it to check for syntax errors in the script-VExecutes scripts while printing executed script
From http://vc88.javaeye.com/blog/658764
Shell if interpretation statement[Front and back Spaces] Leading space[-A file] true if the file exists.[-B file] If the file exists and is a special block file, it is true.[-C file] If the file exists
Bash
Shell has two popular shortcut key styles: emacs-based and VI-based, and can switch between them.
Set-o vi # Switch to VI StyleSet-O Emacs # Switch to the Emacs Style
It is based on Emacs by default, which I like very much. After all, I
The dollar sign ($) is often used in Linux. The following is what they represent:$0 shell command itself (including the full path)$1 to $9 indicates the shell Parameters$ # Number of parameters passed to the script$ * Display all parameters passed
Overview
Ipython is a python Interactive Shell, which is much better and more powerful than the default Python shell.
She supports syntax highlighting, Automatic completion,
Code Debugging, object introspection, support for bash shell commands,
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
Shell scripts are important for Linux system administrators and O & M personnel. I recently read the shell script. In order to systematically learn the shell script, I read the third edition of "laruence's Linux basic learning for Private food,
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:
When testing hadoop, The dfshealth. jsp Management page on the namenode shows that during the running of datanode, the last contact parameter often exceeds 3. LC (last contact) indicates how many seconds the datanode has not sent a heartbeat packet
The company's Linux server uses a common desktop and lacks a disaster recovery mechanism. The company stores a large amount of data on this server. Once a fault occurs, the consequences are
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
This problem was discovered when the SGE startmpi. Sh script was transformed. Consider the following shell code:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#! /Bin/sh
# Declare-I
Testline =
Securecrt is easy to set when you remember the password, so this person is used to securecrt, but the file upload function has never been figured out. Pshell has been used for a long time, because pshell has a powerful secureftp function. After
Data Stream redirection refers to the data that should appear on the screen after a command is executed and transmitted to another place, such as a file or device (such as a printer !)! This is important in Linux text mode! This is especially useful
1. Variable type in Shell
Shell variables can be divided into environment variables, location variables, pre-defined special variables, User-Defined variables,
2. environment variable
Environment variables in shell are shell predefined variables
Abstract: This chapter discusses the conditions used in Bash scripts, including the following topics: if statement use command exit status comparison and test input and file if/then/else structure if/then/elif/else structure use and test position
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