viewing disks
Df-h
View the size of the file folder under the current directory.
Du-sh *
viewing system CPUs
Top then press "1": you can see how many nuclear CPUs there are
Free-m See how much memory there is.
View 2743 thread-occupied
Today's small weave to share the use of the next very useful command for the Linux system: The tree command can display the file directory structure in a TreeView, and it is ideal for us to introduce a framework of our file directories, with the
A friend on hand has a server that is MYSQL5.1 and needs to be upgraded to 5.5 or more, here to write down the process of upgrading to 5.5
Installing the 5.5-dependent installation package
The code is as follows
Yum
Invokes the device's IOCTL function at the command line. In a Linux system, it seems that the direct operation of the device is only IOCTL function. The parameters he accepts are not too much, and they all correspond to one by one.
Blockdev-Call
Logical volumes can dynamically adjust disk capacity, thereby improving disk management flexibility, this is mainly about the creation of a logical volume (LVM), the creation of LVM logical volumes follow the idea:pv>vg>lv> format, mount the use of
Su allows a user to temporarily become another user. It executes a command with a true and valid user ID, group ID, and an additional group of given user, usually an interactive shell.
Su[option] ... [USER [ARG] ...]
If user is not specified, the
Role:
Print System Information
Format:
Uname[option] ...
Describe:
Output specified system Information, no option with-s
Options:
-A,--All
Output All information
-S,--kernel-name
Output Kernel Name
-N,--nodename
Output Network node host
First, the realization principle
SSH logon is done using a method known as "Public key" authentication. A simple explanation for the "public Key" authentication method is:
First create a pair of public private keys on the client (public key file: ~
1, the root user login to the Linux system, and then enter the command after the prompt sestatus, you can see that the current SELinux function is in the open state.
2, enter the Vi/etc/sysconfig/selinux command after the prompt, enter the
Environment: A Linux Machine single card, a window machine single card, a four-port hub.
Background: The landlord only provides a line of Internet access and restricts access to only one network card (the NIC of my Linux machine).
Objective: To
Use U disk installation system has always been the best way to conserve resources, we can consider using a U disk to install such as Ubuntu, Debian and other Linux systems, how to install Linux with a U disk how to do it?
This is mainly for the
There are two types of scheduled tasks: one that is not executed after execution, and one that is executed periodically.
Scheduling tasks are divided into: System scheduling tasks, user-defined scheduling tasks.
The meaning of a scheduled task is
# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c
8 Intel (R) Xeon (r) CPU E5410 @ 2.33GHz
(see there are 8 logical CPUs, also know the CPU model)
# Cat/proc/cpuinfo | grep Physical | Uniq-c
4 Physical id:0
4 Physical Id:1
(It's actually two
Linux to modify the IP address is usually used to modify the ifconfig, but this modification is very troublesome, the following small series to introduce the use of the command to change the IP address method, together to learn under it.
We all know that a lot of Linux system operations require commands to execute, in the process of executing commands, sometimes encountered [root@localhost ~]# Iptraf error prompts, how to solve this problem? The following small series to introduce
Tip: Windows XP technical support will end in 90 days! That is, 2014 4 as Microsoft will end all service support for Windows XP, many users will face a huge security risk, because XP is still the second highest in global usage, after Win7. And
First I set up a folder under the/root/backup directory,#mkdir/root/backup/mysqlbackupAfter five o'clock every day, a file will be saved here.Then create a new file#vim/root/mysqlautobakInput:Filename= ' Date +%y%m%d
There is an SED operation in the Linux Bash command, which is useful in SSD create_list.sh:Combined with the following explanation:That is, delete all the characters in the line with voc2007/annotations/(here \ representative escape);The reason to
Install software online with yum source, and install software online with yum Source1. Delete the original yum source of redhat.
# rpm -aq | grep yum|xargs rpm -e --nodeps2. download the new yum installation package
Here we use the CentOS yum Source#
Install the https Certificate in linux apache and apachehttps
1. First check whether apache is installed
Command: rpm-qa | grep httpd
If yes, uninstall the command: rpm-e XXXX
If not, run the following command: yum install httpd.
After
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