The above summary of the shell, all reproduced to the following blog:Linux Shell Common Skills (i)Http://www.cnblogs.com/stephen-liu74/archive/2011/11/10/2240461.htmlI. Special documents:/dev/null and/dev/ttyTwo. Simple command trackingThree.
Transferred from: http://www.linuxidc.com/Linux/2011-09/42929.htmWhen using the shell under Linux, for convenience, an array is occasionally used. The way the array is declared is:
array= (element1 element2 element3 .... elementn)
That
Linux shell commandWhat is a shell?The Shell is the interface that connects the operating system kernel to the user.The terminal is the representation of the shell.What is Shell programming?The Shell scripting language, together with the Linux
Before the HTML "TARGET=_BLANK>XP using the Control Panel CPL file left the back door, and then with the. cpl file Plus account technology, LCX really very powerfulToday, we studied the user Control Panel file nusrmgr.cpl, found that the call is
I have heard that dreamhost only supports shell, but it has never been used. It is mainly because it is not very necessary before and has not uploaded many things.
Recently, due to the fact that a large number of files have to be uploaded, the
Tag: style blog HTTP color file 2014
Recently, when learning about Jenkins, there is a problem: the number of subdirectories under the Linux ext3 system directory cannot exceed 31998 (refer to: http://www.xshell.net/linux/1267.html), but Jenkins
Background:Access to Site Resources outside China is sometimes very slow. an occasional download is certainly tolerable. It is a wise decision to build an image site for multiple use or internal use by a small team.This section uses the yum source
1. ftp automatically logs in to batch download files.
Copy codeThe Code is as follows: ##### migrate/home/data from the ftp server to the local/home/databackup ####
#! /Bin/bash
Ftp-n Open 192.168.1.171
User guest
In linux, the/proc/$ PID/status file provides the usage of the Process resources (memory, stack, semaphore, sub-parent process, although linux provides a lot of memory viewing commands, they all look at the overall usage and cannot view the memory
Day 3: Select Conditions
Outline
Application Instance Analysis
Conditional Test
If... Else... Fi
Case... In... Esac
Implementation menu:
After the script is executed
Press 1 to display the current time
Press 2 to display the CPU load
Press 3 to
#! /Bin/bash# Name: remove_one.sh# Purpose: Find and delete duplicate files. Only one sample is retained for each file.# Sort and output files by sizeLs-lS | awk 'in in {# Obtain the total number of the first row and discard it. Read the next
Background any program running will inevitably generate a lot of logs, of which error logs need to be the most concerned. In some cases, the error log and the normal log are separated, but our system does not. What's more troublesome is that one log
Write SHELL scripts to monitor hosts
1. Run the vi command to create a script file sysmon. sh in the/root directory:
The content is as follows:
#! /Bin/bash
Dug = $ (df-h | grep "/$" | awk '{print $4}' | awk-F % '{print $1 }')
Cug = $ (expr 100-$
Question 1: Get sequential numbers from 1 to 9Shell Method 1:
For I in 'seq 1 9'; do echo $ I; doneSimilar to seq 1 9 or seq 9
123456789
Shell Method 2:
For (I = 1; I Similar to for I in {1 .. 9}; do echo $ I; done
123456789
Python method
Because the application of shell is not too long and has never touched on arrays in actual projects, we need to convert something like a = 1, 2, 4, and so on today. We used awk to retrieve them separately. So today I want to see if there is a better
When writing a shell script, changing the display color of the shell not only changes the user experience of the shell terminal, but also more practical is to distinguish normal output by changing the color of the display content, warning, error,
Shell Program Design (2) Shell syntax Variables
In shell, variables do not need to be declared before they are used. By default, variables are stored as strings, even if they are assigned numerical values. Shell and some tool programs convert
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