I recently used my spare time to read the Unix/Linux Programming Practice tutorial. The original book is called understanding Unix/Linux programming: A Guide to theory and practice. I feel that this book is still good. The Unix/Linux system
Part of this article is a supplement to the installation of apache2 and subversion1.6.15 in redhat5.
1. introduced throughSource codeTo install the Subversion
We need two files: HTTP and subversion. Httpd is a web server used to access subversion
I have installed Ubuntu today, and the path to Linux has started. I hope I can stick to it all the time. But after the installation, I am faced with difficulties. I am not used to all kinds of tools, browsers, and input methods, webqq is not used to
ArticleDirectory
Parameters
Option
Example
Tips
Add row numbers to text files
NL [Options]Files
Parameters
FilesYesNLYou need to add the text file path name of the row number for it. If there are multiple
Http://news.ddaaoo.com/Topic/view/id-57255
Message Queue for Linux:
Mq_open is used in logging. When a new log is added to the queue, I send a message to mq_send. The logging thread starts to record the data until the log queue is empty and then
You must install subversion at first
1) tar zxvf subversion-1.6.12.tar.gz2) CD subversion-1.6.122 ). /configure -- With-apxs =/usr/local/apache2/bin/apxs -- With-Apr =/usr/local/APR/bin/apr-1-config -- With-Apr-util =/
Yesterday, in the dormitory, the roommate installed RedHat on her machine and worked as a consultant with another roommate. Haha, despite a few setbacks, the system was finally installed, for the first complete installation of Linux, record it here,
I remember when I was in middle school, I played x386 and 486. The effect of the keyboard on the black and white screen is really memorable. At that time, I didn't even know what a Windows system was. (In fact, I just didn't know it.) I was so happy
Answer: four steps to learn about LinuxAssume that you are from a computer science class. You have completed all the basic courses of the Computer Science Department, such as data structure, operating system, architecture, compilation principle, and
View user IDs and group IDs
[Amonest @ centos-server ~] $IDUID=500(Amonest) gid =500(Amonest)Groups=500(Amonest ),10(Wheel) Context = unconfined_u: unconfined_r: unconfined_t: s0-s0: c0.c1023
View the users currently logged on to the system
In the beauty of programming, the usage shown on the task manager is calculated in this way. The number of commands actually executed/The total number of executable commands within the refresh cycle. The total number of execution items can be
ArticleDirectory
Parameters
Option
Example
Copy the standard input to the standard output and one or more files.
Tee [Options]File-list
Parameters
File-listYes for receivingTeeList of output file paths. IfFile-listIf it
ArticleDirectory
Parameters
Option
Example
Change the file owner or the group associated with the file
Chown [Options]Owner file-list
Chown [Options]Owner: group file-list
Chown [Options]Owner: file-list
Chown [Options]:
6. Actual time
The current actual time (Wall time) is defined in the file kernel/Timer. C:
StructTimespec xtime;
The timespec data structure is defined in the file in the following format:
StructTimespec {time_t TV _sec;/*Seconds*/LongTV
(1) Write a dynamic link library in Linux. Generally, the static Link Library is compiled with the source file to generate executable files. Dynamic Link Library is not, it is a compiled file (static is not), only whenProgramWhen running (but the
Compiling and installation in LinuxSource codeThere are three steps:./configure, make, make install
Step 1CodeDirectory
Run commands
1./Configure -- prefix = installation directory -- target = Target Platform
The above two are the most basic,
From: http://www.cnblogs.com/sunleecn/archive/2011/11/01/2232210.html
Whereis ProgramName>Find the software installation path-B: Only query binary files.-M: Only search for help files-S: search onlySource code-U: exclude files of the specified
1. Process and thread
The process is in the execution periodProgramContains independent address space, multiple execution threads, and other resources.
A thread is an activity object in a process. Each thread has an independent program counter,
What is inode number?
Inode number is automatically generated when a partition is formatted as an ext2 or ext3 file system.
Inode number can determine how many files or directories are stored in this partition, because each file and directory has
# 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