disk.EOF)Script_doc=$(Cat-H Display this help.EOF)Script_examples=$(CatAUTO_MOUNT.SH/DEV/SDD1EOF)State_prefix="==="Warning_prefix="***"Error_prefix="!!!"functionDisplay_help () {if[-N"$script _usage"]; Then Echo-E"Usage: $script _usage" fi if[-N"$script _function"]; Then Echo-E"$script _function" fi if[-N"$script _doc"] ; Then Echo-E"\n$script_doc" fi if[-N"$script _examples"]; Then Echo-E"\nexamples" Echo-E"$script _examples" fi}# Process
1. __attribute__
One of the major features of GNU C (which is not known to beginners) is the __attribute__ mechanism.
__ATTRIBUTE__ can set function attributes, variable attributes (Variable attribute), and type attributes
There are two underscores before and after the __attribute__, followed by a pair of original brackets, with the corresponding __attribute__ parameters inside the brackets.
The __ATTRIBUTE__ syntax format is:
__attribute__ ((att
Release date:Updated on:
Affected Systems:RedHat Enterprise Linux 6RedHat Enterprise Linux 5.0RedHat Fedora 17RedHat Fedora 16Description:--------------------------------------------------------------------------------Bugtraq id: 54982Cve id: CVE-2012-3480
Glibc is the implementation of C libraries in most Linux operating systems.
GNU glibc has multiple buffer overflow vulnerabilities. Local attackers can exploit these vulnerabilities to execute arbit
GNU a2ps Arbitrary Command Execution Vulnerability (CVE-2014-0466)
Release date:Updated on:
Affected Systems:GNU a2ps 4.14Description:--------------------------------------------------------------------------------Bugtraq id: 66660CVE (CAN) ID: CVE-2014-0466GNU a2ps is a filter that converts files to PostScript.Fixps scripts in a2ps 4.14 do not use the-dSAFER option when running gs, which allows an attacker with independent context to execute arbitr
/*************************************** ******************************* Function: Test daemon process* Author: Samson* Date: 11/30/2011* Test Platform:* GNU Linux version 2.6.29.4* GCC version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC)**************************************** ****************************/
# Include # Include # Include # Include # Include
IntMain (){Int frokret, fatherid;If (frokret = fork ())){Fatherid = getppid ();Printf ("Father proces
The following lists all the parameter definitions of GNU make 3.80. The other Linux versions are similar to those of the manufacturer's make. However, for details about the parameters of make, see the product documentation.
"-B""-M"The two parameters are used to ignore the compatibility with other versions of make.
"-B""-Always-make"All goals must be updated (re-compiled ).
"-C
""-Directory ="Specifies the directory for reading makefile. If multiple "
The basic file formats of the arm system are commonly used in ARM-based embedded system development.There are three basic file formats for the arm system:1) bin, flat-board binary format, which is generally used for Directly Writing to flash and loading to the monitor program.2) Elf, executable and linkable format, a common object file format, generally generated by GNU Compiler Collection (GCC.3) axf, an extended version in Bin format. The main part
GPROF Introduction
GPROF is the GNU profiler tool. It can display the "flat profile" of the program running, including the number of calls to each function and the processor time consumed by each function. You can also display the "Call diagram", including the call relationship of the function, and the time consumed by each function call. You can also display the "annotated source code", which is a copy of the program source code, marking the number o
I used GCJ to compile itext and used itext to write many small programs (pdfrotate and nup_pdf can be obtained from the Internet now). Here I will only introduce how to obtain the GCJ compiling environment.
GCJ is a Java editor based on the GNU protocol. It supports the following compilation methods:Java Source Code directly compiles the local machine code. On windows, the exe executable program (separated from JRE) is used );Java source code is comp
Use GNU parallelCreate cron tasks in batches:
# Host. lst is the host list# View the current cron taskParallel -- nonall-j0 -- slf host. lst "hostname; crontab-l"# View/var/spool/cron filesParallel -- nonall-j0 -- slf host. lst "hostname; ls-l/var/spool/cron"# Set a cron taskParallel -- nonall-j0 -- slf host. lst echo '"0 0 **** cd/root/nmon;/root/nmon-f-s600-c144">/var/spool/cron/root'
-- The tag parameter adds a tag for the output row
# Whe
file Form-radio_signal.dat
4. Show it in "Waterfall Chart" form
5. Here is the waterfall diagram, which is the first "unlock" signal, followed by the opposite signal.
Now I can simply replay these signals, in order to analyze these signals in more detail, I have tried to use audacity clip these signals, Audacity is a free audio processing software, while it can edit the wireless signal, but the author said here will not reveal too much, but can refer to this: click MyThis is the lo
memory Stores may is globally visible yet, and previous memory loads may not yet be satisfied.
void __sync_lock_release (
type
*ptr, ...)
This
builtin releases the lock acquired by
__sync_lock_test_and_set . Normally this means writing the constant 0 to
*
ptr .
This builtin was not a full barrier, but rather a release barrier. This means-all previous memory stores is globally visible, and all previous memory loads has bee
I wrote a simple general makefile template to compile CPP or CProgramSee the next log.
Http://blog.csdn.net/felixit0120/article/details/7663756
GNU make learning summary:
1. $ (patsubst pattern, replacement, text)Function: search for words separated by spaces in "text" and replace pattern with replacement. The pattern wildcard % can be used in the pattern parameter to represent several characters in a word. If the replacement parameter also c
it depends on. Target: dependency
The backslash \ is a line break of a command.
Indicates that the tab key is used for the indentation on the left when the command is executed. In this example, the left side of the CC command is tab indent. In other cases, spaces are used for the interval.
The preceding example is from top to bottom:
File edit depends on some. O target files
Create the edit execution file, and CC-O continuously links some. O files.
(After executing the make command, find the ma
[Do not perform O M without _ 11] Precautions for permission setting during GNU/Linux NFS server deploymentMeasure the test taker's knowledge about how to delete massive data files in seconds during O M.Http://www.bkjia.com/ OS /201304/203155.htmlNFS, simply put, is a file serverIn the deployment process, the read and write permissions of files are more error-prone than the tutorial.This blog is based on the following six aspects, but focuses on fil
Search for large files occupying hard disks in GNU/Linux (1) Search for files larger than 50 MB from the root directory, and display the first 10 files in the size list: [plain] [root @ Rocky ~] # Find/-printf "% k % p \ n" | sort-g-k 1,1 | \ awk '{if ($1> 50000) print $1/1024 "MB" "$2} '| tail-n 10 111.968 MB/mnt/hgfs/vmshare/Disk1/oms/Disk1/stage/Components/oracle. sysman. agent. download/10.2.0.1.0/1/DataFiles/filegroup5.1.1.jar 250.258 Mbit/u01/ap
/$create _vg_name/$lv _namemount/dev/$create _vg_name/$lv _name $mount _piont: Mount file systemLvextend-l 2g/dev/vg01/lv01 to expand to 2G (expanded physical boundary)Resize2fs-p/dev/vg01/lv01 to expand to 2G (the logical boundary after expansion)The following is a blog written by others as a supplement, provenance http://dreamfire.blog.51cto.com/418026/1084729If a piece of disk or partition fails, how to quickly transfer data to the same volume group other space.1. Transfer spatial data via Pv
and run the make command$ compile samples$ CD samples/$ makeAfter the make process finishes, get inside each sample sub directory and there should is an executable file the can is R Un right away-see the demo.7. Compile Your first programAfter you do with the demo programs, its time-to-write your own program and compile it. Again it is quite easy.It is assumed, that's coding in C + + and for that, can use any good editor with syntax highlighting feature. For example Gedit, Kate, KWrite would do
after you turn off the terminal or reboot, because every time you open the terminal it will be reread. BASHRCOf course, I write the export variable=content directly. BASHRC not good, but directly with the variable=content is good, why hit 7 more characters?
What's more, all the commands you knock at this window will be written after the window exit or close. Bash_history, (caching mechanism), if you want to hit a write a word, hehe, to a trickPrompt_command= "HISTORY-A; $PROMPT _command "
Installing DEBIAN9 on virtual machine vmwareInstall Vmwaretools When you encounter problems ask me ifconfig installation where?The new version of Debian does not know whether it is a user rights issue or the use of other network configuration tools Vmwaretools cannot find the ifconfg fileAfter the search, the final fix successfully installed VmwaretoolsHow-to Install VMware Tools on Debian Stretch 9 32/64bit Linux+gnuhttps://tutorialforlinux.com/2015/10/08/how-to-install-vmware-tools-on-debian-9
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.