Advanced Programming in Linux -- Introduction, advanced programming in linux --

Source: Internet
Author: User

Advanced Programming in Linux -- Introduction, advanced programming in linux --

Starting from todayAdvanced Programming Of Linux Enviroment)I will continue to share my learning achievements with you. This series of blogs rely on the course of lilin. The Code also basically comes from the content of the course. With the consent and permission of the teacher, I have created a repository on github to share the Code with you. The repository name is APLE. If you have any suggestions or ideas, you can join in to improve the code.

First, we will introduce the basic content of the series of blogs. The APLE series encapsulates a set of C ++ libraries based on basic Linux APIs. Therefore, I will introduce some basic object-oriented skills on this series of blogs. Due to the limited length, I will not elaborate on every Linux API, it will only elaborate on areas that are a little hard to understand or have many traps. For very common and easy-to-use APIs, they are basically taken over, unfamiliar users can refer to other bibliography or materials on their own. It is worth mentioning that the code in APLE will appear step by step, which is undoubtedly very rare for beginners and will not have a large span, making it hard to understand in many places.


In any case, I am also a beginner. I open this series of blogs with a learning and sharing attitude. If you have any mistakes, I hope you will be very grateful. Finally, I would like to thank Mr. lilin for teaching and helping me a lot. (If you have any questions or suggestions, please contact cfreestar@163.com)

Completed:

Part 1: log implementation

1. Advanced Programming in Linux-CLStatus)


I want to use a virtual machine to install linux, learn advanced programming (APUE) in the UNIX environment, and install linux in various versions?

CentOS is recommended for individuals.
FreeBSD is a real Unix, and others are Linux. However, FreeBSD is not suitable for beginners, and there is less information on Chinese websites.
Ubuntu is not recommended for users. ubuntu is more suitable for desktop users.

No gcc is available because you have not installed it on the CD. You have not selected it. If you don't want to find it on the CD, directly
Sudo yum install gcc # used for redhead or CentOS
Sudo apt-get install gcc # ubuntu
FreeBSD can be installed through Ports, but the operation is a little complicated. If you want to know it, check it yourself.
Of course, the premise of the above operations is that virtual machines can access the Internet.
Ping fails because the network is not properly configured. I personally recommend using bridge, which is easier to set.
The IP address set with ifconfig cannot be saved. Modify the following file
/Etc/sysconfig/network-scripts/ifcfg-eth0
The IP address can be changed permanently. After editing, restart the network service to make the new IP settings take effect.
Service network restart
You can also directly restart the machine to make it take effect. This IP address will be used each time it is started.

Looking at advanced programming in the unix environment is helpful for learning linux? After all, they are two systems derived from

It seems that you haven't read apue yet, so it is clear that all the routines have been tested on four systems, including the Kernel Operating System of linux2.4.
It is definitely an authoritative classic learning of linux programming.
Rest assured that unix and linux are the same in many cases.

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.