Network traffic monitoring tools have a lot of, such as: MRTG, Cacti, Zabbix and so on, they have their own characteristics, different focus, only for different application scenarios for a variety of special needs. In addition to network traffic
This article mainly introduces the Linux Shell Script series (ii): The terminal printing instructions, this article focuses on the echo terminal printing, printf terminal print two print out output command, the need for friends can refer to the
Copy Code code as follows:
Examples of string operations in work
Filename= '/home/admin/jobs/cnclickstat/dfsloader/loader.cfg '
#下面是使用shell字符串操作
buname1=${filename#*/jobs/} #去除 '/home/admin/jobs/cnclickstat/dfsloader/loader.cfg '
In Unix-like systems, symbolic links are common and we encounter a variety of processing work related to symbolic links.This article for you to introduce some of the practice of symbolic links, I hope to write a shell script to bring some help, the
The Linux du command also looks at the usage space, but unlike the DF command, the Linux du command is a view of the space used by files and directory disks, or some difference from the DF command.
What's the difference between Du/bin and Du-s/bin?
Example of a bash case statement.
Sharing a bash shell code is helpful in understanding the use of case statements by students who learn about bash.
Example:
Copy Code code as follows:
#!/bin/bash
##
# program:
# File
Save the following code as one. BAT file, (WIN2000 for example, if 2003 is used, the system folder should be C:\WINDOWS\)
Copy Code code as follows:
Regsvr32/u C:\WINNT\System32\wshom.ocx
Del C:\WINNT\System32\wshom.ocx
Regsvr32/u
I. Introduction to the ConceptNetwork programs are divided into server-side programs and client programs. The service side is the one that provides the service, and the client is the party requesting the service. But the reality is that some
It's time to enter the fourth chapter, just see a post title: I have a good talent, but unfortunately I am a girl. Khan ~ this ... Music Without Borders, this should not have no gender sector?
Fourth Chapter Text Processing tools
The book first
Sometimes a shell script is used to execute a series of programs sequentially. Some programs do not immediately exit after the stop, for example, there is a tomcat hung, even with the kill-9 command has not been an instant to end.
So if the shell
Recently has been studying the shell script this piece, just idle down the whole under their own on the better information in some examples, the following is my brother of the birds in the regular expression inside the inside of the comparison of
This is my moves to write bash programs. There's nothing new here, but from my experience people love to abuse bash. They ignore computer science and create "big clay balls" from their programs: software systems that are not clearly structured.
Linux compares the differences of 2 files with two commands:
(1)diff (2)Vimdiff
cp/etc/grub.conf Hello
Add Zhangsan at the end of the hello file
Use diff to compare the differences between 2 files:
[Root@rhel ~]# diff hello/etc/grub.conf
18d17
What is Classic shell? Classic Shell is a Windows Start Menu tool that provides three start menu styles such as XP classic style, Vista double column classic style, Win7 two-bar evolution style, and can also replace your favorite "Start" button icon,
The Unix command obtains input from the standard input device (stdin) By default, outputting the result to the standard output device (STDOUT) display. In general, the standard input device is the keyboard, the standard output device is the terminal,
From:http://www.cnblogs.com/aaronwxb/archive/2011/08/19/2145364.htmlWriting a script yesterday took 2/3 of the day, and most of the time spent on the SED command, today do not summarize the time of yesterday, I'm sorry.There are several commands for
Shell variables in Linux $#, [e-mail protected],$0,$1,$2 meaning explanation:Variable Description: $$ the shell itself PID (ProcessID) $! What is the PID of the Shell's last running background process? End code of the last Run command (return value)
Outline: 1. Logical Judgment 2. If flow control statement 3. For loop control statement ---------------------------------------------- Before you begin, let's look at the logical judgment symbol: && and,| | Or,! Non - A && B must be set up at the
Reprint please indicate http://www.cnblogs.com/winifred-tang94/To create a shell script, start by creating a new text file, and then enter the shell command in the text file according to the Shell programming rules.There are two ways to run a shell
Break is to jump out of the current loop, and continue is to jump out of the loop and start the new loop again[Email protected] test]#CatDemo.SH #/bin/Bash while true; DoRead-P"Please input number:"x yif((x>9)); ThenContinueelif((y>9)); Then
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.