Linux is a multi-user, multi-task system. If you can run multiple programs of multiple users at the same time, many processes will inevitably be generated, and each process will have different states.
Linux Process status: R (TASK_RUNNING),
1. Partition and convert lvm format
[root@localhost ~]# fdisk -cu /dev/sdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel with disk identifier 0xd8e8fb90.Changes will remain in memory
1. About the prompt
In SUSElinux:
localhost:~ # set|grep PS1PS1=$'\\[\E[1m\E[31m\\]\\h:\\w # \\[\E(B\E[m\\]'localhost:~ #
In centos Linux:
[root@localhost ~]# set|grep PS1PS1='[\u@\h \W]\$ '[root@localhost ~]#
2. Modify the Host Name
In
Linux Device Driver
The Driver is also known as the Device Driver. A driver is a special program used for communication between a computer and an external device. It is equivalent to an interface between software and hardware. Generally, only the
In some cases, we may need to intercept some exception handling operations in the Linux operating system, such as page fault exception handling.
When the kernel can be modified:
If we can modify the kernel, it will be very easy to handle page fault
Recently, foreign media PCworld has listed the top ten reasons for giving up Windows and using linux. The article believes that this is a great time to fight, whether it is a personal PC, workstation, or server. The ten reasons listed in this
A decade ago, in September 22, Red Hat sponsored Fedora Project was officially launched. It released its first version in November, six weeks later. At that time, Red Hat changed its business model, stopped developing desktop versions, and focused
Apache + mysql + php that has been installed and can be used normally.Download the current Pre-BuiltPackages for Stable version (http://nginx.org) for CentOS from the official nginx website
After adding a monitor to the Ubuntu 12.04 system, the system can only display images, or only display on the screen of the notebook. The other screen cannot be used. I searched the internet for a solution, the following method can be used to solve
Access the vi commandVi filename: open or create a file and place the cursor at the beginning of the first lineVi + n filename: open the file and place the cursor at the beginning of line nVi + filename: open the file and place the cursor at the
1. View user information
1. Meaning of w display information
JCPU: distinguished by Terminal code. The CPU time consumed during execution of all related processes on the terminal is displayed here
PCPU: CPU execution time
WHAT: The operation that
I recently encountered a lot of problems in linux configuration. I will summarize them, and the content will be a little complicated. I am eager to seek help! Happy New Year!
1. Ubuntu boot:
Piix4_smbus **** host smbus controller not
Just as a thread has attributes, its synchronization objects (such as mutex, read/write locks, condition variables, spin locks, and barrier) also have attributes. Bytes.1. mutex attributes
Use pthread_mutexattr_init to initialize the
Redirection
1.1. The redirection symbol of the correct content
> The output is redirected to a file or device to overwrite the original file.
>! The output is redirected to a file or device to forcibly overwrite the original file.> The output is
The password file of the UNIX System (POSIX.1 is called the user database) contains the fields shown in Table 6-1, which are contained in the passwd structure defined in .
Note: POSIX.1 only specifies five of the 10 fields in the passwd structure.
There are many systems that use the linux kernel. Currently, centos, fdeora, and redha systems are the most popular ones. Some of these are charged for free, however, this method can be used in the three systems I described.
After installing Linux,
In liunx, extracting the current file is very simple. You can use the simplest tar command and unzip to implement it, but I will give you a variety of file extraction passwords in
Next, let's take a look at the article about how to solve the problem of disk occupation of Linux servers (/dev/sda3 is full). We hope that people who encounter such problems can help us.
Today, leader of an e-commerce technology department found a
DIR = "$ (cd" $ (dirname "$ {BASH_SOURCE [0]}") "& pwd )"
This is the recommended method on stackoverflow.
Http://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
I have read it twice.
Later I
Open/etc/apt/sources. list and add the following two lines
Ubuntu:Deb http://nginx.org/packages/ubuntu/ lucid nginxDeb-src http://nginx.org/packages/ubuntu/ lucid nginx
Debian:Deb http://nginx.org/packages/debian/ squeeze nginxDeb-src
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