linux之基础知识
#1.linux 这个词单指 linux 内核; linux 操作系统叫做 GUN/linux ;GUN/LINUX 是指 linux 的内核 +GUN 组织的软件;
#2.当前用户的登入
#3.输入法的调整
Application ----->System Tools -----> Settings ------> Rejion&language -----> Input source ---->+ ---->Chinese ---->Pinyin
#4.虚拟机管理
##常规操作
[[email protected] Desktop]$ rht-vmctl start desktop ##打开虚拟机
[[email protected] Desktop]$ rht-vmctl view desktop ##显示虚拟机
[[email protected] Desktop]$ rht-vmctl poweroff desktop ##关闭虚拟机
Powering off desktop..
[[email protected] Desktop]$ rht-vmctl reset desktop ##重置虚拟机,当虚拟机出现任何解决不了的问题时来用此命令还原
##可能出现的报错##
[[email protected] Desktop]$ rht-vmctl view desktop ##当虚拟机没有开启时不能直接显示 ,可以用开启虚拟机的方式解决
Error: unable to view desktop - not currently running.
[[email protected] Desktop]$ rht-vmctl start desktop ##当虚拟机已经运行时不能再次运行
Error: desktop not started (is already running)ht-vmctl
###虚拟机信息 ###
desktop
用户 密码
student student
root redhat
server
用户 密码
student student
root redhat
root登陆
notlist -----> root ----> redhat
#4.与当前系统的交互
在当前操作系统中默认用 bash 和系统实现交互 • 鼠标右键 打开 bash • 也可以在 Applications 中选择 • 在一个 bash 中输入命令: gnome-terminal
#5.shell
#a# shell也是操作系统中的一个软件,它包在linux 内核的外面,为用户和内核之间的交互提供 了一个接口,系统中的命令用 shell 去解释 ,shell 接收系统回应的输出并 显示其到屏幕中 ,bash = GNU BourneAgain Shell
#b# 在shell中执行命令
命令 参数 目标
ls -s test
ls --size test
注意:
1.参数用来指定命令的某些功能,可以加也可以不加
2.命令和参数和目标之间要用空格分开
3.参数中“-” 表示单词的缩写,“--”表示单词的全拼
4.在执行命令时通常遵循这些规则,特殊情况除外
5.命令必须在行提示符之后输入,没有行提示符的输入时无效的。
#c#命令行提示符中[3]字符的含义
[[email protected] Desktop]$
[1][2] [3] [4] [5]
[1]kiosk:
运行shell的用户是谁
[2]@:
分割符号
[3]foundation0:
主机短名称
[4]Desktop:
所在当前主机的位置
[5]$:
身份提示符号
$表示普通用户
#表示超级用户
#6#Linux系统结构
linux是一个倒树型结构,最大的目录名称叫“/” (根目录),根目录以下的是二级目录,Linux中的所有东西都是文件。
#7#linux系统中的二级目录
/bin ##二进制可执行文件,系统常规命令
/boot ##启动目录,存放系统自动启动文件,内核,初始化程序
/dev ##系统设备管理文件
/etc ##大多数系统配置文件存放路径
/home ##普通用户家目录
/lib ##函数库
/lib64/ ##64位函数库
/media ##临时挂载点
/mnt ##临时挂载点
/run ##自动临时设备挂载点
/opt ##第三方软件安装路径
/proc ##系统硬件信息和系统进程信息
/root ##超级用户家目录
/sbin ##系统管理命令,通常只有root可以执行
/srv ##系统数据目录
/var ##系统数据目录
/sys ##内核相关数据
/tmp ##临时文件产生目录
/usr/ ##用户相关信息数据