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
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
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
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
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 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]
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
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~
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
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
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
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 "!
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
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,
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
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
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 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,
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 # #
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