Iii. select/in [relatively less used]Format: select variable in keywordDoCommand 1......Command nDoneSelect makes every item in the keyword into a similar form and executes the commands between do and done in interactive mode.[Example]#! /Bin/bash#
1. Backup awareness2. backup partition ro or unmount3. Data Compression4. Verify md5sum-c5. encryption processing GunPG asymmetric key encryption]
I. potential threats to the SystemSystem hardware fault software fault power fault user misoperation
Because there are 6 running levels in linux
The single-user running level is-1, which is the single-user running level.
You can change the root password in this mode.
This mode has the following features:
Passing parameter 1 or single for the
I. Shell Structure
1 ,#! Specifies the Shell for executing the script
2. # comment the line to describe the role and owner of the script.
3. command and control structure
2. Create a shell program
Step 1: create a file that contains commands and
1. Disk Space is full when software is installed with yum
[Root @ node1 ~] # Yum install ftp -- software installation error ............................... .... error Downloading Packages: ftp-0.17-53.el6.i686: Insufficient space in download
1. Install and deploy dhcp. 1. Check whether the dhcp service software is installed. If not, install it. [Root @ localhost ~] # Rpm-qa | grep dhcpdhcp-4.1.1-38.P1.el6.centos.i686dhcp-common-4.1.1-38.P1.el6.centos.i686 if the check fails, you can
I. Differences between programs and processes
1. A program is a static concept. It is stored as a software resource for a long time. A process is the execution process of a program. It is a dynamic concept and has a certain life cycle, is
1. Run the df command to view partition usageCommon options-h,-m2. Run the du command to view the file/directory size.Common options:-H [humanity]Du-h/home/xiaofang-S [statistics]Du-sh/etc3. check and repair the file system fsck [file system check]
Zookeeper
Special characters
^
Beginning of Line
$
End of line
.
Any character
[]
Contains the character range. The value "^" indicates the reverse character range. Any character in the range can be
1. Install GIT
$ Sudo aptitude install git
$ Sudo aptitude install git-doc git-svn git-email git-gui gitk
The git package contains most of the Git commands, which are mandatory and the second line is also the Git package, but is released separately.
Zookeeper
Purpose:
View File type information
Format:
File [OPTIONS...] [FILE...]
Main parameters:
-- Help
Show Help Information
-V, -- version
Output version information and exit
-B, -- brief
File Name Not Displayed
-F, -- files-fromFILE
Read
Background:
0. server data is very important. If the disk is damaged, it will be troublesome. As a manager, it is necessary to synchronize and back up data in real time.
1. rsync is a good backup tool. The following uses Ubuntu as an example to
This note is based on the introduction of linuxShell programming to a book proficient in learning experiments and related notes.
PDF File Download: http://download.csdn.net/detail/ruishenh/6586391Chapter 1 describes three methods to run a linux
In Unix/Linux, the most efficient technique is not to operate the graphic interface, but to operate on the command line, because the command line means automation.
Daily
In bash, use Ctrl-R instead of the Upper/lower cursor key to search for
1. Without GUI1.1 diff
Diff can compare two foldersSyntax: diff [Option] file1 file2 Description: This Command tells you which lines of file1 and file2 need to be modified to make the two files consistent. If "-" is used to represent file1 or fiie2,
1. Download jdk-6u45-linux-x64.bin from OracleDownload file: jdk-6u45-linux-x64.bin2. Copy jdk-6u45-linux-x64.bin to/usr/java
3 go to the/usr/java directory and modify the executable chmod u + x jdk-6u45-linux-x64.bin for the jdk-6u45-linux-x64.bin
1. Use commands to set the Ubuntu IP Address
1. modify the configuration file blacklist. conf to disable IPV6.
Sudo vi/etc/modprobe. d/blacklist. conf
The contents of the blacklist. conf file in The modprobe. d folder in the etc folder are edited
If you have multiple servers and one server is logged on for management, it cannot be said, so the batch management tools have emerged. If you have set SSH password-less Logon:
ssh-keygen -t rsassh-copy-id user@host
By distributing the key to the
If you need to use the mail () function of php to send emails, you need to install the sendmail component on the server. This is also introduced in the mail () function section of the php manual. Then
Install the sendmail command in Ubuntu:
Sudo
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