decrypted, the decompression command is as follows:
TAR-ZXPF [decryption BACKUP FILE]Explain the argument-P:The tar compressed files are all relative paths by default. The addition of-p is for tar to compress files with absolute paths. Therefore, the decompression should also take a-p parameter.
3. Configure Gdrive commandGdrive is a command-line tool for Google Drive upload and download operations. Official website:Https://github.com/prasmussen/gdrive
Of course, you can use the following co
Since our servers are all Linux systems and have a complete PHP environment, I sometimes use PHP to write scripts to automate tasks, but every time I execute this php script I need to use PHP myscript.php, a little bit? Long F 涫 bear the strong shoot of benzene and onion PHP script files.
Write your script file
Here
Although the frequency of writing the shell is very low ... But every time you write a lot of jar file paths, the new jar package must also be modified to start the shell.Find a nice generic shell script on the web.Just modify some of the configuration variables to make the start script.And in addition to being able to start, it also supports shutting down, restarting, and checking whether the feature is running.Original address: HTTP://WWW.TUDAXIA.CO
Script is a magical command that can record the session of a terminal and then use Scriptreplay to play the results of its recordings to others. The benefit of script is that all of your actions in the terminal, the commands you've knocked out, and the results you print can be recorded exactly as they are. Can be applied to teaching, demonstration, audit.In general, scr
The production environment on the line of more than one Linux server, the need to all into the Zabbix monitoring category, a Taiwan to install Zabbix Agentd plug-ins that is too hard, fortunately Zabbix client plug-in is to support the green installation, wrote a simple one-click installation script, and then cooperate with Multi-Window interactive commands for Secure CRT can be done at once.
Normal boot Z
The origin of the problemWritten programs want to be able to start after the crash, and then take advantage of the Linux crontab function, add a scheduled task, every minute to execute a script to see if the process needs to be monitored is still in, if not the start, otherwise do not do anything. The result of such a simple script running in crontab and manually
In the previous basic Linux Shell script study, we talked about if, select, and Case of the process in the Linux Shell script. Here we will introduce the loop and quotation marks of the Linux Shell script control process, the cont
Linux Auto-install JDK shell scriptA: This script runs the machine, LinuxB: The machine to install the JDK, LinuxFirst, on machine a where the script is running, you can log on to the machine B where the JDK is to be installed without SSH password, and then you can run this script on a:$./install-jdk.sh B's IPOr$./inst
Automatically install the JDK shell script in LinuxAutomatically install the JDK shell script in Linux
A: The machine running this script, Linux
B: The machine on which JDK is to be installed, Linux
First, log on to machine B wher
Use a PHP script to read input and text in Linux-Linux general technology-Linux programming and kernel information. The following is a detailed description. Perl is the preferred language for interpreting Linux Command Line scripts. Today, we have more options, including Pyt
In the process of software development, it often involves changing the database script file from sh format to SQL format in Linux. This document uses an actual script file as an example to describe
In the process of software development, it often involves changing the database script file from sh format to SQL format i
For Java people are just beginning to learn. Mostly Java it takes a lot of effort in the configuration of the development environment, next to Linux, to construct Java environment variables, and it is likely to join this effort.To do this, I made a bash script to configure my own active Java environment variables. You just need an example of the script below that
One: Problem description
These several times perform MongoDB initialization scripts and discover a problem:
When you upload a script from Windows to Linux, the error occurs when you execute it.
Such as:
Mongo-u root-p mongo123 Admin--port 8000
There are many errors in the Initdata-bmis.log file:
Syntaxerror:unexpected token illegal But the direct copy paste scr
Enter your bank password
No
Linux shell script also makes short-circuit evaluation, as in C + +, as follows (I think the program is very subtle):
[Taoge@localhost learn_shell]$ cat a.sh
#!/bin/bash #!/bin/bash
echo "Enter your bank password"
read passwd
["$passwd" = "3.1415"] echo Yes
["$passwd" = = "3.1415"] | | echo No
[Taoge@localhost Lea rn_shell]$
[Taoge@localhost learn_shell]$
[taoge@localho
from Windows to the Linux of the Shell scripting Coding and formatting issuesShell script encoding and formatting issues from Windows to Linux1, abnormal problem: set Ff=unix
Startup script in the start times error, such as the execution of SH start.sh, when the command is not found and so on,
Because the script
Bash script code for obtaining computer hardware configuration information in Linux
Recently, to obtain the hardware configuration information of Several Linux servers, I wrote a script code to obtain the hardware configuration information, including the number of cpu cores, memory size, and hard disk size, the Code is
: bakwww.sh file must have the permission to execute!LINUX Automatic backup script filesFirst I set up a folder under the/root/backup directory,#mkdir/root/backup/mysqlbackupLater at five o'clock every day, there will be a file saved here.Then create a new file#vim/root/mysqlautobakInput:Filename= ' Date +%y%m%d 'mysqldump--all-databases-uroot-p (mysql password) >/root/backup/mysqlbackup/mysql$file.sql S
After Linux is installed, the script optimization problem has just been installed on the Linux system. many services are not available, but it occupies a lot of space in your memory, it affects your performance. The following script is used to optimize the system service after you have installed the system. it is very
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.