1. Create a script under/etc/rc. d/init. d/to comply with the service script standard;
For example:
VI/etc/rc. d/init. d/GFS
#! /Bin/bash#
Case "$1" inRestart)Echo "umount/Data"Umount/DataEcho "Mount/Data"Touch/var/lock/subsys/GFSMount-T gfs2
Lmhostid may be unfamiliar to some people. Some people are familiar with it. What does it mean? It is licence manage hostid. in Chinese, it is the hostid used to manage the registration code. Many software use this ID to control the serial number.
1. Prompt for development and/or incomplete code/Drivers
Many reference books say that this is a feature that developers think is not very stable, but according to my experience, this is an option to choose, because modern Linux is based on this, so
Streaming media refers to the continuous time-based media transmitted using stream technology in the network. It features that the entire file does not need to be downloaded before playback, but is played by downloading and playing, it is the
Serial ProgrammingHardware query methods: query methods, interrupt methods, and DMA methods. Many serial ports use interrupt methods. This method is generally effective for the CPU.
UART operations mainly include the following parts:Data
1. What is ramdisk?
Ram: memory, Disk: disk, which can be used as a partition in Linux. It is called ramdisk. For exampleFiles that are frequently accessed and not changed can be stored in the memory through ramdisk, which can significantly improve
Becoming a Senior Programmer proficient in Linux programming has always been the goal of many friends. According to statistics from chinacache, the monthly salary of Linux programmers in Beijing is 1.8 times that of Windows programmers, 2.6 times
Linux Kernel development acceleration Red Hat contributes the most codeThis article was published on | 2197 views | Source: solidot | comments (7)Keywords: Linux | thanks to ydj9931 | add this news to favoritesThe Linux Foundation released the Linux
Hardware: 8 CPUs, x86_64
System: Linux Debian 2.6.26 SMP
(1) Use the TOP command to view CPU usage, and then press "1" to view the usage of each CPU.
Top-13:45:55 up 4 days, 8 users, load average: 0.00, 0.00, 0.00Task: 102 total, 1 running, 101
Introduce the hash_set and hash_map header files in Windows and Linux
Recommended usage:Write the code before the source code:
// Just for "# include " in Linux# If _ gnuc __> 2# Include # Include Using namespace _ gnu_cxx;# Else# Include # Include
Who is using Linux today? This is a problem that needs to be understood. According to a recent global survey completed by the Linux foundation, this year's Global linux user base has become more popular than last year. Who are Linux users? What are
SCP commandThe SCP command is the most convenient and useful command in SSH. Just use the SCP command to directly transfer files between two servers. You can run # SCP servername:/home/FTP/pub/file1 as root on one server. In this way, the files/home/
Document directory
Service start and stop
View, edit, and delete
Syntax description
Summary
Cron usage instructions
Cron usage is always hard to remember. Just write it down and forget it. Most of the content below is translated according to
Like Linux and UNIX, there is a virtual memory system that can place program code and data in the form of a memory page in a hard disk area.
Linux can manage more processes than physical memory.
Progress table
View Processes
PS-ef
The tty column
Linux virtual memory enables each process to have a unified and consistent 4G address space. The main reason for supporting this function is that when the page is not in the physical memory, due to page missing exceptions, the exception handler will
Document directory
PPC
TPC
Select
Poll
Epoll
Epoll Introduction
Epoll is introduced in the linux 2.6 kernel. It replaces the previous select/poll model and can fully support large-scale concurrent network programs in linux.Comparison
ARM-Linux transplantation (III)-init process Startup Process Analysis
K-style
Reprinted please indicate from Hengyang Normal College 08 electric 2 k-style http://blog.csdn.net/ayangke,QQ:843308498 mailbox: yangkeemail@qq.com
We usually use
Vim is used as the hexadecimal editor to open the binary file with vim, switch to the command mode, and enter: %! Xxd can convert the currently opened file to the hexadecimal editing mode. After the editing is complete, run: %! Xxd-r is converted
Ls-L | grep \ "^-\" | WC-l
Or
Find./company-type F | WC-l
View the number of files in a folder, including files in subfolders.
Ls-LR | grep \ "^-\" | WC-l
View the number of folders in a folder, including those in subfolders.
Ls-LR | grep \ "^ d \" |
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