Ubuntu系统的基础操作和使用
一、Ubuntu系统介绍
1.Ubuntu系统介绍
Ubuntu(友帮拓、优般图、乌班图)是一个以桌面应用为主的开源GNU/Linux操作系统,Ubuntu 是基于Debian GNU/Linux,支持x86、amd64(即x64)和ppc架构,由全球化的专业开发团队(Canonical Ltd)打造的。
2.Ubuntu与其他Linux发行版区别
①当前的Linux发行版本
目前已有大量各种各样基于 GNU/Linux的操作系统,例如:Debian, SuSE, Gentoo, RedHat 、 Mandriva、华为EulerOS、Centos等。在这业已竞争纷繁的世界里,Ubuntu 是又一个参与者
②区别
- Debian 是一个广受称道、技术先进且有着良好支持的发行版,Ubuntu 正是基于 Debian之上,旨在创建一个可以为桌面和服务器提供一个最新且一贯的 Linux 系统。
- Ubuntu 囊括了大量从 Debian 发行版精挑细选的软件包,同时保留了 Debian 强大的软件包管理系统,以便简易的安装或彻底的删除程序。
- 与大多数发行版附带数量巨大的可用可不用的软件不同,Ubuntu 的软件包清单只包含那些高质量的重要应用程序。
- 注重质量,Ubuntu提供了一个健壮、功能丰富的计算环境,既适合家用又适用于商业环境。
- 本项目花费了大量必要的时间,努力精益求精,每6个月就会发布一个版本,以提供最新最强大的软件。Ubuntu支持各种形形色色的架构,包括 i386 (386/486/Pentium(II/III/IV)和Athlon/Duron/Sempron 处理器),AMD64(Athlon64, Opteron及64位 Intel 处理器),以及PowerPC(iBook/Powerbook, G4 and G5)等。
3.当前测试的ubuntu版本
4.Ubuntu官网
二、Ubuntu更新软件源
1.查看当前的软件源
2.备份当前的sources.list文件
3.删除原sources.list文件,重新编辑
4.更新源
5.update和upgrade区别
update是更新软件列表,upgrade是更新软件。这两个命令一般是一起使用
6.apt和apt-get区别
三、安装mariadb
1.安装mariadb并设置开机自启
2.查看mariadb状态
3.进入数据库
四、ubuntu的常用命令
1.常用apt操作
2.dpkg (Debian package)包管理工具
①安装软件
②卸载软件
3.文件系统管理
①常用的文件操作
②文件的解压缩
4.系统管理常用操作
五、系统主要目录
Linux系统主要目录
/bin 构建最小系统所需要的命令,最常用的命令
/boot 内核和启动文件
/dev 各种设备文件
/etc 系统软件的启动和配置文件
/home 用户的主目录
/lib C编译器的库
/media 可移动介质的安装点
/opt 可选的应用软件包
/proc 超级用户root的主目录
/sbin 和系统操作有关的命令
/tmp 临时文件存放点
/usr 非系统的程序和命令
/var 系统专用的数据和配置文件
六、系统的监控和管理
1.动态监控系统资源占用
top命令