First, add the script file describing the service to/etc/init. d. I need to start the svn service at startup, so my script file is SVN:
#! /Bin/bash# Chkconfig: 35 81 71# Description: SVN service in init. dSvnserve -- daemon -- root =/SVN/repos --
1 First, familiar with common Linux commands. 2Deep Learning of Emacs or vim. It takes you six months to study the system! In the future, we will use this editor to writeProgramAfter configuration, Emacs is completely an IDE, likeCodeJump,
* SSH connections between multiple servers
For example, four machines need to communicate with each other without a password.| ---------- + ------------- || Host | IP || ---------- + ------------- || Server01 | 192.168.0.1 || Server02 | 192.168.0.2
Recently I found several browsers used on Linux terminals, mainly used to test whether the Web server is successfully built. Because we usually use an SSH client to connect to Linux, we need a character interface browser. It is not ideal to find a
1. Ubuntu obtains the administrator privilege Sudo-I
2. delete/createCreate a directory by mkdir directory nameRmdir empty directory name: delete an empty directoryRM file name delete one or more filesRm-RF: the non-empty directory name deletes
File Disk:
Count the number of all SHTML files in a directory:Ls-r | grep-C-p '[\ W] + \. shtml'
View disk usage:DF
View the total size of a directory:Du-SH {path}
File filtering + full-text search (search for a keyword in all types of
This article discusses the implementation of the logging function module design, and how to implement information hiding for other module encapsulation details. Because some aspects (such as project requirements must use C and be compatible with
Include header file, link database, system definition, there are a total of the following sources designated GCC to find.
The ~ Gcc/GCC/collect2.c: locatelib ()
Written in specs
Later, it was specified with-d-I-l.
GCC environment variable
LinuxProcess-related notes
Zhou yinhui
I ran to engage in medical CT, and I came into contact with Linux. During this time, I learned some Linux processes and inter-process communication (IPC) and sorted them out. There were more than 40 pages,
Http://blog.csdn.net/shanglihong/article/details/6562869
Long sys_clock_gettime (clockid_t which_clock, struct timespec * TP );
Which_clock parameter description
Clock_realtimeClock_monotonic: Timing starts from the moment when the system
[Linux] read one character at a time from the console, without waiting for the Enter key
Zhou yinhui
You can use functions such as getchar () and getch () to read characters, but they all need to wait for the Enter key to end the input, instead
Linux Process thread learning notes: running newProgram
Zhou yinhui
As we mentioned in the previous article, when a new process is started, the new process will copy most of the context of the parent process and then runCodeIf we make the
I have organized several test projects under GitHub and intend to integrate Python-related
Program Put it under Linux for maintenance. So I learned about the GIT command line tool.
Git add# Put files into the local database
Git commit-M "Log
Because Linux tar commands do not support batch decompression, many netizens have compiled a lot of shell commands that support batch decompression and collected them for your sharing.
First:
For tar in * .tar.gz; do tar xvf $ tar;
In the past few days, because a computer has to be used as a simple server for many people, I have spent some time studying the management of Linux accounts and identities!
The following content is mostly made up on the Internet, but most of them
Telnet settings in Linux
To configure the telnet service, follow these steps:
1. Install the Telnet package (usually two)
1. telnet-client (or telnet). This package provides the Telnet client.Program;
2. telnet-server. This package
Follow these steps:
1. Linux BasicsInstall linuxLinux File SystemCommon Linux commandsLinux Startup Process detailsFamiliar with Linux services, able to install Linux operating systems independentlyFamiliar with basic Linux commandsUnderstand
In linux, socket communication is used. There are two Protocols: TCP and UDP. Many tutorials on the Internet mixed the two, or only one of them. Now I have summarized the results of my research over the past two days and wrote a complete article. It
# Include
# Include
Int stat (const char * pathname, struct stat * buf );
Int fstat (int filedes, struct stat * buf );
Int lstat (const char * pathname, struct stat * buf );
Parameter description:PathnameFile Name with PathBufThe second parameter
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