1, mkdir newdir: New directory2. Touch filename: New file3. Vi/vim filename: Edit file4. grep [-ACIVN] [-A] [-b] [--color=auto] ' Search string | | Regular expression ' filename : A matching row was found from the file and displayed-A binary file
Linux command and ShellThe so-called Shell is the command interpreter, which provides programming interfaces that can be programmed using programs. Learning the shell is very important for Linux beginners to understand Linux systems. LThe shell of
+++++++++++++++++++++++++ +++++shell Foundation +++++++++++++++++++++++++++++++1. Shell overviewShell definition:The Shell is a command-line interpreter that provides users with an interface system-level program that sends a request to the Linux
The Linux/shell command is primarily intended to address:1, check whether a port is occupied;2, check which process is occupied by a port;3. See which ports a process occupies;For example, my Tomcat failed to start, the log display port is occupied,
1. At the command terminal to get root user rightsIn the terminal, enter:sudo passwd rootEnter new UNIX Password: (enter your password here)Retype new UNIX Password: (Determine the password you entered)Passwd:password updated successfullyLater, if
Break: exit the loop body continue: ends this loop and enters the next loop.Special usage of while 1: While: dodone the above is an endless loop of while.Special while usage 2: While read linedodone Function: FunctionSyntax format: Method 1:
Since HDFS is a distributed file system for data access, operations on HDFS are basic operations on the file system, such as file creation, modification, deletion, and modification permissions, folder creation, deletion, and renaming. Pair
HDFS
Parse all commands in hadoop HDFS (the operation process is your own idea. You are welcome to correct them)
Interface Name
Function
Procedure
Get
Copy the file to the local file system. If multiple source files are
The TR command does not accept specified file parameters, but only translates standard input. tr is short for translate, that is, translation. Note that it cannot translate sentences, only one character can be translated.
First, define the variable:
Hadoop supports command line operations on the HDFS file system, and supports shell-like commands to interact with HDFS file systems. For most programmers, shell-like command line operations are quite familiar, in fact, this is also one of the great
Some linnux commands have very powerful functions, mainly because they support many Command Options. For example, the [IP] command can be used to configure and manage IP addresses and route entries. This command can complete all the functions
Tag: Shell
In Shell, some symbols are processed differently under different definitions. There are three main methods to define them:
(1) single quotes
(2) double quotation marks
(3) reverse quotation marks
Double quotation marks and single
1. Introduction to IFS
The shell script has an internal domain separator called ifs (internal field seprator. The complete definition is the shell uses the value stored in IFS, which is the space, tab, and newline characters by default, to delimit
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
Many regular expressions are used in the previous grep section. This section uses regular expressions in awk condition operations. Awk
Entry Level
Entry level: strings like 1, 2, 3, 4, and 5
#! /Bin/bashvar = "1, 2, 3, 4, 5" Var =$ {var //,/} For I in $ var; do echo $ I; done
In this way, the results can be output.Shap level
In the preceding example, the split string cannot
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
The cut command is similar to awk. It extracts information from the line and is an awk of the feature weakening version.The format of
Man Bash:
Special ParametersThe shell treats several parameters specially. These parameters mayOnly be referenced; assignment to them is not allowed.* Expands to the positional parameters, starting from one. WhenThe expansion occurs within double
In the shell command terminal, Ctrl + n is equivalent to the downward direction key, and Ctrl + p is equivalent to the upward direction key.
You can use them or the arrow keys in the Command terminal to quickly find historical commands. This is
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