. c files, if there is no-O and the following target files, the output of the executable file appears to be called A.out, remember to execute must add./
gcc test.c-o test
./test
. cpp file to replace GCC with g++
In general, the following Linux
There was a strange problem yesterday, and the third party engine came up with a new search-and-seek library, the original implementation is a static link library (. A), but the new version changed to Dynamic Link (. So), I did not think so much,
1. Overview
The best security protection is of course "resist outside the country", through the security protection technology, to ensure that the current host is not authorized to invade, but "while, outsmart", and then a good means of protection,
Today, when debugging a program on Linux, I found that sometimes the program will hang live, so I would like to find out if the program has those threads, what are doing. Looking for a Linux command, I can really meet my needs. Let's look at a small
Advanced Programming for UNIX environments, POSIX multithreaded programming learning notes and key summaries.
One, 4 states of the thread
State
Meaning
Ready (Ready)
The thread can run, but is waiting for the
The following are verified by yourselves:
Reprinted from Http://jingyan.baidu.com/article/adc815133476bdf723bf7393.html
Install the VSFTPD with CentOS 6.3 as the configuration environment. Command Yum install VSFTPD
Download VSFTPD
Linux under the
Chapter II
The echo command is used to display the value of a string or output variable in the terminal, in the form of "echo [string | $ variable]".
The Date command is used to display and set the system's time or date in the format: "Date
memcached Installation
1. Download, memcached need to install first libeventMemcached's download Address: Http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gzs
Http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz Latest
Before we install, we have to install the dependent packages it needs first, or the installation process is bound to cause errors. First, install the dependency pack
#yum Install kernel-headers
#yum Install Kernel-devel
#yum Install make
Second,
#getconf Long_bit
Here are some other more useful commands:
1. Uname–a
2. Cat/proc/version
3. Cat/etc/issue
4. Lsb_release–a _
5.cat/etc/redhat-release (RHEL)
6.cat/etc/issue
7.cat/etc/suse-release
8.cat/etc/releas
Set up the boot auto start
Scripting features: Periodically make a full backup of some items.The Project.lst file format is as follows:Project1Project2The backup script is as follows:#!/bin/sh## Subversion Data Backup script# by Scud Http://www.jscud.com# 2005-11-27##
Linux directory structure
/: root directory, all directories, files, devices are in/below,/is the Linux file system organizer, that is, the most superior leader
/bin: In the general system, can be found in this directory. Common commands
The head command is similar to the tail command usage, and the head command is used to view the beginning of a specified number of character blocks in a document, displaying the first 10 lines of the document by default, and, if more than one file
Summary of the first wave command1.1 IP Display IP addressIP A = = IP address1.2 Ifconfig Display IP address1.3 mkdir make directory Create directory1.4 ls List Display directory contents-L Show more information1.5 CD Change Directory Access
The first step is to open the terminalCreate File command touch file name. suffixOpen File command vi file name. suffix name (after entering TXT file for general mode, you cannot add and revise files) after pressing I or a or O can be inserted a
1. Process: Running Program2. Role of Process Management: (1) Determine the health status of the server (2) View all processes in the system (3) Kill process3. View all the process Linux commands(1) PS aux (2) Ps-leOption: A: Displays all processes
1. Use the Mount command to see if/dev/cdrom (SR0) is included in the device Mount status.[email protected] ~]# mount |grep "CDROM"/dev/sr0 on/media/cdrom type iso9660 (RO)// If the bank is shown to prove that there is a disc, otherwiseProof that
>>>sort commands Common related options:
Options
Description
-C
Checks to see if the file order is sorted, and if it is out of order, it outputs information about the first scrambled row, and then returns 1
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