Shell's built-in command exec will not start a new shell, but will replace the current shell process with the command to be executed and clean up the environment of the old process, in addition, other commands after the exec command will not be
Source command usage:Source filenamePurpose: read and execute the command in filename in the current bash environment.Note:This command is usually replaced by the "." command.For example, Source. Bash_rc is equivalent to... bash_rc.
The source
Shell Command>/dev/null 2> & 1 &
The last symbolProgramRun in the background.
>/Dev/null is used to convert the standard input to null, so that the standard output of the current script is ignored.
2> & 1 is used to connect standard errors to
When installing oracle on Linux, the following errors are often reported:
You cannot use the command/usr/x11r6/bin/xdpyinfo to automatically check the display color. Check whether the DISPLAY variable is set.
You can use the following command to
You can simply use RM, but you need to add two parameters-RF: Rm-RF directory name-R is recursive down. No matter how many levels of directories are there, delete them together.-F means to delete the file directly without any prompts.
Delete a
Objective: To Format/dev/sda4 (formerly ext3 file system) on the original server into an ext4 file system.
1. Check the status of the original system: fdisk-l
/Dev/sda4 3253 3259 56227 + 83 Linux
2. Check the original mounting status:
The Select system call enables our program to monitor the State Changes of multiple file handles (file descriptor. The program stops at select and waits until one or more of the monitored file handles change their status.
There are a lot of files in
[Root @ scs-2 TMP] # Free
Total used free shared buffers cached
Mem: 3266180 3250004 16176 0 110652 2668236
-/+ Buffers/cache: 471116 2795064
Swap: 2048276 80160 1968116
The following is an explanation of these values:
Total: total physical memory
Processes are classified into I/O-consuming and processor-consuming models. I/O-consuming models generally refer to processes with high interaction with users. They do not occupy CPU resources continuously, but cannot be blocked for a period of time
These macros include _ init, _ initdata, _ initfunc (), asmlinkage, entry (), and fastcall. They are defined mainly in include \ Linux \ linkage. h and include \ asm-i386 \ init. h and some other. H files.
1) _ init location: Include \ asm-i386 \
Linux Kernel compilation learning notes
Author: laomai
Home: http://blog.csdn.net/laomai
I. experiment environmentAn industrial computer with an optical drive. The RedHat Linux ES3 operating system is installed. Minimum installation,That is, when
I. Rsync Overview
Rsync is a data image backup tool in Unix-like systems. It can be seen from the software name-remotesync. Rsync is a file synchronization and data transmission tool in Linux. It uses the "rsync" algorithm to synchronize files
I told a friend that I have been using LinuxHe asked me why LinuxThe memory used is so high. He told me that the internal free space of 1 GB is mb. Windows XP only uses MB.
Actually, the Linux memory is very informative.The following shows the usage
// Server # include # include # include # include # include # include # include using namespace STD; struct event_base * main_base; static const char message [] = "Hello, world! \ N "; void accept_handle (const int SFD, const short event,
Watch is a very practical command. Basically all Linux distributions have this tool, just like the name, watchIt can help you monitor the running results of a command, saving you the need to manually run it over and over again.
Directly following
// Sender # include # include # include # include # include # include # include # include # include using namespace STD; int main () {setvbuf (stdout, null, _ ionbf, 0); fflush (stdout); int sock =-1; if (sock = socket (af_inet, sock_dgram,
In Windows, the dynamic link library is a file with the. dll suffix, and in Linux, It is a file with the. So suffix.The advantage of dynamic link library is to save memory space.
1. Create a dynamic link library in LinuxWhen using GCC to compile a
Parameter:-C: Create a compressed file parameter command (create);-X: unlock a compressed file parameter command! -T: view the files in the tarfile! Note that C/X/T can only exist under the parameter! Cannot exist at the same time! Because it is
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