一 、什么是linux

1.linux这个词指的是linux的内核

2.linux 操作系统叫做 GUN/linux

3.GUN/LINUX 是指 linux 的内核+GUN 组织的软件

二、什么是shell

1.我们所使用的系统中默认启动的shell是bash

2.shell包在linux内核外面,是保护系统内核不被篡改的软件,并为用户和内核之间的交互提供接口

3.shell是一个解释器

三、虚拟机的控制
[kiosk@foundation0 Desktop]$ rht-vmctl    view      desktop              #显示虚拟机

[kiosk@foundation0 Desktop]$ rht-vmctl    start     desktop               #打开虚拟机

[kiosk@foundation0 Desktop]$ rht-vmctl    poweroff  desktop          #关闭虚拟机

[kiosk@foundation0 Desktop]$ rht-vmctl    reset     desktop             #重置虚拟机,解决出错

 注:虚拟机报错信息

[kiosk@foundation0 Desktop]$ rht-vmctl start desktop
Error: desktop not started (is already running)        #虚拟机正在运行


[kiosk@foundation0 Desktop]$ rht-vmctl view desktop
Error: unable to view desktop - not currently running.    #虚拟机没有运行

[kiosk@foundation0 Desktop]$ rht-vmct1  start desktop
bash: rht-vmct1: command not found...            #命令输入错误
四、如何在shell中运行命令

1.命令字符行含义
[kiosk@foundation6 Desktop]$
 [1]     [2]       [3]              [4]       [5]
[1]   ###当前运行bash用户名称
[2]   ###信息分隔符
[3]   ###bash所在主机名称
[4]   ###当前所在系统位置
[5]   ###用户身份提示符      $为普通用户       #为超级用户
2.命令执行方式
1)命令必须在shell行提示符之后输入
[kiosk@foundation6 Desktop]$ cat
ls
ls
^C       ###当有程序占用shell时,可按ctrl+c结束占用
2)命令格式
       命令     参数      目标
参数:  -     单词缩写     -a -b -c  === -abc   ===-bac  ====...
              --   单词全拼
>>参数和目标都不是必须加

 

10-07 15:42