Process status variables 1, $ get the Current shell Process number (PID) 2, $! Run PID3, $? Obtain the return value for executing the previous command (0 is successful, non-zero is failed, this is very common) 4. $ _ the last parameter cat & gt;
Shell special variables & #9758; location variables 1 and $0 get the file name of the current script, including the path. # Write a test script vimtest. sh # The content is as follows: dirname $0 basename $0 # execute bash $ (pwd)/test. sh # output:/
I have a question about Kernel compilation! -- Linux general technology-Linux programming and kernel information. The following is a detailed description. When I was writing the driver today, I encountered a problem during compilation and
As system O & M personnel, it is necessary to monitor important system parameters in real time, such as zombie processes, CPU utilization, memory usage, disk space usage, and system load balancing, based on the latest information, we can determine
1. display the 10 processes that consume the most memory/CPU psaux | sort-nk + 4 | tailpsaux | sort-nk + 3 | tail ---------------------------------------- 2. view the number of concurrent Apache requests and their TCP connection status netstat-n |
Problems encountered when installing VMTools under RH9-Linux general technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by lemonliucy at, January 11 ,.
The prompt
It is said on the Internet that there was once a fast thunder pen question to add users in batches. The procedure is very simple. There is a small knowledge point. Set a password for the user without interaction. There are two solutions: 1. expect2
Method 1: Use expr to calculate the sum of the variable and an integer. If normal execution is performed, the variable is an integer. Otherwise, an error occurs. $? Replace a non-0 value expr $ args + 0 & amp; & gt;/dev/null. Method 2: print the
I wrote a script for mysql process check. I think about my online search experience when I was a beginner. I suddenly wanted to laugh. I am an O & M engineer. I also want to say "iamaco !". #! /Bin/bash # DATE2013/11/25 # MAILgccmx@163.com #
About how to solve the badblock problem when running an ARM-Burning System-Linux general technology-Linux programming and kernel information, the following is a detailed description. Recently, I want to change the new kernel 2.6.30.4 for ARM. I
MenuetOS, an operating system fully written in assembly language-general Linux technology-Linux programming and kernel information. The following is a detailed description. MenuetOS is an operating system fully written in assembly language.
Ask a question about the first Ubdate installation? -- Linux general technology-Linux technology and application information. For details, refer to the following section. I would like to ask experts in the field, can I choose not to install online
When using the Redhat system LinuxOS (RHEL, CentOS, Fedora, etc.), it is necessary to use the yum tool to manage software packages. When managing many systems or Connecting External yum sources is not convenient, it is also important to create an
Linuxshell get time and time interval (ms level) Description: During some performance tests, sometimes we want to calculate the time for a program to run, sometimes you may write a shell script to control the performance test (such as running N
LINUX system process fork () question? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. Hello everyone:
# Include
# Include
# Include
# Include
# Include
#
After compiling the kernel, start kenerlpanic: VFS: Unabletomount -- Linux general technology-Linux programming and kernel information. For details, see the following. After I compile the kernel, I modified menu. lst of grub. After the kernel is
In the server version of suse10sp3, specify the NIC name -- general Linux technology-Linux technology and application information. For details, refer to the following section. 30-network-name under/etc/udev/rule. d. Rule (this name should be used,
Rsync Hardening Technology (when firewall is enabled by manually modifying the port) and synchronizing only the desired server through the script
Lab backgroundIn a LAN, specify a host as the management machine, and other hosts as the managed
Task: Find the file name of all PNG files under the folder, copy xxx.html to file name .html, and replace xxx in xxx.html with the file name ls | grep.png | sed & #39; s /\. png \ * // & amp; #39; |. /cp. shcp. shwhilereadipdosed & #39;
VPS was used a few months ago, with a traffic limit of GB per month, which is enough for convenient traffic. However, due to some malicious access, resources such as CPU and Memory consume a lot, as a result, the response time of a blog website on
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