This article describes the use of command-line options and command-line arguments in a Linux shell, and in bash, you can use the following three ways to handle commands
Row parameters, each of which has its own application scenario
Question
[Root@node1 ~]# Spark-shell--master yarn-client warning:master yarn-client is deprecated since 2.0.
Please use the master "yarn" with specified deploy mode instead.
The Using Spark ' s default log4j profile:org/apache/spark/log4j-defaults.properties
When vim modifies a file, it exits with such an error. The logs are as follows:It's not a big problem, it's just that when I got into the pit ssh, I was really taken into the pit.# 强制退出并保存:wq!No :!wq , I do not know whether the fate of the small
The error is as follows -/ ./ . the: -: toERROR cluster. Yarnclientschedulerbackend:yarn application have already exited with state finished! -/ ./ . the: -: toERROR client. transportclient:failed to send RPC8494797597505892687To/192.168.1.21:44578
This article is sponsored by Ilanniweb, starting in Slime Line the worldWant to get more articles, you can follow my ilanniwebThe company's business is to use Tomcat as a Web container, in order to more effectively utilize server performance, we
usage rights: All usersCommand: CHSHUsage:shell>> CHSHDescription: Changing the user shell settingsExample:Shell>> Chshchanging fihanging shell for User1Password: [del]New Shell [/bin/tcsh]: # # # [is the currently used shell][Del]Shell>> Chsh-l # #
Recently writing a shell script, I would like to use a For loop to read the contents of the file, but found that every line in the file has a space, obviously with a for loop does not work, my intention is to read a row of the file content, so
This is the shell command and command execution, the article commands here to download Command command execution, the previous one is the shell variables, condition judgments, control structures and functions, the previous section on what is Shell,
There are several ways to do this in Bash's arithmetic operations:Example of name syntaxArithmetic extension $ ((arithmetic)) r=$ ((1+2*3))Use external program expr expr arithmetic r= ' expr 1+2*3 'Use $[] $[arithmetic] r=$[1+2]Using built-in
Start Linx Shell's first article todayToday describes how PWD and CDs are used.The pwd means "Print working Directory", which displays the current location.PWD also has other available parameters-L (uppercase),-p (uppercase)-L is the same as the PWD
grepCommandgrepCommand Basic syntaxgrepThe command is to print matching lines of text, all of which are called Global Search Regular Expression and print out of the line; The basic syntax is as follows:grep[OPTIONS]PATTERN[FILE...]grep[OPTIONS][-e
Original: JavaScript's date format, which mimics the format of the date command in the shellThe current date is displayed in the shell[[email protected]]$ date '+%Y-%m-%d %H:%M:%S'2015-01-19 16:24:58It is inconvenient to format the date object in
2,WC [-LWM]
Options and parameters:
-L: only list rows;
-W: How many words are listed(English word);
-M: The number of characters;
3,Md5sum
Md5sum [Option]... [file]...
Print or check MD5. (128-bit) checksums.
With no file, or whenFile
Part 1: hadoop BinThe following hadoop bin is based on the actual needs of the project:Hadoop ShellHadoop-config.sh, which is used to assign values to some variablesHadoop_home (hadoop installation directory ).Hadoop_conf_dir (hadoop configuration
Shell script debugging technology Cao Yuzhong (caoyuz@cn.ibm.com ),
Software Engineer, IBM China Development Center
I. Preface
Shell programming is widely used in the Unix/Linux World. Mastering shell programming is also the only way to become an
[Erlang 0006] record and macro in Erlang we mentioned that record is a compilation function and there is no special data type in Erlang VM. if you want to solve the problem online and sometimes use record in shell, you have two options: 1. construct
Bourne shell
Introduction: Bourne shell basics and many other useful features, shell programming and organization.
Main content:Basic Introduction to. Shell, environment, options, and special characters. Shell variables User-Defined variables,
Reprinted from: http://blog.csdn.net/fox_lht/archive/2010/09/20/5897336.aspx7. Compound commands
Except for the simplest script, you rarely want to execute every command. Executing a group of commands or repeating a group of commands several times
Here we will first introduce the basic syntax of shell, including the beginning, comment, variables, and environment variables, however, laying a good foundation is a prerequisite for easy learning in the future.
1. Linux script compiling Basics
◆ 1.
The shell script deletes the folder N days ago. The date commands on linux and mac are different,
Background:Every day you build things and put them in different folders by date. For example, today's construction is put in, tomorrow's will be put
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