-fpic of the attention point of shared library under Linux

-fpic must be added to the compiled shared library. What is this for?Let's look at a simple example:#include int fun1 () { printf ("fun1\n");}Generate library without-fpic, disassemble to view FUN1 's machine code0000044c : 44c: -Push%EBP

Pipelines in Linux

Piping is the most basic IPC mechanism, created by the pipe function:#include int pipe (int filedes[2]);Calling the pipe function is the opening of a buffer (called a pipe) in the kernel area. Filedes[0] points to the read end of the pipe, filedes[1]

Lgrub error:cannot mount selected partition Linux startup error Resolution

The above error is that the partition table has been overwritten and the original Linux boot partition code has changed, so the Grub boot error. There are many ways to solve this problem:1. The fastest and simplestafter selecting Unbuntu in the Boot

The difference between the fork and Vfork of Linux

A method that creates a new process is called only by a process that already exists, fork (), or vfork ()650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/84/64/wKiom1ePL3ez9NYFAAAHVJ_16P4891.png "title=" Image.png "alt="

Linux ext2/ext3 File System

Linux's most traditional disk File system (FileSystem) uses ext2, so it's up to ext2 to get to know the file system.I. File system featuresAfter the partition is complete, the partition needs to be formatted before the operating system can use it.

Linux notes: Linux common Commands-Compression decompression commands

Compress unzip command: gzip (compress file, do not keep original file.) This command cannot compress the directory)Compression decompression command: Gunzip (unzip the. GZ zip file)Compression decompression Command: TAR (package compressed

Linux SVN Creation Project

1. Svnadmin Create Qcxiao2. Instructions in the svnserve.conf file:Anon-access: Control the rights of non-authenticated users to access the repository;Auth-access: Control authentication user access to repository permissions;PASSWORD-DB: Specifies

Linux Basic Command Introduction

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/84/30/wKiom1eIKRbwBpBBAAA40HHYw4M727.png-wh_500x0-wm_3 -wmp_4-s_3657542903.png "title=" 2.png "alt=" Wkiom1eikrbwbpbbaaa40hhyw4m727.png-wh_50 "/>Total Amount: 7600 is the number of bytes

Linux command: Whereis

1, Command introduction:Whereis is used to find binary files, source code files and help notes files, Whereis is found in the system's database files, so very fast, but the system's file database is not updated in real-time, the default one weeks

"Linux" Jenkins installation (i)

About JenkinsJenkins is a continuous integration tool based on Java development that monitors ongoing duplication of work, including:1. Continuous software release/test project. 2. Monitor the work performed by external calls. Installation

Linux Modify SSH remote port

First of all, let's briefly explain why we need to modify SSH remote port number.After we have installed the system, the SSH remote port of Linux is 22 port by default, but due to security considerations, we usually consider changing the original 22

linux--Piping Pipe

Piping is the most basic IPC mechanism, created by the pipe function:#include ?int pipe (int filedes[2]);When the pipe function is called, a buffer (called a pipe) in the kernel is used for communication, it has a write end to the read end, and is

Special permissions for Linux Foundation Linux

Under Linux, in addition to r,w,x permissions, there are suid SGID sbit three special permissions SUID If a file has suid permissions, the performer temporarily has the permission of the file owner when running a program, only on the

Linux common compression and decompression management tools!

rar

1, TAR.GZ&TAR.BZ (gzip and bzip forget it)Yum Install Tar-y[Email protected] ~]# Rpm-qa|grep tarUpstart-0.6.5-13.el6_5.3.x86_64Tar-1.23-11.el6.x86_64Selinux-policy-targeted-3.7.19-260.el6.noarch[Email protected] ~]#2. XZYum Install Xz-y[Email

Linux log rollback

Add logrotate file to/etc/cron.daily#!/bin/sh/usr/sbin/logrotate/etc/logrotate.confExitvalue=$?if [$EXITVALUE! = 0]; Then/usr/bin/logger-t logrotate "ALERT exited abnormally with [$EXITVALUE]"FiExit 0Add a log profile to the/ETC/LOGROTATE.D to

Using iptables to do port mapping under Linux

Detailed process of port mapping with Iptables under LinuxThe port mapping is configured with Iptables on CentOS5.4, and the detailed configuration process is described for your reference."Implement Features"Server-aeth0 119.159.220.96 External

A program that Linux determines whether the process is already running

1 BOOL2 serverprocess::isalreadyrunning ()3 {4 #ifndef __linux__5Warninglog ("can ' t check if process already running on the platform (not implemented yet)");6 return false;7 #else8 if(mpidfile.size () = =0)9 {Ten //if

Unix/linux System Management Technical Manual (3)----bash arrays and arithmetic operations

Complex data structures and calculations are not the forte of bash. But it does at least provide arrays and arithmetic operations.1. Arithmetic OperationsThe values of all bash variables are strings, so bash does not differentiate between the number

Linux thread control & amp; thread separation, linux thread

Linux thread control & Thread separation, linux threadThread Concept A thread, sometimes called a Lightweight Process (LWP), is the smallest unit of the program execution flow. A thread is a single sequential control flow in a program. A relatively

Linux lin command, linuxlin

Linux lin command, linuxlin Ln is another very important command in linux. Its function is to create a non-same link for a file in another location. The most common parameter of this command is-s, the specific usage is the target file of the ln-s

Total Pages: 5467 1 .... 3085 3086 3087 3088 3089 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.