Getting started with Shell Common commands
This is a series of shell tutorials, including entry, command, and practice.
In this tutorial, we try to minimize the complexity of text descriptions. However, we strive for perfection and focus on
**************************************** *****************
Note:
1. Compile the driver first;
2. The driver makefile must be correctly specified: kerneldir: =/lib/modules/version of the compiled kernel/build
3. The compiled kernel should be
1. shell scripts are case sensitive2. Special Unix characters: (; $? & * () [] ''+ Escape ()3. Shell Comments start #4. Function DefinitionFunction fuction_name (){Command to execute}Function_name is directly used for calling.5. Control Structure1)
If you are used to working on Linux, you will surely find a large number of text files in the Linux world. Configuration files and log files are generally in text format. These files usually have a long content and cannot be displayed on a single
1. Introduction to important log files in Linux/var/log/boot. log this file records the system events during the boot process, that is, the information displayed during the Linux system boot self-check process, as shown in 1:/var/log/boot. log
Single-instance Implementation of daemon _ not peaceful _ Baidu Space
Single-instance Implementation of daemon
To work properly, the daemon should be implemented as a single instance, that is, to run only one copy of the daemon at any time,
1. Introduction to important log files in Linux/Var/log/boot. log
This file records the system events during the boot process, that is, the information displayed during the Linux system boot self-check process, as shown in 1:
Figure 1/var/log/boot.
Shell judge and compare 1 shell $!, $ ?, $, $ @ $ N $1 the first parameter, $2 the second... $ # The number of command-line parameters. $0 The name of current program. $? Last command or function's return value. $ The program's PID. $! Last
Based on the experience of using zabbix for so long, we have summarized a set of useful processes for adding hosts and monitoring alarms for your reference.
For how to install, go to: http://www.centoscn.com/image-text/install/2013/0806/1093.htmlI.
If you are used to working on Linux, you will surely find a large number of text files in the Linux World. Configuration files and log files are generally in text format. These files usually have a long content and cannot be displayed on a single
After reading the tenth chapter of this book, I Learned:1.PRINTK function: Run in kernel space, Linux driver can only use PRINTK to print kernel debugging information. Function prototype: Asmlikage int printk (const char *fmt). The first parameter
Used in shell programming to determine parameters within an if statement–b return True when file exists and is a block file-C Returns True when file exists and is a character-D returns True when pathname exists and is a directory-E Returns True when
One, what is the Linux driver exactly what is a thing:1, actually the Linux drive and the common Linux API does not have the essential difference, only uses the Linux drive Way and uses the Linux API the way is different;2. The Linux system maps
TopSeveral disksFdisk-lDisk space Df-lhDf-alView process: Ps-ef "grep javaKill process: kill-9 process numberMore in FilterMore XXX |grep www.makaidong.comConfigure IP after installing LinuxVim/etc/sysconfig/network-scripts/ifcfg-eth5ipaddr=192.168.4
The main reason people create logs is the wrong line. Usually you will diagnose what problems occur in your Linux system or application. An error message or a series of events can give you clues to find the root cause, explain how the problem
The main reason people create logs is the wrong line. Usually you will diagnose what problems occur in your Linux system or application. An error message or a series of events can give you clues to find the root cause, explain how the problem
Source:http://zhidao.baidu.com/question/322131711.htmlFile comparison Operators-e filename true if filename exists [-e/var/log/syslog]-D filename True if filename is a directory [-d/tmp/mydir]-F filename True if filename is a regular file
How to determine the number of input parameters in a shell script submission: Junjie font: [Increase decrease] type: Reprint
This article mainly introduces the method of judging the number of input parameters in shell script, using the built-in
awk is also a data processing tool and is a basic language that can customize variables, loop array regular functions, etc.awk-f delimiter ' commands command ' file' Condition {Execute} ' condition {execute} ' multiple conditions can use various
Http://blog.chinaunix.net/uid-7553302-id-183648.html1 Shell's $! , $?, $$,[email protected]
$n The first parameter,$2 the second ...
$# the number of command-line parameters.
The name of the current program.
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.