Automatic mounting of Linux disks is required and necessary. Otherwise, it will be too troublesome to mount the disks after each restart.1. view the disk information in the system and determine whether partitions are required.First, add a new disk
I. Exit
In Linux, whether it is a command, script, or program, the exit status exists after the execution is completed and the exit status is usually saved in the pre-defined variable $? . In most cases, the predefined variable only uses two numbers
RPM is a RedHat Package Manager (RedHat Package management tool) similar to "Add/delete programs" in Windows"
Run the rpm installation packageBinary and Source packages. The binary package can be directly installed on the computer, and the source
I. file descriptor
A file descriptor is usually a small non-negative integer. The kernel uses it to identify the file being accessed by a specific process. When the kernel opens an existing file or creates a new file, it returns a file descriptor.
I. User ID
The user ID in the password file (/etc/passwd) is a numerical value, which identifies different users to the system. The system administrator determines the user ID while determining the login name of a user. Users cannot change their
Sed(MeaningStream EditorIs a common command line program in Unix/linux. SedDocumentOr text in the stringAfter a series of editing commands are converted to another format output, that is, text replacement. Sed is usually used to match the text of
You can also use the creat function to create a new file.
# Include creat (* pathname, mode_t mode );
Return Value: if the operation is successful, the system returns a write-only file descriptor. If an error occurs, the system returns-1.
Note
The free command in linux is used to view memory usage. The free-h command can be used to view the parameters and meanings of the free command. These parameters are relatively simple. Generally, they are commonly used, for example, free-m.
The most
In windows, we want to view the information about the motherboard, cpu, and memory, which can be directly queried using the Manager. However, you must understand these commands in linux, the following is an example.
Note:
We may need to check the
This article introduces a linux script for automatically downloading and obtaining route tables in China. I hope it will be helpful to you.
Today, we have configured a vpn for the company's macbook, but every time we dial everyone's qq and skype
Previously, dd was used to create a large download test file, but the speed was too slow. Now I know: fallocate. Next I will introduce how to use dd AND fallocate to create ultra-large file instances.
Previously, I used dd to create files. For
In linux, almost all installed software won't be automatically started by default, and I need to start it manually. This is very bad for WEB servers, apache, and mysql, so how do we remember that these software is automatically started upon startup?
On the linux server, we need to determine whether it can use the mail function in many ways. For example, we can use exists or phpinfo to check whether it can use the mail function. Here we will introduce these two methods.
Use the exists function
PuTTY is a Telnet, SSH, rlogin, pure TCP, and serial interface connection software. Earlier versions only support Windows platforms, and earlier versions have supported various types of Unix platforms.
Problem: It is often said that when you log on
Next, I will give you some introductions on how to build Python IDE Based on Sublime Text. I hope the article will help you.
1. Problem
When I recently used Sublime Text 2 to write Python code, I found two minor issues:
If functions such as img are
If the iptables firewall is not configured properly, we will not be able to access the server on our own. Let's take a look at our own vps in a hurry today, and we won't be able to log on through ssh, so it is very difficult to query logs, several
After using some commands in linux, I don't remember. Here I will take a note of my linux commands. I hope this article will be helpful to you.
View DisksDf-hView the file folder size in the current directory.Du-sh *
View system cpuTop and press "1"
Today, we found that the linux machine cannot be connected through ssh and cannot be pinged on the machine. Later, we checked the number of TIME_WAIT connections through the netstat-anp | grep TIME_WAIT | wc-l command, let's take a look at 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