Use the method to copy it, save it as a shell file, such as security.sh. Upload it to a Linux server, execute SH security.sh, you can use the script!
The code is as follows:
#!/bin/sh
# Desc:setup Linux system security
# AUTHOR:CORALZD
#
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
The way to install and uninstall the RPM package on Linux is as follows:
1. How to install the RPM package
RMP software packages can be installed using the program RPM to complete. Execute the following command
Rpm-i your-package.rpm
1. Df-lh
2. Du-s/usr/* | Sort-rn
This is sorted by byte
3. du-sh/usr/* | Sort-rn
This is sorted by megabytes (M)
4. Select 10 of the preceding
Du-s/usr/* | Sort-rn | Head
5. Select the following 10
Du-s/usr/* | Sort-rn | TailDu-h–-max-depth=0
The following content from the Wetty profile, environmental preparation, Wetty installation, and validation of the analysis, please see below for details.
1. Wetty Introduction
Wetty is an open-source web-based SSH developed using Node.js and
Question Description: How do you deal with command-line options such as Tail-n Access.log in a Linux shell?
In bash, command line arguments can be handled in three ways, each with its own scenario.
1, direct processing, in turn to the $1,$2,..., $n,
Usage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]
Displays the current time in the given format, or sets the system date.
-D,--date= string to display the time described by the specified string,
a blog distinguishes the state return value in the shell -return-break-continue-exitFirst, The difference and contrast between break, continue, exit, return Condition and loop control and program return value command Knowledge table
Today I ran into a problem with my virtual machine test. Login CentOS always return login, account number and password Yes, I also changed two users.1. Description of the problemI normally enter the user name and passwordError tip: Return to login
The anti-quote bit (') is located above the TAB key of the keyboard, to the left of the 1 key. Note the difference between the single quotation mark (') on the left side of the ENTER key.Plays the role of command substitution in Linux. Command
When the number of TCP connections is very large, the current internal IP, the connection of the external IP is counted[[email protected] account_tcp]# cat account_tcp.sh #!/bin/bash# Statistics the current network connection situation Netstat -na |
This article is part of the Linux Shell Series Tutorial (16), more Linux shell tutorials: Linux Shell Tutorials
The output and input redirection in the shell is a feature that is often used in the use, and is very useful for you to introduce the
Shell script loop for while until and package management "on"Loop executionTo run a code segment repeatedly multiple timesHow many times to run repeatedly:Number of cycles known beforehandNumber of cycles unknown beforehandThere are entry conditions
Bash's arithmetic operations are available in the following ways:
Serial Number
name
Grammar
Example
1
Arithmetic extension
$ (arithmetic type)
r=$ ((2+5*8))
2
Using
The case statement is suitable for applications that require multiple branching. The case Branch statement is formatted as follows: Case $ variable name inMode 1)Command sequence 1;;Mode 2)Command Sequence 2 ;;*)Sequence of commands executed
This article is reproduced in the original link http://www.cnblogs.com/chengmo/archive/2010/10/20/1855805.htmlBefore we get to the redirect, let's take a look at the Linux file descriptor.Linux File Descriptor : Can be understood as a Linux trace
http://www.jb51.net/article/33899.htmLinux shell custom functions (definition, return value, variable scope) IntroductionThe Linux shell can be user-defined functions and can be called casually in shell scripts. Here's how to define it, and what to
Learning Linux has been one months, unknowingly shell script basic usage has been studied, in order to test their learning situation, in the Qingming Festival took a little time to toss out the script. The work is only practiced hand, if there is a
Town Field Poem:The Pure Heart sentiment wisdom language, does not have the world name and the benefit. Learn water under the hundred rivers, give up arrogant slow meaning.Learn to have a small return to feed root, willing to cast a conscience blog.
Before writing an article that uses shell scripts to weigh 10G data, see "Using a few shell commands to quickly weigh 10G data." Today, however, another business, the complexity of the business is more complex than the last simple to be important.
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.