Linux technology introduction_linux庐 technology reference-程序员宅基地

技术标签: 随笔  linux  

Linux is a free to use and the spread of free Unix-like operating systems, based on POSIX and Unix is a multiuser, multitasking, and support multithreading and multiple CPU operating system. With the development of the Internet, the Linux software enthusiasts from all over the world got, organization, the support of the company.  It besides in server operating system maintained a strong momentum of development, on personal computers, embedded system has a great progress.  Users not only can directly obtain the realization mechanism of the operating system, and can be modified according to the needs of their own to improve the operating system, to maximize its to adapt to the needs of the user.

A brief history of Linux

The birth of the Linux operating system, the development and growth process is always dependent on five important pillars: Unix operating system, MINIX operating system, the GNU project, POSIX standards, and the Internet.

In the 1980 s, the performance of computer hardware, the growing market of PC, at that time, which can be chosen by the computer's operating system Unix, DOS and MacOS which are the main types. Unix is expensive, not running on the PC;DOS is humble, and source code by software vendors strictly confidential;

MacOS is a dedicated to apple computer's operating system. At this point, the computer science is an urgent need to a more perfect, strong, cheap and completely open operating system. Due to the typical operating system for the use of teaching are very few, so at that time in the Netherlands when American professor Andrew S. Tanenbaum writing an operating system, called MINIX, in order to tell the students internal working principle of the operating system. MINIX while is very good, but is just a simple operating system used for teaching purposes, rather than a strong practical operating system, but the biggest advantage is that open source code. Student of computers around the world by studying MINIX source code to run MINIX operating system in the computer, a sophomore students at the university of Helsinki, Finland, Linus Torvalds is one of them, on the basis of absorbing the essence MINIX, Linus wrote in 1991 of his own Linux operating system version for Linux0.01, marks the beginning of the age of Linux. He took advantage of the core of Unix, remove the multifarious core program, make it applicable to general computer x86 system, and on the Internet for everyone to download, launched in 1994, the core of the complete Version1.0, at this point, the Linux gradually become fully functional, stable operating system, and widely used.

The Linux key features

The basic idea

Linux there are two basic ideas: first, everything is a file; Second, each software has certain purposes. The first article in detail is the system of all boil down to a file, including command, hardware and software, operating systems, process equipment and so forth for the operating system kernel, is treated as have their respective characteristic or type of file. As for Linux is based on Unix, is largely because the basic idea of the two is very close.

Completely free

Linux is a free operating system, users can through the Internet or other ways for free, and is free to modify the source code. This is the other operating system. It is because of this, countless programmers from around the world involved in the modification of Linux, written work, the programmer can according to their own interest and inspiration to change, it makes Linux absorb the essence of countless programmers, growing.

Fully compatible with POSIX1.0 standards.

This enables under Linux through corresponding simulator run common DOS, Windows program. This laid the groundwork for users from Windows to Linux. Many users when considering using Linux, just think of before common program under Windows can run normally, it is to eliminate their doubts.

Multi-user, multi-tasking

Linux supports multiple users, each user for your own file equipment have their own special rights, ensure the mutual influence between each user. Multitasking is now one of the main characteristics of computer Linux can run multiple programs at the same time and independently.

Good interface

Linux also has the character interface and graphical interface. In character interface the user can through the keyboard input the corresponding operating instructions. It also provides similar to Windows graphic interface of the X Window system, users can use the mouse to operate. In the X - and in Windows in Windows environment are similar, can be a Linux version of Windows.

Support for multiple platforms

Linux can run on multiple hardware platforms, such as x86, 680 x0, SPARC, Alpha processor platform. In addition Linux is a kind of embedded operating system, can run on the handheld computers, set-top boxes, or game. Released in January 2001, the Linux kernel version 2.4 has been able to fully support Intel64 chip architecture. Linux also supports multiprocessor technology at the same time. Multiple processors work at the same time, make the system performance is greatly improved.

