Linux 的基本操作及命令(一)
1.对于Linux的理解
大多数人对于Linux的理解为操作系统,但是严格意义上讲它其实是一个系统内核。Linux这个词本身只表示Linux内核,但实际上人们已经习惯了用Linux来形容整个基于Linux内核,并且使用GUN工程各种工具和数据库的操作系统。
2.系统语言调整
Application -->System Tools —> Settings ----> Rejion&language —> Input source -->Chinese ---->Pinyin
3.虚拟机控制命令
(1).常规操作
[[email protected] ~]$ rht-vmchl start desktop ###开启虚拟机
bash: rht-vmchl: command not found…
[[email protected] ~]$ rht-vmctl poweroff desktop ###关闭虚拟机
Powering off desktop.
[[email protected] ~]$ rht-vmctl view desktop ###显示
[[email protected] ~]$ rht-vmctl reset desktop ###虚拟机重置
Are you sure you want to reset desktop? (y/n) y
Powering off desktop…
Resetting desktop.
Creating virtual machine disk overlay for rh124-desktop-vda.qcow2
Creating virtual machine disk overlay for rh124-desktop-vdb.qcow2
Starting desktop.
(2).报错分析
[[email protected] ~]$ rht-vmctl stat desktp ###参数错误
This utility manages the Red Hat Training supplied VMs on the local
hypervisor.
Usage: rht-vmctl [-q|–quiet] VMCMD VMNAME [DATETIME]
rht-vmctl -h|–help
[[email protected] ~]$ rht-vmctl start deskto###虚拟机名称错误
Error: unrecognized VMNAME specified, deskto.
[[email protected] ~]$ rht-vmct1 start desktop ###命令错误
bash: rht-vmct1: command not found…
[[email protected] ~]$ rht-vmctl view desktop ###虚拟机未运行
Error: unable to view desktop - not currently running.
[[email protected] ~]$ rht-vmctl start desktop == ###虚拟机正在运行==
Error: desktop not started (is already running)
(3).命令行提示符中字符的含义
例:[[email protected] Desktop]$
[1]kiosk:
运行shell的用户是谁
[2]@:
分割符号
[3]foundation0:
主机短名称
[4]Desktop:
所在当前主机的位置
[5]$:
身份提示符号
$表示普通用户
#表示超级用户