Wscript. Shell and Shell. Application are mainly used through the WebProgramWhen you call the EXE program, this permission is very large. A general website cannot use this service, but if it is used by hackers, it can gain more permissions, which is
There are three common file descriptors in shell programming:0: stdin, standard input. The default value is the keyboard input.1: stdout, standard output. The default value is screen output.2: stderr, standard error output. The default value is
From: http://share.blog.51cto.com/278008/583382
I wrote a very simple script to upload a file to a directory of HDFS in hadoop. When you enter the file name or directory name, an error occurs sometimes and you need to delete the incorrect
Generally, the standard login shell (not just bash) is read at startup.
The/etc/profile file also contains the. profile file under the user's home directory.
So you can make some variable settings in these places.
Such as language encoding, $
1. mv
1) mV-move (rename) files
MV [Option] source dest
MV [Option]... source... directory
Rename source to DEST, or move source (s) to directory.
2) Options
①-F, do not prompt before Overwriting
②-I, prompt before Overwrite
③-N, -- no-
1. netstat
1) netstat [Option]
Parameter descriptions related to routing:
①-R: lists the route tables. The function is similar to the route command;
②-N: The Host Name and service name are not used. The IP address and port number are used,
Principle: awk command, split formatted txt (txt file format separated by "|") into an array, and then splice it into HTML format (HTML-head-title-body-table)
Shell Source Code
#! /Bin/shfile_input0000'txt.log'file_output0000'txt2html.html
The following describes the direct insertion sorting, binary insertion sorting, table insertion sorting, and shell sorting in sequence.
1. Sort directly inserted
It is a bit similar to playing poker. Every time you grab a card, you can put the
The requirement today is to write the creation of all tables to the storage process.
After receiving the script for creating a table, it is silly. There are 60-70 tables, including stored procedures and views.
How can this problem be solved.
Style files are often processed row by row. In Shell, how to obtain each row of data, then process the row of data, and finally read the next row of data can be processed cyclically. There are multiple solutions:
1. Run the READ command.
The
Source: Old Boy's Linux blog Author: Old Boy
The problem is: 4) known: the content of/etc/hosts is
192.168.1.11 oldboy11.etiantian.org
192.168.1.21 oldboy21.etiantian.org
192.168.1.31 oldboy31.etiantian.org
#192.168.1.111
The terminal on Mac uses the Bourne-again shell command, bash for short.
Bash is a project developed and promoted by GNU.Extended Bourne shell
Bourne shellIs the original shell used by UNIX, authorSteven Bourne
Bash is the internal shell of many
I. Variable assignment
#! /Bin/bashA = "Hello World"#= No space is allowed on both sides!Echo"A is$"UnsetAEcho"This is $ {A} Nd"#It is best to use {} to expand the variable to avoid confusion.
Declare-I num1 = 10Declare-I num2 = 20Declare-I num3
WCCommandTo count the number of bytes, number of words, and number of rows in a specified file, and display the statistical results.
Syntax: WC [Option] file...
Note: This command counts the number of bytes, number of words, and number of lines
The host may be down, or there may be a problem with the network connection.
Sometimes such problems can also be caused by a misconfigured firewall.
The following problems may occur:
1. SSH is not installed when centos is installed.
2
Ii. Document assistance(File Associations)
File AssociationsYou can specifyShellThe methods used to display and process objects of a specific file type include the following:
◇ Which application is used to double-click a file?ProgramIt
ShellProgramIs a common file containing Unix commands. the permissions of this file should be readable and executable. Like a common executable program, you can either specify a full path name or put it in the path list specified by the PATH
Shell processes a function as a small script and can pass parameters to it like a normal script. By default, all variables defined in the script are global variables. Local variable: Local temp.
Passing arrays to funeter. The art of passing an
Use the nohup command to make Linux programs always run in the background (from: http://www.einit.com/user1/11/archives/2006/3603.html)
In Unix/Linux, you generally want to run a program in the background. Many of
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
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