Advantages

  1. Linux is composed of many micro kernel, its source code is completely open source;
  2. Linux inherits the Unix features, have very strong network function, its support for all Internet protocol, TCP/IPv4, TCP/IPv6 and link layer topology procedures, etc , and can use the Unix network characteristics of developed a new protocol stack;
  3. Linux system tool chain is complete, simple operation can configure a suitable development environment, can simplify the development process, reduce the obstacles in developing simulation tools, the system has strong portability;

System kernel routing forwarding

Linux operating system, embedded in the TCP/IP protocol stack protocol software with functions of routing forwarding. Installed in the routing forwarding dependence as the router's host nic, when a piece of card to receive packets, system kernel will according to the packet's destination IP address, query routing table, and then according to the query results to send the packet to another piece of card, the packets sent out at last, through the network card. The host of the process is to complete a the core functions of a router.

By modifying the Linux kernel parameter ip_forward routing function, the way of system use sysctl command configuration and display in the/proc/sys directory kernel parameters. First in the command line, enter: cat/proc/sys/net/ipv4 / ip_forwad, check if the Linux kernel, IP forwarding functions. If the result is 1, which indicates that the routing forwarding functions already open; If the result is 0 that they are not open. For security reasons, the Linux kernel by default packet routing forwarding is prohibited. In a Linux system, there are temporary and permanent forward two methods to enable function.

Temporary enable: this method only for the current session, no longer enabled after system restart. Temporary open command format: sysctl - wnet ipv4. Ip_forward = 1.

Permanent enable: this permanent enable IP forwarding function, by changing the configuration file/etc/sysctl . Conf statement of the "net. Ipv4. Ip_forward = 0", changed to "net. Ipv4. Ip_forward = 1", save the configuration file after executing commands sysctl -p/etc/sysctl. Conf, configuration immediately.

Safety hidden danger and reinforcement measures

User account login and security

Delete the redundant users and user groups. Linux is a multi-user operating system, there are many different accounts, the role of the system after installation is complete operating system, the system will default to not add xu user groups and users, if part of the user or user group does not need, should remove them immediately, otherwise the hackers are likely to take advantage of these accounts, the server to carry out attacks. What keep account, may be determined in terms of the use of the server.

Shut down unnecessary system services. Operating system installation is completed, it will be in the process of installation, can start independent of the various types of service program content, for the long time running server, the operation of the service program, the more the less then the safety of the system. So, the user or user group will need to apply some service procedures that cannot be closed, the performance, the safety of the hoisting system has a great help.

Password security policy. Under Linux, remote login system has two kinds of authentication in the form of: that is the key and password authentication. Among them, the key form of authentication, mainly is the public key is stored on a remote server, the private key is stored locally. When landing system, and then through the local private key, public key, as well as the remote server matching operation of authentication, if authentication matching degree is consistent, the user can login system unobstructed. Such authentication way, will not be threatened by brute force. At the same time, you just need to ensure the safety of the local private key, so that it won't be hackers steal, the attacker is not able to log in to the system by means of such certification. So, it is recommended to use the key system in the form of landed.

Effective application of su , sudo command. The role of the su command is to switch to the user. When the administrator login to the system, use the su command to switch to the super user role to perform some need super authority command. But due to the large super user permissions, at the same time, need to know the super user password management personnel, so the su command has very serious management risk.

Sudo command allows the system to give ordinary users some super powers, and does not need to ordinary users to switch to the super user. On the management, therefore, should be detailed rights allocation mechanism, using sudo commands for each administrator serve its specific administrative privileges.

The remote access and login authentication security

Remote login use SSH to log in. Telnet is a kind of login authentication services, that pose a safety hazard in the above network to transmit content using clear, hackers can easily through the Telnet packets, won the user's login password. And Telnet service program security verification way there is a big security hidden danger, make it become the target of hackers. The SSH service is to encrypt the data transmission, to prevent cheating and IP spoofing, DNS and transmission of data is compressed, to a certain extent to ensure the security of the remote connection by the server.

