命令行使用技巧

                Linux操作系统:Linux操作系统包括:内核(kernel)和应用软件。

                                         Linux的核心是内核(kernel),外面是shell。

####1.输入法的调整###

                    Application  ——> System Tools ——> Settings ——>  Rejion&language ——> Input source ——>  +  ——>Chinese(pinyin)    ——> Add

                                                                                                                                                         

             shift是切换语言的方法

####2.虚拟机的简单应用###

             (1)命令一定要在命令提示符后面输入,没有命令提示符的输入命令无效 

             (2)命令提示符中的含义

                              [kiosk@foundation0 Desktop]$
                        kiosk:    运行shell的用户是谁                         @:分割符号                    foundation0:主机名称        

                        Desktop:当前主机所在的位置                        $:是身份提示符号        ($表示普通用户       #表示超级用户)

 (3)虚拟机的用户            

              root:超级用户         student:普通用户

             desktop                                                       server 
             用户        密码                                             用户               密码
             student        student                                   student          student
             root       redhat                                            root               redhat

             root应为是超级用户,权限更高所以要隐藏起来,隐藏在notlist里。

 (4)使用虚拟机的基本命令    

                        rht-vmctl     redhat-virtual machine

             [kiosk@foundation0 Desktop]$ rht-vmctl    start         desktop         ##打开虚拟机   
             [kiosk@foundation0 Desktop]$ rht-vmctl    view      desktop            ##显示虚拟机
             [kiosk@foundation0 Desktop]$ rht-vmctl    poweroff      desktop     ##关闭虚拟机
             [kiosk@foundation0 Desktop]$ rht-vmctl   reset     desktop             ##重置虚拟机,虚拟机出现解决不了的问题时来用此命令                                                                                                                 还原

(5)虚拟机使用中的报错情况

             [kiosk@foundation0 Desktop]$ rht-vmctl view desktop       
             Error: unable to view desktop - not currently running.      ##当虚拟机没有开启时不能直接显示 ,应该先打开再现实虚拟机

             [kiosk@foundation0 Desktop]$ rht-vmctl start desktop            
             Error: desktop not started (is already running)ht-vmctl             ##当虚拟机已经运行时不能再次运行

(6)命令的输入方法 

            命令   参数   目标  

          (1.参数和目标不是必须要加的。2.参数用来指定命令的某些功能。3.命令和参数和目标之间要用空格分开。)

            <1> 示例:[命令提示符]$date                结果:显示当前的时间

                             [命令提示符]$ls  -l  desktop   结果:显示/root/Desktop下的文件的属性

                               

      <2>参数

                        -参数(缩写)       --参数(单词的全拼)             

              例如: [命令提示符]$ ls -s          [命令提示符]$ ls --size    (这两个命令是等价的)

             

猜你喜欢

转载自www.cnblogs.com/wf-aiyouwei/p/9333702.html