This is due to the fact that the environment variable hasAllias cp= ' Cp-i 'In order to get rid of the alias of this system, can use Grep-r--include= "*" "Alias CP"/Find the script file setting this environment variable:On my Ubuntu machine
Variables are divided into system variables and user-defined variables, and their profiles are of course divided into system environment variable configuration file and user environment variable control file.1. Specify the configuration file for the
1. In the build environment, the server's password is often modified to ensure security and can be scripted with the shell.Using SSH to directly modify the password of the other server can be implemented with the SSH username @ login IP followed
20150913-15 Jobs1. Describe the operation principle of shell program (can be attached with necessary graphic instructions)Shell Script Foundation Advanced (i)----shell introduction2, summarize all the knowledge points involved in shell programming
Miss the task Manager under Windows, ah, what to look at the pleasing of the program mouse points can be killed.Today in the Firefox browser to browse the Web page, the interface instantly stuck, nothing can point, test, only switch to command line
View shell scripts for Linux server network trafficWhen uploading a large number of files, you can use this script to implement monitoring!#!/bin/sh ## #统计5s内的平均流量, if [ "$" = " ];then echo -" in megabytes e
Share a daily use of the monitoring network, disk usage, average load and ram used by shell scriptsThe script is in the attachment.Use the following:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/59/wKiom1X6neKQsS7LAAQKmVx2JC8032.jpg "
Tag: Shell variable command executes the variable as a commandThe shell will execute the variable when the command executes "multiple commands simultaneously execute the problem"Today, a shell script is written that requires variables to be run as
Today in one of their own technical group was asked such a question, and then a popular explanation, make a record, we look at the explanation is clear!The shell can often be seen: >/dev/null 2>&1The result of the command can be defined in the form
function allows us to divide a complex function into several modules, which makes the program structure clearer and the code reuse more efficient. Like other programming languages, the Shell supports functions as well. The Shell function must be
Shell Script (iii)2. File sorting, merging and segmentation(1) Sort command#-c: The test file is sorted;-K: Specifies the sort field;-M: merges two sorted files;#-n: Sort by number size;-o: Writes output to file;-r: Reverses sorting results#-t:
One, CD switch directoryCD/ETC switch to/etc Directory CD ~ Switch to home directoryCd.. Return to the parent directory CD. /.. Return to the top level two directoryCD-Returns the directory where it was before entering this directorySecond, echo
playing Linux does not know the shell, that is, do not understand Linux. This statement is enough to witness the shell's position in Linux operations. Always want to write down the shell, but always do not know how to write, not because the shell is
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
2.shell Tools2.1. log filesBrief introductionIt is important to create a log file, which records important information. In the event of an error, this information is very useful for our troubleshooting, and the monitoring information can be logged
2. Variables and operators2.1. Types of variablesLocal variables, environment variables, variable substitution (display variables), positional variables, standard variables, special variables;2.2. Local VariablesLocal variables are used in scripts
The main use of the Pmrep objectimport command, which requires configuration of the control file (XML file, configuration of some parameters and settings of the import)Script#!/bin/bash#----------------------------------------------------------------
Lee produced, reproduced please specify the source http://blog.csdn.net/hnulwt/article/details/43234977Continue with what you learned last time, this time studying case statements and the function concepts of the shell.Case statementFirst look at
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