Shell Script (ii)#find查找文件 to find based on time, name, UID, GID, permissions, size, etc.A file or directory accessed within #-amin-10:10 minutes; a file or directory accessed +10:10 minutes ago. The time unit is minutes.#查找10分钟之前30分钟之内访问过的文件或目录Find/
Atom-shell is the framework for GITHUB to develop desktop applications using WEB Technology (node. js, JavaScript, HTML 5) with the Atom Open source cross-operating system (Windows,linux,macos X).Atom is built on top of Atom-shell.Well, the above
Sed is a good file processing tool, itself is a pipe command, mainly in the behavior of the unit processing, you can replace the data rows, delete, add, select and other specific work, the following first understand the use of SEDThe SED command
What is a function?A function is a collection of commands, represented by a name, called a function name. The function name has the same naming convention as the variable.Once the function is defined, execute the name as if it were a bash command
Process control can be handled differently depending on the situation, and the specified program area can be executed repeatedly, demonstrating the productivity of the program. In the bash shell, Process Control can be divided into two main
Edit command:
Ctrl–a move cursor to beginning of line
Ctrl–e move cursor to end of line
Ctrl–l Clear screen (function with clear command)
Ctrl–d Delete the character at the cursor location
Ctrl–t the character in the position of
Due to a large number of customers under the core of the room, which unavoidably many large customers, is so-called tall tree catches, the recent computer room some customers are always traffic attacks, the prevention method can only be found
Fundamentals of the ten-year OPS series-LinuxZeng LinContact: [Email protected]Website: www.jplatformx.comCopyright: Please do not reprint the article without permission
First, IntroductionAs scripts become more complex, you need to see where
IntroductionThe shopt command allows you to set optional parameters for the shell.shopt [-PSU] [optname ...]-S turns on an option.-U turns off an option.-p lists all the options that can be set.Extglob OptionsIf the EXTGLOB option is turned on, the
1.Linux composition kernel, shell, tool program has Sh.bashAn example!#/bin/bashEcho 'Before execution chmod +xExecution./2. a little trick cp/dev/null/var/log/apache2/access.logUse/dev/null to apache2 log files in the clear sky Note: Think of
In this case, it is usually a shell script written under window and copied to the Linux machine for execution to occur.The reason is:The end of each line under Windows is \n\r, and the end of the file under Linux is \ nThis allows window to write an
The type of shell that stands in terms of user login:Log-in Shell:Log in normally via a terminalSu-usernameSu-l USERNAMENon-logon Shell:Su USERNAME (using su to switch users without any parameters)Open Command Window under GUIShell scripts that are
Enter HBase Shell Console$HBASE _home/bin/hbase ShellIf you have Kerberos authentication, you need to use the appropriate keytab for authentication (using the Kinit command), and then use the HBase shell to enter the certificate successfully. You
First, the Linux Shell BASIC programmingVideo 1 1.1. View your system shell information$ Cat/etc/shell command to get how many shell programs are in the Linux system$ echo $SHELL command to see which of the shells you are currently using1.2. View
The difference between 1.hadoop1.0 and hadoop2.0: hadoop1.0 ecology such as: hadoop2.0 Ecology: 2.HDFS Description: HDFs is an open source clone of Google's GFS, and the architecture of HDFs is as follows: 1) NameNode: Manages the namespace of
Case ... Esac is similar to the switch ... case statement in other languages, and is a multi-branch selection structure.The case statement matches a value or a pattern, and if the match succeeds, the matching command is executed. The case statement
Echo is an internal command of the shell that prints the specified string on the screen. Command format:
Echo Arg
You can use echo to achieve more complex output format control.Show escape characters
echo "\"It is a test\ ""
"Set Environment variables"1. Use the ENV command to display all environment variables$ env2. Use the echo command to view a single environment variable$ echo $PATH3. Set a new environment variable$ export hello= "hello!"Syntax: Export
The shell is much more programmatic in terms of programming than Windows batch processing, both in loops and operations.Bash supports one-dimensional arrays (which do not support multidimensional arrays) and does not limit the size of arrays.
Some common Shell commands and common Shell commands
Common system commands]
Passwd [hostname]Change Password
Useradd [hostname]Add User
Su-Switch to the root user
Ssh [hostname]Ssh connection
Cd [directory]Go to the directory
Sudo chown
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