Embedded Linux

To make the appropriate changes to your Linux and cut, and able to use the system in the embedded system is embedded Linux operating system. Has the following features:

Linux system is completely open, free of charge. It is open, it can be compatible with each other, and other system to realize information interconnection. And it is free to modify the source code, this is what other system does not have.

Advantage of the Linux operating system is the more users and tasks. Ensures that multiple users to use each other ; Multitasking after independence of each other, greatly improve the efficiency, can give full play to performance.

Equipment is independent. As long as the install driver, the driver of the support and help, any user can like using file, to the operation and use of any device, which makes people without considering equipment specific form of existence.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_35987486/article/details/103164279

智能推荐

C++实现Socket连接通信_c++ socket通信-程序员宅基地

文章浏览阅读6.8k次,点赞4次,收藏48次。一、打开两个VS2019,创建两个控制台程序分别命名为client和servers二、编写服务端servers1、包含头文件及库文件#include <WinSock2.h>#pragma comment(lib,"ws2_32.lib")#pragma warning(disable:4996)2、初始化及反初始化代码,记下来就行,永远不变//初始化代码,死记下来就行 WORD wVersion = MAKEWORD(2, 2); ._c++ socket通信

i7升级win11电脑发热,笔记本升级完win11发热严重-程序员宅基地

文章浏览阅读204次,点赞6次,收藏4次。很多人升级win11之后反馈CPU常常居高不下,经常在80°以上,严重时超过90°,风扇狂转,间接性蓝屏死机。是什么原因造成的呢?但是它的cpu占用率会很高,我们可以在进程中查看cpu的占用率,接下来带来解决方法。笔记本升级完win11发热严重,建议不要运行电脑承受不起的程序或游戏,这样可以有效减少电脑的运行负担。可以为电脑增加一个散热器,这种一般是usb外置的散热工具,适用于笔记本,不适合台式机哦。3、右键点击“开始”,打开“计算机管理”,打开“服务”。1、右键点击“开始”,打开“任务管理器”。

Kali下安装MITMF时,"没有可用的软件包 libpcap0.8-dev,但是它被其它的软件包引用了"错误解决办法_no package libpcap-dev available-程序员宅基地

文章浏览阅读4.9k次,点赞2次,收藏3次。在安装MITMF显示如下错误:试了很很多方法,终于找到了一个可以用的办法:1.apt-get update2.root@kali:~# apt-get install python-dev python-setuptoolslibpcap0.8-dev libnetfilter-queue-dev libssl-dev libjpeg-devlibxml2-dev libxsl..._no package libpcap-dev available

jira-7.12.1+confluence-6.13.1安装配置_服务器上安装confuence6.13-程序员宅基地

文章浏览阅读518次。一. 环境配置CentOS Linux release 7.5JDK 1.8JIRA 7.12.1CONFLUENCE 6.13.1二. JDK 1.8安装配置下载jdk1.8,安装到目录/usr/java/jdk1.8设置环境变量:export JAVA_HOME=/usr/java/jdk1.8export PATH=JAVAHOME/bin:JAVA_HOME/bin:JAVAH​OME/bin:PATH三. JIRA 安装配置到官网下载相应jira版本:https://w_服务器上安装confuence6.13

解决报错ImportError: IProgress not found. Please update jupyter and ipywidgets.-程序员宅基地

文章浏览阅读1.2w次,点赞30次,收藏31次。问题描述在用transformers模型导入预训练模型时,报错:ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html解决方法(1)首先很多博客说是jupyter的版本过低了,但是卸载再重装也不行:# 可以先用你的环境 conda activate xx# 卸载jupyter_importerror: iprogress not found. please update jupyter and ipywidgets. see

ARM体系结构简介:嵌入式系统的基石-程序员宅基地

