1. First, log on to the remote Linux server, such as 192.168.127.222, with the normal password login method;2. Click the Key Generation Wizard in the tool:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/67/wKioL1YcmyPy22e-AAI3RPggo2A573
Enterprise Face question 1:Use the For loop to create a batch of 10 files in the/oldboy directory, with the name in turn:Oldboy-1Oldboy-2Oldboy-3......Oldboy-10Hint: In the future to test everyone file prefix is also random, the end is a number
Introduction to Linux file system and Shell file system Ext2/ext3/ext4EXT2 is the standard file system in the Gnu/linux system. This is the most used file system in Linux, which is designed specifically for Linux, with extremely fast speeds and
Tag: blank linux target password nullHomework
1, request to add a user newuser, if it already exists then display "The user USERNAME is exists", if present, add it and set its password to "[email protected]"
Linux Login Server Knock command too much, at some point it is inconvenient, so the shell wrote aI. Description
Supports both secret and key formats
The user name and password are both written and saved in clear text
Two. Configuration
Bash of the Base Infrastructure Special Sex21. provides a programming environment Program: Instruction + data program programming Style: Process: command-centric, data-serving instruction; Object type: Data-centric,
Key
function
Ctrl+d
Keyboard input end or exit terminal
Ctrl+s
Tentative current program, pause and press any key to resume operation
Ctrl+z
Put the current program in the
Numeric OperationsNeed to use exprOne=' Expr5 + Ten' echo $one two points Note: there is a space between the expression and the operator, for example2+2Is wrong must be written2 + 2The complete expression is to be ' contained ' note that this
Emptying files with shell scriptsIn recent projects, a lot of log files are generated, so you need to write a script to empty them manually, here are a few typical ways.Method 1 Code#!/bin/bash##方法1echo "" > $1echo "$1 cleaned up."RunDescriptionI
Shell scripting improves Date//view dates and times-S change Time date-s "2015-08-20 14:27:12"View time Date + "%y-%m-%d%h:%m:%s"-D Change Single time Date-d "-2 Days" +%f+%w Show weeks+%w show how many weeks this yearntpdate //Calibration time
#!/bin/bash# gets all m3u8 files in the current directory, and Var=$(ls|grep '. m3u8'|Cut-D'.'-F1) #死循环 while[1=1 ] Do#循环每个文件 forStreaminch$var Do#获取当前最新视频文件 TS=$(ls-t|grep "$stream") for file inch$ts Do#存储M3U8文件文件名作为图片文件名, for* -, capturing
#! /bin/bashAction () {#1, get SVN update output/OPT/SVN/SVN/BIN/SVN update/opt/lampz/apache/web > File_out#2, gets the number of rows through the output file File_outline=$ (wc-l File_out|awk ' {print $} ')#3, if the number of rows is greater than 2
There are a number of ways to intercept strings in the shell, ${expression} There are 9 ways to use them. ${parameter:-word}${parameter:=word}${parameter:?word}${parameter:+word} The above 4 alternatives can be used for default values. ${#parameter}
SIGHUP: This signal is generated to the control process when the terminal disconnects. 1Sigint:ctrl-c or delete is pressed, generated by the terminal driver and sent to all processes in the foreground process group. 2SIGKILL: Causes the program to
First, Introduction1. Variable type:User-defined variables (local variables)Environment variables: Define each user's operating environment, has learned path,ps1; to be permanent, write to the corresponding locationPre-defined variablesPositional
If statementThe judging condition is wrapped up in []If [$a > $b]ThenEcho ' a > B 'elif [$a ThenEcho ' A ElseEcho ' A==b 'Fi for StatementIterating through an arrayFor arr in ${array[*]}DoEcho ${arr}Done while StatementIf the value of the
Strings are the most common and useful data types in shell programming (except numbers and strings, and no other type works well), strings can be in single quotes or double quotes, or without quotes. The difference between single and double quotes
Switch from Linux shell array creation and usage tipsThe Linux shell is much more powerful in programming than Windows batch processing, both in loops and operations. Data types are not comparable. Here's a summary of some of the things that an
Recently engaged in a shell script to start the jar file with a close jar file. I've got a sore egg. It's finally done this evening.In other words, little brother's Linux is just getting started, after all the information has finally been checked.
Frequently used shell commands for updating Mac server services, and mac server shell commands
On the Mac server, you must enable remote logon. Enable: system preference settings-> share check remote LogonCommon Commands include:
Copy (copy the
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