How to use: Date [-u] [-D DATESTR] [-S datestr] [--UTC] [--universal] [--DATE=DATESTR] [--SET=DATESTR] [--help] [--version] [+f ORMAT] [MMDDHHMM[[CC]YY][.SS]]Description: Date can be used to display or set the system's Day and time, in terms of
In the afternoon, suddenly feel restless, probably because there is no good rest at noon. Laotaibuxiao is still doing the page integration thing, this is the work to do when the job. Then suddenly want to challenge the advanced point of the defect
The previous section explains why referencing variables with ${}, ${} also has an important function, that is, text processing, a single line of text can basically meet all your needs.3.1 Get string length# var= ' Hello world! ' # echo $VARhello
Originally wanted to do drbd+heartbeat, but the leader said to add hard disk waste of resources, not necessary, and in the existing hard disk to do a large risk, so it can only use rsync to achieve data synchronization, the experiment found a lot of
Originally wanted to do drbd+heartbeat, but the leader said to add hard disk waste of resources, not necessary, and in the existing hard disk to do a large risk, so it can only use rsync to achieve data synchronization, the experiment found a lot of
Last night spent a whole night answering a question about the redirect output to/dev/null in the shell. Decisive tonight also synchronous hair here, anyway no one see ~ ~ ~The following comes from a heavy Linux use patient's unsolicited
1. Run the command as a specified userRunuser-work-c "Cd/home/work/uc/bin && sh start.sh"Runuser-push-c "Cd/home/push/mucs/bin && sh start.sh"Or:Daemon--user mongod "Mongod--config conf/mongod.conf"Daemon is a function name that needs to be
The default Simplified Chinese character encoding on Windows is GBK, while Linux is UTF-8 (The description here doesn't seem to be accurate, and the character encoding and character set should not be the same, not clear.). To view the file encoding:(
Spark is a distributed memory computing framework that can be deployed in yarn or Mesos managed distributed Systems (Fully distributed) or in a pseudo distributed way on a single machine. It can also be deployed on a single machine in a standalone
The first time I saw Spark crashSpark Shell Memory Oom phenomenonTo do the spark graph calculation, so with Google's web-google.txt, size 71.8MB.With the command:Val graph = Graphloader.edgelistfile (SC,
Shell date Plus and minus operations such as today is 2012-04-22$ date-d "+1 Day" +%y-%m-%d2012-04-23 $ date-d "-1 days" +%y-%m-%d2012-04-21 $ date-d "2012- 04-10-1 Day "+%y-%m-%d2012-04-09 $ date-d" 2012-04-10 +1 Day "+%y-%m-%d2012-04-11 $ date-d"-1
Regularly back up each server's shake data, to the FTP server, pay attention to the active mode and the passive mode difference#!/bin/bash# active FTP is beneficial to server, client iptables shutdown, client needs to execute Passsiveh after
Bash is Bourne Again shell abbreviation, developed from the UNIX system shView current ShellEcho $SHELLView system-supported shellsCat/etc/shellsCd/binLs-la *shFirst, the bash shell configurationVariables can be divided into custom variables and
Introduction:1. If you want to know what the/home partition usage is for the tens of thousands of servers you are managing. 2. What do you do if you want to add the same scheduled task to the tens of thousands of servers you manage? 3. What if
The result of the test is 0 or not 0, 0 is true, and not 0 means false.
Test commandTypically used with statements such as if, while, until, and so on.#test An expression#test [expression]//[trailing space,] preceded by a space
File properties
One, arrayarray: is a data structure,data series, continuous multiple data, can be used to get related elements of the indexDeclaring an array:Declare-a arrayname # can not be declared in advanceInitialization assignment:arrayname= ("STRING1"
5.1 FunctionsFormat:Func () {command}Example 1:#!/bin/bashfunc () {echo "This is a function."} Func# Bash Test.shthis is a function.The shell function is simple, with the function name followed by a double parenthesis and the double curly brace.
There is no real multi-threading in the shell, and to implement multithreading you can start multiple back-end processes to maximize CPU Performance.Look directly at the code Example.(1) Sequential execution of code1#!/bin/Bash2 Date3 forIinch`seq 1
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.