Function: Automatically detect if there are not partitioned data disks, format new data disks and mount
Solved what problem: one-click to detect whether there are not partitioned data disks, and can be formatted and automatically mounted,
In the previous article introduced the Shell to judge the various versions of Debian methods, in the actual use, the judge system is 32-bit or 64-bit is often used, today to introduce the content.
Manually view the number of system digits
To view
Du command
Disk Management
The 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 there are some differences from the DF command.
Grammar
du
Login protection is a very important link, the following through an illustrated way to give you detailed explanation:
Two days ago, @cyy sent me a picture.
Then I thought about the Ushq SSH login app notification feature, and then just like if
Shell Common knowledge
First, the user login into the system after the system environment variables
$HOME user's own directory$PATH directory to search for when executing commands$TZ Time Zone$MAILCHECK every few seconds to check for new
As a command line seeker, you may find yourself repeating the same commands over and over again. If you always use SSH to access the same computer, if you always connect a chain of commands, if you always run a program with the same parameters, you
Working directory There are Mydoc1.txt,mydoc2.txt...mydoc41.txt, would like to use the SED order of values sorted, and then use cat to merge these files, found not to achieve the desired effect, the merge order is as follows:
Copy Code code as
When writing a shell program, you often need to handle command-line arguments, and this article describes the command-line approach under bash.Options and Parameters:Like the following command line:
Copy Code code as follows:
There are a lot of special symbols in the Linux shell, which we should pay special attention to when we write Shell script: On the one hand, we need to know the usage of these special symbols, these symbols can be used to achieve a multiplier effect;
The meaning of shell variable $#,[email protected],$0,$1,$2 in Linux is explained:Variable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return
1. Simple script file hello.sh, the content is as follows#!/bin/bashpwdls-alExecute script: Bash hello.sh or use the root command:./hello.sh2. Accept user ParametersThe name of the script file executed by $ A$* on behalf of all user parameters$?
26.1 Sending messages 26.1.1 function analysis1. Determine who is in the system$whoThe information given includes the user name of the user at the end of the user log in the system time2. Enable message featureUsers can prohibit people from sending
The shell is a bridge between the user and the Unix/linux operating system. The user can either enter command execution or use shell scripting to do more complicated operations. In the increasingly perfect GUI today, in the system management and
To write a program that imports data in batches, learn to write shell scripts! Now learn to use!============================================1, the first simple for loop#!/bin/bashFor I in 1 2 3 4;Doecho $i;Done2. Test for self-growing
"Thedifference between the login shell and the Non-login shell "
Login Shell: A full login process is required to go to bash. That is, by entering the account and password to log into the system, the obtained shell is called the login shell
This article mainly introduces the 4 methods of executing shell scripts in Linux, that is, the 4 ways to run shell scripts in Linux, and the friends you need can refer to.There are several ways to bash a shell script, and now make a summary. Suppose
In the company to do stress testing also quite a long time, every test before the environment data preparation need to spend a long time, so has been considering the whole process can be automated, so the time to write an automated script, of course,
Ulimit is used to limit the resources that the shell startup process consumes, and supports the following types of restrictions: the size of the kernel file created, the size of the process data block, the size of the shell process creation file,
The first point is clear:/etc/profile is the configuration file that sets the environment variables for all users,/home/omm/.profile is the configuration file (omm User) that sets environment variables for a specific user . But the 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.