The date command is the command that displays the DateTimeDateFriday, January 01, 2016 15:05:01 CSTThe option to modify the time is-s" 2016-01-01 12:56:10 "View CalendarAa.Annual CalendarCal-yTime to synchronize the serverYum Install Ntp-yNtpdate
Shell script implements Tomcat self-bootWhen a script is run on a machine, it can implement Tomcat self-boot,However, the script was added to the timed task, but the error was reported: Java.lang.UnsupportedClassVersionError.Cause of errorThis is
1#!/bin/Bash2 3send_thread_num= -#设置进程数. 4tmp_fifofile="/tmp/$$.fifo"# The current process ID number that the script runs as the file name5 Mkfifo "$tmp _fifofile"# Create a new random FIFO pipeline file6Exec6<>"$tmp _fifofile"# Definition File
Demand
Sometimes in the shell script needs some execution, if placed in the program is not easy to unified management, and every time you modify the path to the script inside to change the trouble, so the unified path in the configuration file
1. Location of shell configuration files
The most commonly used shells are SH and bash, which only speak sh and bash here.
1.1. SH (Bourne Shell) configuration file has two main, respectively, each user home directory
# make direcory for backset file and scripts file,in my Case/backup/db_bakCd/backup/db_bakmkdir Scripts Logs Rman# The following is contents of Rman_backup_shVi/backup/db_bak/scripts/rman_backup_sh#!/bin/bash# author:anbob.com# Desc:rman Backup
Shell scripts are usually text files that start with #!/bin/bash. #! is placed before the interpreter path.Use bash as the interpreter to interpret all command-line commands.There are two ways to run a script, one is to use the script as a
Recently learning Gradle, using the git clone command to download some information, but the file name contains a space, it does not seem very comfortable, so think of using shell script to batch it, remove the file name of the space, note that this
Poptest is the only training institute for developing Test and development engineers in China, aiming at the ability of the trainees to be competent in automated testing, performance testing and testing tools development. If you are interested in
The regular expression is a string. There is a certain pattern. We use the specified string to match a specified line. The specified string is the regular expression.Regular expressions have these tools: grep egrep sed awkCommand: GerepDescription:
1. Create shell script file Create file, add executable permission to file chmod +x file format: Specify the shell #! in the first line of the file /bin/bash NOTES: #开头的命令 (except #!/bin/bash in the first line) Display message:
Background1. In project development, it is urgent to generate files in the following three formats according to the files under the resource path Res.Format one:#define IDR_CEF_0001 101#define IDR_CEF_0002 102...#define IDR_CEF_0122
Each time on-line, first put the intranet code with Xhell to local. Then drag it to the online server.Dragged and dragged, too slow. So I wrote an online script.Wrote a few versions, this is the final versionscp_v3.shThe contents are as
0. Internal variables in the shell:1. $?: Represents the return value of the shell command.2. $$: Represents the PID of the current shell.3. $!: The last PID value to be put into the background job.4. $ A: Indicates the name of the script.5. $1--$9,$
Recently, follow the MIT operating system engineering Course (6.828/fall 2014) to write a simple operating system from scratch.Job 1 of the first lesson is to write a simple shell that can run the command and Support redirection (' > ', ' The source
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