Linux1

Linux1

Simple to understand

  • Linux is explained in English as Linux is not Unix
  • The Linux kernel was originally written as a hobby by Finn Linus Torvalds at the University of Helsinki.
  • Linux is a set of Unix-like operating systems that are free to use and spread freely. It is a multi-user, multi-tasking, multi-threading and multi-CPU operating system based on POSIX and UNIX.
  • Linux can run major UNIX utilities, applications and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits the network-centric design idea of ​​Unix, and is a multi-user network operating system with stable performance.

Comparison of windows and linux

comparison Windows Linux
interface The interface is unified, the shell program is fixed, the menus of all Windows programs are almost the same, and the shortcut keys are also almost the same GUI styles vary from release to release and may not be compatible with each other. GNU/Linux terminals are inherited from UNIX, and the basic commands and operation methods are almost the same
driver Drivers are abundant, and versions are updated frequently. The default installation program generally contains the popular hardware drivers when the version is released, and the new hardware drivers released after that depend on the hardware manufacturers. For some old hardware, it is sometimes difficult to support without the original driver. In addition, sometimes the hardware manufacturer does not provide the required version of the driver under Windows, it will also be a headache. Developed by volunteers and released by the Linux core development team, many hardware manufacturers do not provide drivers based on copyright considerations. Although most of them do not require manual installation, the installation is relatively complicated, making new users face driver problems (whether it exists and installs). method) will be helpless. But under the open source development model, many older hardware can easily find drivers even though they are hard to support under Windows. Hardware manufacturers such as HP, Intel, and AMD are gradually supporting open source drivers to varying degrees, and the problem is being alleviated.
Learn Simple to use and easy to get started with. The graphical interface is very beneficial for users without computer background knowledge. The graphical interface is simple to use and easy to get started with. Text interface, need to learn to master.
     
use The system structure is complex and changes frequently, and knowledge and skills are quickly eliminated, making in-depth learning difficult. The system structure is simple and stable, and the knowledge and skills are well inherited, making it relatively easy to learn in depth.
software Each specific function may require commercial software support, requiring the purchase of a corresponding license. 大部分软件都可以自由获取,同样功能的软件选择较少。

安装Linux

  • centos6.4
  • 安装过程

Linux系统启动

  • 过程示意图
  • 启动过程
    1. 内核引导
    2. 运行init
    3. 系统初始化
    4. 建立终端
    5. 登录系统

Linux的目录结构

Linux目录解释

目录名称 解释
/bin 是Binary的缩写,这个目录存放着经常使用的命令
/boot 这里存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文件
/dev device(设备的缩写,该目录下存放的是Linux的外部设备,在Linux中访问设备的方式和访问文件的方式是相同的)
/etc 这个目录是存放所有系统管理所需要的配置文件和子目录
/home 用户的子目录,在Linux中,每个用户都有一个自己的目录,一般该目录名是以用户的账号命名的
/lib 这个目录存放着系统最基本的动态链接共享库,其作用类似于Windows里的DLL文件,几乎所有的应用程序都要用到这些共享库
/lost+fond 这个目录一般情况下是空的,当系统非法关机后,这里就存放了一些文件
/media Linux系统会自动识别一些设备,例如U盘、光驱等,当识别后,Linux会把识别的设备挂载到这个目录下
/mnt 系统提供该目录是为了让用户临时挂载别的文件系统的,我们可以将光驱挂载在/mnt/上,然后就可以在这个目录下查看此光驱的内容了
/opt 这是给主机额外安装软件所摆放的目录,一个ORACLE数据库就可以放在这个目录下,默认是空的
/proc 这个目录是一个虚拟目录,它是系统内存的映射,我们可以直接访问这个目录来获取系统的信息。这个目录的内容不在硬盘上,而是在内存里,我们也可以直接修改里面的某些文件,比如可以通过下面的命令来屏蔽主机的Ping命令,使别人无法Ping你的机器
/root 该目录为系统管理员,也称作超级权限者的用户主目录
/sbin s就是Super User的意思,这里存放的是系统管理员使用的系统管理程序
/selinux 这个目录是Redhat/CentOS所特有的目录,Selinux是一个安全机制,类似Windows的防火墙,但是这套机制比较复杂,这个目录就是存放selinux相关文件的
/srv 该目录存放一些服务启动之后所需要提取的数据
/sys 这是Linux2.6内核的一个很大的变化,该目录下安装了2.6内核中新出现的一个文件系统sysfs,该系统集成了下面3种文件系统的信息: 针对进程信息的proc文件系统,真对设备的devfs文件系统以及针对伪终端的devpts文件系统。该文件系统是内核设备树的一个直观反映,当一个内核对象被创建的时候,对应的文件和目录也在内核的子对象系统中被创建
/tmp 这个目录是用来存放一些临时的文件
/usr 这是一个非常重要的目录,用户的很多应用程序和文件都存放在这个目录下,类似于Windows下的program files目录
/usr/bin 系统用户使用的应用程序
/usr/sbin 超级用户使用的比较高级的管理程序和系统守护程序
/usr/src 内核源代码默认的放置目录
/var 这个目录存放着不断扩充中着的东西,我们习惯将那些经常被修改的目录放在这个目录下,包括各种日志文件

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325677142&siteId=291194637