Perform the following operations as root:
1. Add a new partition (from the original hard disk, or add a new hard disk and partition fdisk)Format it to ext3 (mkfs. ext3/dev/sdb1, assuming/dev/sdb1)
2. Mount the new partition to a temporary
From: http://blog.csdn.net/hongchangfirst/article/details/7075026Everyone knows about processes. But do you know how Linux manages processes? Each process has a process descriptor, specifically the information stored in the task_struct struct, in
# Include # Include # Include
Struct timeval tvpre, tvafter;Gettimeofday (& tvpre, null );Sleep (3); // This is Linux programming. This sleep is in seconds.Gettimeofday (& tvafter, null ); Ast_log (log_notice, "prepaid_staff_log: Test spend time
Chapter 1 describes some common programming modes and skills in network code;
1) memory cache-some common data structure kernels are allocated and released using Slab (for example, sk_buff)
2) cache and hash table-reduces the average search time by
From: http://www.sudu.cn/info/index.php? OP = article & id = 278877 (03 years, but very detailed)
How to install and use mplayer
Test environment: Red Hat Linux as3 in Linux, you may still be worried about not finding an excellent media player
VI commandIt can be said that it is the most common command to edit files in the Unix/Linux world, but it has too many command sets, so it is not easy to be proficient in it, except for professional SA, for our developers, we only need to master
Users in Linux are divided into three categories:
-Super User: Root, with all permissions. Super Users can be used only during system maintenance or other necessary circumstances to avoid system security problems.
-System users: the built-in
View All locale languages
view plain copy
# locale -a
# locale -a|grep en
■ View the language used by the current operating system
view plain copy
# echo $LANG
■ Set the system locale language to a Chinese environment (valid
Install configurationsUpload the Installation File tux81.tar and decompress it.Tar-xvf tux81.tarThere is a tuxedo8.1 directory under the current directory, and you need to configure the environment variable.Vi. bash_profile Add the following
I have referenced several articles and summarized the problems I encountered as follows:
References:
Http://www.yoyotown.com /? P = 422
Http://blog.zjol.com.cn /? Uid-1222-action-viewspace-itemid-599186
The following operations are performed as
In Linux, some common shutdown/restart Commands include shutdown, halt, reboot, and init. They can all restart the system, but the internal working process of each command is different.
I. Common commands
Restart command1. Reboot2. shutdown-R now
VI. After the user logs in, the prompt "$" is displayed ". After the prompt, type VI and the file name you want to edit (or create) to go to VI. [Example 1]Type the following command: $ ViExample. c The screen is shown as follows: ~ ~ ~ ~
Linux FindCommand is allLinuxOne of the most useful and confusing commands. It is difficult because its syntax is similar to otherLinuxThe standard syntax of a command is different. However, it is powerful because it allows you to search for files
/Etc/fstab is a text file in which each file system (including partitions or devices) is described in one row. In each row, separate fields with spaces or tabs.The line starting with * is the comment information. Sorting records in fstab files is
Fstab (/etc/fstab) is an important configuration file in Linux. It contains detailed information about the file system and storage devices mounted at startup. Below is the fstab file on my machine:
Label = // ext3 defaults 1 1Label
1. The shutdown command is used to safely shut down the Linux system.
Some parameters of the shutdown command are as follows:
[-T] specifies how long the system will be shut down
[-R] restart the system
[-K] does not actually shut down, but
1) ANSI clock functions
1) Overview:Clock_t is the return value type of the clock function. It is divided by clocks_per_sec to get the time. Generally, two clock functions are used to calculate the time when the process runs.
ANSI clock has three
In Windows, mounting usually refers to assigning a drive letter to a disk partition (including a virtualized disk partition. This operation can be performed through "disk management" in "Computer Management. Third-party software, such as disk
Linux Startup Process Overview
I.Bootloader II.KernelGuide entryIii. Core Data Structure initialization-kernel boot Part 1Iv. Peripheral initialization-kernel boot Part 2V. INIT process and inittab boot commandVi. RC Startup Script7. Getty and
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