Background:The default specified file directory for Hadoop's HDFs file system mount is/mnt/disk{n}. When operators, accidentally attached to the disk in other directories, such as/mnt/data,/mnt/disk01,/mnt/diska, HDFs will select the root partition,
my friend asked me this evening to talk about his OA system (Asp. net) updated today. Registering the algorithm seems to have changed. It seems that the encryption shell has changed. Ask him to help him. it is a DLL Program and it is net2.0. It
Preface:
WhateverProgramming LanguageConditional judgment is indispensable. Shell is no exception.
If list thenDo something hereElif list thenDo another thing hereElseDo something else hereFi
Ex1:
#! /Bin/sh
System = 'uname-S' # obtain the
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
Introduction to several common Shells
Linux provides a variety of shell options. Frequently used include Bourne shell (SH), C-shelll (CSH), KoRn shell (Ksh), And Bourne again shell (BASH ).
(1) The Bourne shell is developed by Steven Bourne Of
Set in Shell
In bash, export TZ = "Europe/Moscow" date-u-s "2011-10-29 21:55:00"Setenv TZ Europe/Moscow in cshell
Program(Also set environment variables)
In Linux, change the time zone and take effect immediately.Setenv ("TZ", "Europe/Moscow",
Part 1ArticleI said that in order to change users' criticism on their console interface, Windows Vista started and planned to change this situation.
The appearance of powershell.
1. compatible with shell commands
To be compatible with
(Reprinted)
Shell variables include local variables, environment variables, location variables, standard variables, and special variables.
2. 1. the local variable used in the life cycle of the shell script (that is, logging on to a shell to exit,
ADO componentFrom: http://hi.baidu.com/meijun1234/blog/item/9b642ec24efd1130e5dd3bbd.htmlFor example, the system disables ADODB. Stream.
Used in ASP
Server. Createobject ("ADODB. Stream"), an error is reported.
Microsoft VBScript runtime error
Post:
Http://blog.chinaunix.net/u1/43550/showart_372639.html
1. General wildcard characters
Wildcard characters are used for pattern matching, such as file name matching, path name searching, and string searching. There are four common wildcards:
*
Syntax
Wshshell. regwrite strname, anyvalue, [strtype]
ParametersStrnameIf strname ends with a backslash (\), this method sets the key instead of the value.The strname parameter must start with the root key of the following column.
Short longHkcu
SELF: http://www.justwinit.cn/post/3702/
Shell time:A = 'date + % Y % m % d'
Echo $;
# Sh data. Sh
20101028
#! /Bin/sh
# Log
Mydate = 'date + % d % m % y'
# Append mydate to the variable logfile that holds the actual filename of the log
Logfile
Document directory
Function Definition
Return Value
To put it simply, the popen () functionFunction Definition
#include FILE * popen(const char *command , const char *type );int pclose(FILE *stream);Function Description
The popen () function
1. Execute bash shell:(1) Go to the directory where the shell script is located: CD/root/tmp and execute./test. Sh.
(2) execute shell script:/root/tmp/test. Sh in absolute path mode.
(3) run the script CD/root/tmp bash test. Sh, sh test. Sh, or bash/
Document directory
Login shell vs non-login shell
. Bash_profile vs. bashrc
Which file is written?
When working in a Unix * like environment, you may encounter bash environment variable configuration. Every time you face some. Bash * files in
Chapter 3 shell Input and Output3.1.1 echoThe echo command can display text lines or variables, or input strings to files.Echo [Option] string--E parse escape characters--N: Do not use line breaks. By default, line breaks are used in Linux.-Escape
16. find:
The following is an example of how to use the find command:/> Ls-l# List the test files contained in the current directory-Rw-r --. 1 root 48217 Nov 12 00:57 install. log-Rw-r --. 1 root 37 Nov 12 00:56 testfile. dat-Rw-r --. 1 root 10530
Shell programming regular expression:
1: metacharacters []. *? + () | {}^ $
2: [a-z0-9] indicates one that matches any number and letter
3: [^ a-z] matches any letter
4: AB + c + indicates matching the characters before one or more plus signs.
5: AB
Test File OPERATOR:
-B file: if the file is a special file, it is true.
-C file: if the file is a special character file, it is true.
-D file: if the file is a directory, it is true.
-E file: true if the file exists
-F file: if the file is a normal
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