How to modify the host name in Linux
You can use the hostname command to temporarily modify the machine name, but the original value will be restored after the machine is restarted.
# Hostname // view the machine name# Hostname-I // view the IP
Host 59.71.94.125 Windows XP
Virtual Machine 192.168.1.128 Ubuntu 10.10 FTP user name/password: Ubuntu/1
I. batch processing scriptProgramPassed to SD card
Programs compiled in the Virtual Machine cross-compilation environment will be placed
-- Obtain the installation package. Download the package from the Internet or use wget directly.
# Wget http://curl.haxx.se/download/curl-7.17.1.tar.gz
-- Decompress the package to the current directory
# Tar-zxf curl-7.17.1.tar.gz
-- Enter the
Yesterday, I opened my Asus k42jz and cleared it. I found that after the instance is started, the selection interface and login interface of Windows 7 are always switched cyclically, and the system cannot be accessed. Occasionally, a blue screen is
ExeclpFind the file from the PATH environment variable and execute
Definition: Int execlp (const char * file, const char * Arg ,......);
Header file: # Include
Description: Execlp () searches for the file name that matches the parameter file
This article can be reproduced at will, but the source and translator's name must be retained
Translator: rainfish
Source: http://blog.csdn.net/bat603/archive/2006/08/31/1146310.aspx
Environment: redhat9
Xmanager latest:
1. I personally think that the author's understanding of Linux by Max is not as deep as that of Solaris, I do not know whether or not he has the following content about Linux from his own code reading and analysis or from third-party documents
In Linux, the following four application directories are commonly used:/bin,/sbin,/usr/bin,/usr/sbin
Bin:The short description of "bin" as "binary" mainly places some necessary execution files of the system, for example: cat, CP, chmod DF, dmesg,
VmstatCommands are the most common Linux/Unix monitoring tool. They can display the status values of servers at a given interval, including CPU usage, Mem memory usage, and vmswap virtual memory switching, io read/write status.
This command is the
Processes can be divided into I/O consumption type and processor consumption type.I/O-consuming processes spend most of their time submitting IO requests or waiting for IO requests. Such processes are often in a running state, but they usually run
I. Common MySQL database operations:Mysql-uroot-p123456;Mysql Mysql Show databases;Use hostcache;Show tables;Desc hostcache;Exit;
Select * From hostcache order by timestamp;Select externalip, internalip from hostcache order by timestamp;Delete from
1. Implement the gettickcount function of Win32 API in Linux
To port the gettickcount API function in Windows to Linux, you can use the following code:
Long gettickcount (){Tms tm;Return times (& TM );}
2. ITOA porting for Windows and Linux
Http://blog.sina.com.cn/s/blog_73eb956401019cq1.html
Hash_map in Linux
1: header file
# If 0 # If _ gnuc __> 2 # Include # Include Using namespace _ gnu_cxx; # Else # Include # Include Using namespace stdext; # Endif
# Endif
2: map with
Http://mnt.conf.blog.163.com/blog/static/115668258201211734032988/
First, use the top command to sort by P in descending order of CPU usage
Then the PS aux | grep PID command can be used to determine whether a problem occurs in Tomcat.
However,
Http://blog.csdn.net/ldd909/article/details/6168077
Note: Only when epoll et (edge trigger) mode is used, you need to check whether the data has been read. When the select or epoll mode is used, you do not have to worry about whether the data has
Http://www.cnblogs.com/tibetanmastiff/archive/2011/10/10/2205799.html
Scenario:
According to Apache's working method, the pmap command is used to determine the memory usage details of an httpd process:
For example:
1. view how to use
Case 1:The logic of a stress testing program written by a colleague is: to send n 132-byte packets consecutively every second, then, N 132-byte packets are received consecutively from the backend service. The code is simplified as follows:
Program Description: in fact, the sampling rate and number of sound channels should have been set in the output function, but there are some strange problems.
So a general
# Define sample_rate 44100# Define channels 2# Define pcm_device "plughw: 0, 0
In Linux and all UNIX systems, devices are divided into the following three types:
Block Device
Character Device
Network Device
Block devices are generally written as blkdev, which can be addressable. The addressing unit is block. The block size
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