A detailed explanation of the parameters in the shell in Linux

The method of parameter passing in shell script is commonly used in 8 kinds 1. $# the number of parameters passed to the script 2. $* displays all parameter variables passed to the script in a single string. Unlike positional variables, this

Linux shell gets the command for file MD5

Gets the MD5 value of the file: $ md5sum linuxmint-12-gnome-dvd-32bit.iso|cut-d '-f1 The resulting MD5 value:Ee3d6e2ca498bc7685b7f17cdb5f2eea Use MD5 to verify ISO files: $ md5sum Linuxmint-12-gnome-dvd-32bit.iso >linuxmint-12-gnome-dvd-32bit.md5

VB using Shell function to open external EXE program implementation method _VB

This example mainly realizes the function that VB calls the external EXE program to run, this is mainly uses the Shell function to execute, the shell function is mainly used to open an external exe executable file, for example, in sub module: Shell "

Linux Common Command Complete (ultra-comprehensive) _linux shell

System Information Processor architecture for arch display machines (1)UNAME-M processor architecture for display machines (2)UNAME-R Displays the kernel version being usedDMIDECODE-Q display hardware system parts-(SMBIOS/DMI)Hdparm-i/dev/hda lists

The output of the "time" command under shell (bash) _linux shell

Objective I'm sure you all know that bash down time is a very useful command that can be timed for execution of a script or program, which is usually handy when it comes to a rough comparison of program execution efficiency. But you will find that

Control the output color of the shell script _linux shell

Implementation code: #!/bin/sh # ANSI Color-Use this variables to make output in different colors # and formats. Color names that end with the ' F ' are foreground (text) colors, # and those ending with ' B ' are background. Initializeansi

101 shell script guessing number game code _linux shell

The original book This example is to teach debugging script, it deliberately gave a few errors in the script, teach us to understand the system prompts the error, and modify the run. But it's more difficult to write, so put the modified script up,

Shell Regular Expression Learning notes _linux shell

Formal representations (or regular representations) are arranged by special characters to search for/replace/delete one or more columns of text strings, and, simply put, formal notation is an "expression" used above the processing of strings. Formal

Implement a recursive copy of a file in a directory using the bash Shell _linux Shell

Objectivea problem has been encountered at work today, if you copy the files from directory A to directory B (without the file in directory B) and keep the files in directory A. The focus of the project is as follows: You need to keep the structure

Some personal ideas about the efficiency optimization of shell scripts _linux shell

first, talk about the limitations of the Shell scripting language itself As an interpretative scripting language, it is inherently inefficient. Although the other commands it invokes may be good in efficiency. The execution of the shell script is

Shell time (date) related commands _linux shell

Date +%f date-d last-day +%y-%m-%d date-d yesterday +%y-%m-%d date-d next-day +%y-%m-%d date-d Tomorro W +%y-%m-%d date-d ' 2 days ago ' +%y-%m-%d date-d ' 2 weeks ago ' +%y-%m-%d date-d ' 2 months ago ' +%y-%m-%d date-d ' 2 years ago '

Shell script creates test data for a specified size file _linux shell

When we are testing or commissioning, sometimes you need to generate a file of size, for example, when testing the storage system, you need to reduce the amount of disk space 5G, the easiest way is to copy a 5G file over, but where to get the size

Shell code to prevent ARP attacks _linux shell

Copy Code code as follows: #!/bin/bash Declare gw= ' Route-n | Grep-e ' ^0.0.0.0 ' Declare gwname= ' echo $GW | Grep-oe ' \w*$ ' Declare gwip= ' echo $GW | Grep-oe ' [0-9]\{2,3\}\. [0-9]\{1,3\}\. [0-9]\{1,3\}\. [0-9]\{1,3\} '

Putty method of implementing automatic login (SSH and SSH2) _linux shell

1, login to the host and enter ssh-keygen-t RSA Prompt for enter file in which to save the key (/ROOT/.SSH/ID_RSA): Input/root/.ssh/sea_rsa Enter the relevant pathname and filename as prompted and generate two files (followed by two options to

Share 20 unix/linux command Tips _linux Shell

Let's start a new year with these unix/linux command techniques to improve productivity at the end. I've been looking for it for a long time and I'm going to share it with you now. >/path/to/file.log # or use the following format :

Shell script code for file encoding in bulk conversion directory _linux Shell

A case of a batch conversion directory of File encoded shell script code. Requirements Description:As a result of turning Linux from Windows, many original win under the GBK file needs to be converted into UTF8. The following script only judges

Shell script Programming If statement learning Notes _linux Shell

I am not studying things under Linux, so here is only a description of the use of shell script, I am in the process of using the problem recorded, but also write down some of the rules of the shell script syntax, easy to view later. Let's take a

Shell Analysis Nginx Log in Linux to find blocked IP

In the day-to-day operation of the flow of traffic will find the phenomenon of sudden increase or increase in server load and so on, in order to find out why, need to use the Nginx limit module to access IP restrictions, and then can analyze the log.

Shell with signature request, YII processes signed request

Processing RequestsclassTestControllerextendscontroller{ Public functioninit () {if(!Yii_env_dev) { Throw NewExitexception (201, ' can not access not ' in dev mode '); } } /** * */ Public functionActionclientip ()

Some of the supernatural powers of ${} in the shell

Suppose we define a variable as: file=/dir1/dir2/dir3/My.file.txt We can replace each other with ${} to get different values: ${file#*/}: Take out the first/its left string: Dir1/dir2/dir3/my.file.txt${file##*/}: Take out the last/and left string:

Total Pages: 541 1 .... 124 125 126 127 128 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.