Linux GCC pre-compilationCommand: GCC-E test.c-o test.i
Precompiling mainly completes the following functions:1. Delete all comments "//" and "/**/";2. Delete all the "#define" and expand all the macro definitions;3. Handle all conditional
Problem:
When you use Linux to send mail, sometimes you want to send HTML-formatted mail, if you find the HTML message sent, but the contents of the mailbox received or pure TXT format.
Reason:
Linux uses the Mail function to send the header
Main function
int Openport (char *dev)//Open serial port
int setport (int fd, int baud,int databits,int stopbits,int parity)//Set serial port, baud rate, data bit, stop bit, checksum
int readport (int fd,char *buf,int len,int maxwaittime)/read data,
The first is the command to query the entire disk capacity.
You are not unfamiliar with DF, you can see the approximate occupancy.
[Root@slave2 ~]# DF
filesystem 1k-blocks Used Available use% mounted on
/dev/xvda1 41151808 7119776 31918600 19%
For me, Ubuntu's Live CD is good enough, but it's too bulky. I need a small Linux Live CD. Mention live CD can not mention Knoppix, this is made by the German Klaus Knopper version, but today I want to introduce a small damn Small Linux, size is
Several tomcat instances have been deployed on a server, namely, several vertically-split Java site Services, as well as several Java Micro Services, which suddenly receive an operational-dimensional CPU exception alert.
Q: How to locate which
How to generate a dynamic link library, i.e.. So file, under Linux.
OneFirst you need a good compilation tool, compiling directly with the GCC command line is no longer a smart idea, a good environment with a compilation tool is important, I chose
L Inux Input Equipment Total class Miscellaneous, common include keys, keyboard, touch screen, mouse, rocker and so on, they are character devices themselves, and the Linux kernel will be the common abstraction of these devices, simplifying the
Due to the frequent work with the Linux server to deal with, it has compiled a number of commonly used Linux commands, to facilitate the new students or interns reference study.1. View the Linux kernel version#uname-A2. Ctrl+insert: Copy the
I said last time how to build a Linux virtual machine environment, but there are a lot of problems after the completion, screen resolution is too small is one of them.To give you a comfortable working environment, let us now teach you two ways to
You must first understand the two most basic commands:Tail-n test.log query log at the end of the last 10 lines;Tail-n +10 test.log Query all logs after 10 lines;Head-n test.log Query log file in the first 10 rows of logs;Head-n -10 test.log query
Ifconfig eth0 Up | DownWrites IP configuration information to the configuration file/etc/sysconfig/network-scripts/ifcfg-eth0Service Network restartRoute Add | del default GW 192.168.1.1Route-n/etc/resolv.confPingHost Www.baidu.comTracerouteNetwork
1 Create a new two folder one to store the installation files, one to store the extracted filesMkdir-p/export/software // store installation files mkdir-p/export/servers // store extracted files2 Place the Tomcat file in the Software folder on
Find: [PATH] [option] [action]1. Time-related,-atime,-ctime,-Mtime-mtime N: N is the number of days, a file that has been changed in the day before-mtime +N: List N days ago (excluding n days per se)-mtime-N: List within n days (including n days per
1. Locking system Important files:The system operator may sometimes encounter situations where a file cannot be modified or deleted by the root user, most likely because the file is locked. The command to lock a file under Linux is Chattr, which
PwdCdSpecial directories. And..Absolute path and relative pathTouch creates a file if the file that you want to create already exists, update the file's creation time.RM-RF Force no prompt to delete files and directoriesMV Cut or rename filesCat
For additional operations on logical volumes, see:The establishment of logical volumes in LinuxExpansion and reduction of logical volumes in LinuxRemoval of logical volumes in Linux LVM also features snapshots, similar to the System Restore point
Summary of permissions: for ordinary files:r:read 可读,表示具有读取、阅读文件内容的权限w:write可写,表示具有新增、修改文件内容的权限(是否可以删除看上级目录的权限)1) 如果没有r,那么vim会提示无法编辑(可强制编辑,echo可以重定向编辑或追加)2) 如果没有r,那么执行他也会提示权限不足3) 删除文件(修改文件名等)的权限是受父目录的权限限制的,和目录本身权限无关x:execute 执行权限,For the
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