Give you a full, you in the Linux environment to try to understand more:The execution name of this program$n the nth parameter value of this program, n=1..9$* all parameters of this program, this option can have more than 9 parameters.$# the number
SCP implementation data copy other machine copy to local file: SCP [email protected]/ip:filepath localpath Local copy to other machine: SCP localpath [email PROTECTED]/IP: FilePath folder copy:scp-r [email protected]/ip:folderpath localpath Detailed
Linux Shell reads a lineMethod OneBy specifying IFS--Internal Field Separator , by IFS default , you can set a value in the script IFSDEMO 1$cat t1.txt abcfd $cat test_IFS.sh #! /bin/shIFS="c"for LINE in `cat t1.txt`do echo $LINEdone$sh
String handling of Shell programmingIn the shell, because it is a weakly typed language, all variables are strings without declaring the variable type beforehand. So the processing of strings is very important.The following are common operations on
While deploying MS Exchange-I experienced issues with accessing the Exchange Management Shell and Exchange Toolbox. Whenever I tried to open the Exchange Management Shell I kept get the following error: verbose:connecting to
The safest way to kill a processThe kill command is used without a modifier or a flag. First, use the PS-Ef command to determine the PID of the process to be killed, and then enter the following command: # Kill-PID Note: Standard kill
1. The system does not recognize the disk being inserted into Linux. When the device is restarted, let the system find the new disk: Echo "SCSI add_single_device 0 0 0 1 0">/proc/SCSI Remove the Added Disk: Echo "SCSI remove_single_device 0 0 0 1
1. Five methods for calculating the value:
(I ++ ))
Let I ++
I = $ (expr $ I + 1)
I = $ (echo $ I + 1 | BC)
I =$ (echo $ I 1 | awk '{printf $1 + $2 }')
2. The time command is used to
The host may be down, or there may be a problem with the network connection.
Sometimes such problems can also be caused by a misconfigured firewall.
The following problems may occur:
1. SSH is not installed when centos is installed.
2.
If judgment
I have also written a simple shell script before, and it is not transferred to O & M. It has less work related to the system, so it is not very skilled.
Recently, as the system has encountered various messy problems and no one has helped
For how to use the function call in shell, see the following code example:
#!/bin/bash# value initExP="adb shell /data/local/tmp/vpxdec --yv12 --flipuv -t 2 --md5
People always want to improve efficiency, create more value, and get more choices. However, a person's energy and time are limited. It is especially important to reduce repetitive or meaningless work! You either know how to authorize or give
There are many blank lines after extracting the log files to be viewed recently, which is not conducive to the comparison of previous files. In order to be backward compatible, only empty lines can be deleted when obtained. I googled myself and used
General Operation
View Server Status
status
View hbase version
version
DDL operations
Create a table
create ‘member‘,‘member_id‘,‘address‘,‘info‘
Three columns are created: member_id, address, and info.
Knowledge Point Review:Cf is a part of the
1. Define Variables
1) when defining a variable, the variable name does not contain the dollar sign ($), for example:Var = "Hello World"2) Note that there is no space between the variable name and equal sign, which may be different from all
Use shell scripts to analyze Nic status information
Question:
Shell programming1. Write a script to read the traffic on the NIC, the number of packets received and sent, the number of packet loss, and the packet loss rate;2. The NIC name must be
By long Luo
Recently
Weather ForecastProject, you need to download some weather icons from Yahoo, but because there are many icons, there are more than 80. Icons are stored on the Yahoo image website.
Thunder does not support HTTPS download.
First, you must check that the shell you are using is the shell.
Echo $ Shell
Bash settings
The bash prompt is determined by the variable PS1. You need to see your own PS1 settings and run the command
$ Set | grep PS1
You can see it. Similarly,
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