The production environment on the line of more than one Linux server, the need to all into the Zabbix monitoring category, a Taiwan to install Zabbix Agentd plug-ins that is too hard, fortunately Zabbix client plug-in is to support the green
Both exec and source belong to the Bash Internal command (builtins commands), which is entered under bash for man exec or
Man source can view all the internal command information.
The bash shell commands fall into two categories: external commands
basename example.tar.a.b.c.gz. c.gz
# => example.tar.a.b file= "
example.tar.gz"
echo "${file%%.*}" Fetch Head Example
# => example
echo "${file%.*}" go tail example.tar.a.b.c
# => Example.tar
echo "${file#*.}" Go head
Original: http://blog.csdn.net/iamlaosong/article/details/54728393
Recently, to compile a shell script to process the data, you need to detect the existence of the data file, the file name contains the date, so you need to generate the date of the
Do a Linux timed task today (summarize the table every 12 o'clock in the evening).By the way, write a blog record ~ ~Why use Linux timed tasks instead of scheduling tasks on the project? The reason is to prevent the project from collapsing for
Example No. 1As a shell writer, to avoid the user's input data is malformed, that is, to intercept the possible errors before the shell script is published, this example is to determine whether the data (or positional variables) entered by the user
The RM command on a Linux system is too dangerous to accidentally delete system files. Write a shell script to replace the system's RM command, requiring a backup to be made when deleting a file or directory, and then deleting it.Suppose you have a
Super depth of the shell advanced programming practice, as of the current Shell programming courses in the domestic training institutions The most fine courses, do not believe in the level of students to see the performance.Course cows are not
Original linkTerminal (terminal, or physical terminal):is a device, not a program, typically a device that provides a command-line user interface, typically a screen and keyboard, or some other physical terminal.Virtual Terminal:Screen and keyboard
problem Description: when SSH connects remotely to the server and then runs a service./catalina.sh start, and then the terminal opened and closed (disconnected SSH connection), found that the service is interrupted, resulting in the Web page is
Summarize:(1) printf uses reference text or space-delimited parameters, which can be used to format strings in printf, as well as the width of strings, left and right alignment, and so on. Default printf does not automatically add line breaks like
SortThe sort command sorts the rows in the files specified by the file parameter and writes the results to standard output. If the file parameter specifies multiple files, the sort command connects the files and sorts them as a file.Sort
1. What is a shell
2. or Hello World program
3. Variables in the shell
3.1 System Variables
3.2 User-defined variables
3.2.1 User-defined variable rules
3.2.3 How the shell uses variables
3.2.3 Global variables vs Local variables
4.
From the programmer's point of view, the shell itself is a program written in C language, from the user's point of view, the shell is the user and the Linux operating system communication Bridge. The user can either enter command execution or use
1 shell overviewThe shell is a command interpreter that provides the user with an interface system-level program that sends a request to the Linux kernel to run the program. The user can start, suspend, stop, or even write some programs with the
Set bash options with built-in set and SHOPT commandsThe set command can be used to customize the shell environment, using the option "O" to turn options on or off. For example, open the options: Set-o option, close the Select item: Set +O
IntroducedUnderstand The boot sequence of Linux also helps to understand this content, loading the user environment is the last step of Linux boot. Different shells use different configuration files : Bash (. Profile), Ksh (. Profiles), CSH (. Login)
In the history of migrating innovative products from Silicon Valley, Quora, a social networking site, is a relatively special object to be examined-it is far away from business, it is also squeezed out by search engines and social networks. As a
Linux login & non-login shell and su, sudo related concepts, linuxlogin1. login & non-login shell
In Linux, the kernel will create the init process to perform a series of system initialization operations. When a user logs on to the shell, the
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