The meaning of shell variable $#,$@,$0,$1,$2 in Inux

Transferred from: http://www.cnblogs.com/fhefh/archive/2011/04/15/2017613.htmlThe meaning of shell variable $#,[email protected],$0,$1,$2 in Linux is explained:Variable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's last

Continuous integration Environment (Gitlab+jenkins+shell)

First, build GitlabPS: Not experts in this area, mainly or one-click Installation-oriented.1, enter the official website: https://about.gitlab.com/gitlab-com/2, choose your own operating system: My side of the choice of Ubuntu 143, according to the

Eval in a shell script

The role of Eval is to perform command-line processing again, that is, to perform two command-line processing on a single command line.1. Example 1: Using the eval technique to implement the shell's control structure forUse the Eval technique to

What is the need for single brackets and frost brackets in shell condition judgments

1. Single brackets []①bash's internal command, [and test is equivalent. If we don't specify the absolute path, we usually use Bash's own commands. The left bracket in the if/test structure is the command ID that calls test, and the right bracket is

Several shell face questions and answers

Enterprise Face question 1: The following string is known to be passed random random number variable md5sum|cut-c 1-8 After intercepting the results, please crack these strings corresponding to the md5sum ago random corresponding numbers?

A shell script that counts CPU memory hard disk usage

A shell script that counts CPU memory hard disk usage for everyone to learn reference#!/bin/bash#this Script isUse fordescrible CPU hard memery utilizationtotal=0Idle=0system=0User=0 Nice=0Mem=0vmexec=/usr/bin/Vmstatwhich SAR>/dev/NULL 2>&1if[$?-ne0]

"Sehll learning" Linux operations a simple shell script monitors system memory

After learning the shell script to get started, slowly try to write some scripts to practice practiced hand, in this first simple learning to write a system memory monitoring.1, first of all to determine the need to take a look at the memory usage

Several important shell commands: diff patch Tar find grep

Diff diir_1.0/dir_2.0/-urnb > dir_2.0.patchU:union output file differential information in a merged formatR: Recursive comparison of all files in subdirectoriesU: Treats non-existent files as empty filesB: Ignore the differences caused by empty rows~

Git Shell Basic Command (official website dehydrated version)

User InformationThe first thing you should do when you install Git is to set up your user name and email address. This is important because each Git commit will use this information and it will be written to each of your commits and cannot be

"Shell script" monitors LAN IP online

First, the script functionTo determine whether the IP is occupied, the ping rule is considered to be occupied and the results are output to ip_yes.txt and Ip_no.txt, respectively, by means of the ping command detection.Second, script

Linux Shell Mini Script Classic Collection

1. Find the same number in two filesDiff-y Xx.txt Oo.txt | Egrep-v "" | awk ' {print $} '2. Print the first few lines to the first lineCat 1 | awk ' Nr==2,nr==4{print} '1. Remove the Linux remote user connection session[Email protected] logs]# W 10:4

Linux Shell Programming variable assignment and reference

we can use any kind of text editor, such as Gedit, Kedit, Emacs, VI, etc. to write shell scripts, which must start with the following line (must be placed in the first line of the file): #!/bin/sh... Note: It is best to use "!/bin/bash" instead of "!

XV6-----Shell

This is the first programming job of the operating system principle course, which complements the functionality of the shell.The main implementation of the basic three types of commands Executable program Commands REDIRECT Command

Execute shell commands in bulk

Although the application of automation such as puppet saltstack in the environment is now realized, it is unavoidable to write some simple scripts to execute shell commands in batch.Python Paramiko module is currently used more comfortable module,

Processing of the trap capture signal in the shell

Once the trap captures the signal, there are three ways to react:(1) Execute a procedure to process this signal(2) The default action to accept the signal(3) Ignoring this signalTwo. The trap provides three basic forms for the above three ways:The

The Shell Foundation of Linux Learning

1. Shell IntroductionThe shell is the interface between the user and the Linux kernel, and if you think of the Linux kernel as the center of a sphere, the shell is around the outer layer of the kernel. When a command is passed to Linux from a shell

Linux in shell variable $#,$@,$0,$1,$2 meaning explanation:

Variable Description:$$ Shell自己PID(ProcessID) $! Shell背景上次执行Process的PID $? 命令的结束代码(返回值) $- 使用Set命令设定的Flag一览 $* 全部參数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n"的形式输出全部參数。 [email protected] 全部參数列表。如"[email protected]"

Bash Shell Programming Basics

1. What is Shell scriptshell script is to use the shell's function to write a "program", the program is to use a plain text file, some shell syntax and commands (including external commands) written inside, with regular expressions, Pipeline command

The difference between an interactive shell and a non-interactive shell

The interactive mode is where the shell waits for your input and executes the commands you submit. This pattern is called interactive because the shell interacts with the user. This mode is also familiar to most users: Log in, execute some commands,

Linux chsh command parameters and usage details (Linux setup System shell command)

usage rights: All usersCommand: CHSHUsage:shell>> CHSHDescription: Changing the user shell settingsExample:Shell>> Chshchanging fihanging shell for User1Password: [del]New Shell [/bin/tcsh]: # # # [is the currently used shell][Del]Shell>> Chsh-l # #

Total Pages: 541 1 .... 96 97 98 99 100 .... 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.