Today, I have a problem. The parameters behind git are tab-key, such as Git c_Search the internet for half a day to find the answer as followsToday in Linux with Useradd new users, found that the use of new users when landing, in the shell can not
Tips:1, command completion function: key2, clear screen: ctrl+l3. Delete all contents before cursor: ctrl+u4. Command history: HistoricalThen:! The command label listed in history, you can execute that command. Such as:! 188Also: Press the arrow
Divided into two partsFirst, install the B-shell interpreterInstall Cygwin eclipse to find the installed bin pathHttps://cygwin.comSecond, install the editor shelledDownload can get one: net.sourceforge.shelled-site-2.0.3help→ Install new software
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
Type of Shell:1. Log-in ShellLog in normally via a terminalSu-Su-l2. Non-login shellSuCommand window open under graphical terminalShell scripts that are executed automaticallyBash's configuration file1. Global
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
$0 execution name of the program$ N the nth parameter value of this program, n = 1 .. 9$ * All parameters of this program. This option can contain more than 9 parameters.$ # Number of parameters in this program$ PID of the Program (ID of the current
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
Use 'grep' to search for text files
If you want to find a string in several text files, you can use the 'grep' command. 'Grep' searches for the specified string in the text. For example, if you are searching for a file with the string 'Magic 'in the'
While do done, until do done (indefinite loop)
While [condition]
Until [condition] Do program section done
[[email protected] scripts]# vi sh13.sh#!/bin/bash# Program:#Repeat question until user input
#! /Bin/basffe [$ #-EQ 0]; then Echo "the input value cannot be blank." // The system prompts that null values cannot be entered. Note: $ # indicates the number of environment variables exitfinum =* * // defines a global variable to facilitate the
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
For Loop
1.
List for Loop
For variable in {list} # For each in C ++/CLR
Do
...
Done
For example:
1.
[[Email protected] TMP] # Cat B. Sh
#! /Bin/bash
For I in 1 2 3 4 5 #1 2 3 4 5 is equivalent to {1 .. 5}
Do
Echo $ I
Done
[[Email protected] TMP]
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
Labels: Bash internal and external commands
What is an internal command? What is an external command?Internal commands: commands provided by the shell programExternal command: executable program in a path inside the system.
The search for
READ command-N (do not wrap)-P (prompt statement)-N (number of characters)-T (wait time)-S (do not echo)
1. Basic readThe read command receives input from standard input (keyboard) or input from other file descriptors (as described later ). After
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,
What is the difference between shell Learning (and?Strictly speaking,
Because 0 is the default value of
> This method is used to export data to a file. If the file does not exist, the file is created. If the file exists, the file is cleared.
[Shell] if common judgment ConditionsIF you have written a simple shell script before the judgment, it is not a job O & M, and the work related to the system is relatively small, so it is not very skilled.Recently, as the system has encountered
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