文章浏览阅读61次。ARM体系结构采用了三种基本指令集:ARM指令集(32位)、Thumb指令集(16位)和Thumb-2指令集(混合32位和16位)。ARM体系结构包括三种基本指令集:ARM指令集(32位)、Thumb指令集(16位)和Thumb-2指令集(混合32位和16位)。2.2 强大的可扩展性:ARM体系结构支持多核处理器和对称多处理(SMP)系统,使得处理器性能能够随着需求的增长而扩展。2.2 可扩展性强:ARM体系结构支持多核处理器和对称多处理(SMP)系统,使得处理器性能能够随着需求的增长而扩展。

随便推点

Python批量修改、删除、替换xml文件内容(labelimg标注)_labelimg删除标签会把classes里的内容删除-程序员宅基地

文章浏览阅读1w次,点赞25次,收藏114次。使用模型训练自定义数据集之前,在用在网上搜索得到的图片制作数据集时,即使批量修改图片名称后,在使用labelimg标注得到的xml文件中,图片名称还是网络上图片原本的名称,这时需要对其进行批量修改。<annotation> <folder>测试图片</folder> <filename>ae2f50b6a937df1e1a72f9bcc45b172d.jpg</filename> <path>F:\项目图像数据集\ae2f5_labelimg删除标签会把classes里的内容删除

读书笔记:getting things done_get things done读后感-程序员宅基地

文章浏览阅读729次。http://www.amazon.com/Getting-Things-Done-Stress-Free-Productivity/dp/0142000280/ref=sr_1_1?s=books&ie=UTF8&qid=1401151197&sr=1-1&keywords=getting+things+done_get things done读后感

python周期函数的拟合_Python可以拟合函数(数学意义)吗?-程序员宅基地

文章浏览阅读476次。可以的,有多种方法进行任意函数曲线的拟合。但如果你是普朗克,你得先猜出来黑体辐射的公式样子,拟合只能给出系数。——————————————1、第一种是进行多项式拟合,数学上可以证明,任意函数都可以表示为多项式形式。具体示例如下:###拟合年龄import numpy as npimport matplotlib.pyplot as plt#定义x、y散点坐标x = [10,20,30,40,50,..._python周期性函数的拟合

2017第八届蓝桥杯决赛(C++ B组)2.磁砖样式-程序员宅基地

文章浏览阅读102次。磁砖样式小明家的一面装饰墙原来是 310 的小方格。现在手头有一批刚好能盖住2个小方格的长方形瓷砖。瓷砖只有两种颜色:黄色和橙色。小明想知道,对于这么简陋的原料,可以贴出多少种不同的花样来。小明有个小小的强迫症:忍受不了任何22的小格子是同一种颜色。(瓷砖不能切割,不能重叠,也不能只铺一部分。另外,只考虑组合图案,请忽略瓷砖的拼缝)显然,对于 23 个小格子来说,口算都可以知道:一共..._蓝桥杯c++b组2017决赛铺瓷砖 答案

AndroidStudio 配置NDK开发环境,SDKManager下没有SDK问题_android studio 的sdk manager 不显示sdk-程序员宅基地

文章浏览阅读1.7k次。今天开始配置NDK开发环境根据需要配置NDK、CMake、LLDB。尝试自己下载NDK,指定NDK目录,发现编译又找不到CMake,之后果断放弃。尝试找SDKManager 先没有这几项的原因。最后发现 File--Setting--Appearance&Behavior--System Settings--Http Proxy下,选择了Manual proxy configura_android studio 的sdk manager 不显示sdk

8个高质量免抠素材网站-程序员宅基地

文章浏览阅读6.3k次。8个高质量免抠素材网站 标签:免扣素材ppt 素材1.PngImg网址: http://pngimg.com/PngImg 网站是一个收录了近5万个免费的网页设计图片素材的站点,拥有详细的分类,如蔬菜、动物、水果、花卉、服装、食品、家具等等,所有的素材资源设计师们都可以无需注册免费下载使用。PngImg 网站内建搜寻功能,或者可使用单字开头AZ方式快速查找,本身首页设计就跟一般的..._免扣素材库