Smartmontools, is an open source of disk detection and control tools, just today have access to a server to check the power of the server's hard drive time to use this tool, so the installation of this tool and simple application record down, after
Often we encounter some problems, the process of writing files, writing is very slow, and the total number of Io (BI,BO) is very low, but the Vmstat display iowait is very high, is the following figure in the WA option.Iowait_oenhan
The man Vmstat
Chkconfig Installation
In the beginning, because of the raspbian reason, the system is not brought chkconfig this command,
root@raspberrypi:~# Chkconfig-bash:chkconfig:command not found
So you have to install it manually.
Installation is very
First with du-sh/usr/* | Sort-rn This command to view the USR directory
Found this directory is very large and then go to see which directory is big
Finally found cd/usr/local/mysql/data this directory to the largest and then use Du-h–max-depth=1
The following is actually done, the system disk is upgraded successfully, and the root partition
Special reminder: After the deletion of partitions must first set up a partition and then save, delete point after the save will result in data loss,
Mount: Mount command. The storage media is designated as a directory in the system, such as a mounted optical drive mount/dev/cdrom cdrom mount, can be viewed under the directory/mnt/cdrom.
Umount: Uninstall command, such as Umount/dev/cdromExit:
Recently several hosts on line, on the line of the host in the security compliance scan, found the following openssh vulnerabilities. A few of them are old-aged vulnerabilities, mainly cve-2014-1692 vulnerabilities (OpenSSH schnorr.c vulnerabilities)
Description: XenServer installed in the virtual machine, the partition is using the LVM disk partition
requirements: now need to expand the virtual machine root partition/
Specific actions:
First, use Xencenter to
WX needn't elaborate. Focus on the S, T, I, a rights
S: The file owner and group set SUID and GUIDs, and the files are executed as root after the S permission is set. When the S permission is set, the file owner or group must first set the
Sosreport is a supportconfig tool, Sosreport is a tool written in Python that works for CentOS (like Redhat, package name is SOS), Most versions of Linux, such as Ubuntu (its next package is named Sosreport). The managed pages sosreport on GitHub
Whereis find specific files for system commands
1. Command format
WHEREIS-BMSU search string-b:binary only binary files-m:manual Search for manuals-related files only-s:source only search the original code files-u:unusual A special file, this
1, the general form of Find command;
Find Pathname-options [-print-exec-ok ...]
1. Find
Find is the most common and powerful search command you can use to find any file you're looking for.
Find uses the following format:
$ find
-
-
-
If
First look at the example
Delete Copy move File command
Linux Code
Rm-rf/file
-r: Recursive processing parameters-F: Force all files to be deleted
Linux Code
Cp/test1/file1/test3/file2
Copy the file1 to the test3 and rename it file2
Linux
Transferred from: http://blog.csdn.net/chen19870707/article/details/43560823A phantom flaw is a serious security issue on the Linux glibc library that allows an attacker to remotely gain control of the operating system without knowing the system.
2. Boot boot program Grub2.1 Grub configuration file(1) Representation of partitions in grub
Hard disk
Partition
Linux Device file name
Device file name in Grub
Block 1th SCSI HDD
1th Primary Partition
Linux View CPU temperature, install Lm_sensors tool1, install Lm_sensors tools to see the temperatureYum-y Install Lm_sensorsRpm-qa|grep Coretemp See if there is kmod-coretemp, no words need to install thisx86 and x64 systems are directly wget http:/
1. Move cursor shortcut keysCtrl+f move forward one characterCtrl+b Move backward one characterAlt+f move forward one wordAlt+b Move backward One wordCTRL + A moves to the beginning of the currentCtrl+e move to the end of the current lineCtrl+l
How do I make Linux timed tasks crontab in seconds?Linux scheduled task crontab min execution Time unit is minutesIf you want to execute in seconds, how should you set it?IdeasThe normal scenario is to define the tasks to be performed directly in
Linux system running level, linux running level
Running level description
0 system shutdown status
1. The operating status of a single user is used by the root user to maintain the system. At this time, other users are not allowed to use 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