hyzqb 发表于 2018-5-20 09:24:01

linux环境下的命令

  1.命令: rht-vmctl start desktop   开始
  rht-vmctl stop desktop   命令停止
  rht-vmctl poweroff desktop      关机
  rht-vmctl reset desktop    重置
  rht-vmctlfullreset desktop完全重置,切记在真实机中谨慎使用,在虚拟机中可使用
  2.如何进入虚拟机:not listed(超级用户)-enter-useage name:root-password:redhat
  Student(普通用户)-password
  3.如何切换语言:系统工具-设置-语言-root-poweroff-restart
  4.shell:壳,保护内核(kernel),通常用的是bash
  5.普通用户切换超级用户:虚拟机点右键-open in terminal -su - root-password-
  6.快捷键:ctrl+alt+f2-f6表示进入登陆虚拟控制台
  ctrl+alt+f1、f7表示进入图形界面
  crtl+alt+上下键表示上下
  crtl+alt+l   表示锁屏
  crtl+d表示关掉shell
  crtl+shift+t   打开新的shell
  ctrl+shift+c复制
  crtl+shift+v粘贴
  crtl+shift+pgup/pgdn   表示切换界面
  7.[    ]表示里面的参数可有可无
  ls -l 文件名:显示里面的内容查
  看参数本身:ls -l -d 文件名
  -a -b -c=-abc
  例如查看时间:date -d 83 day(83天后的时间)
  date -d -83 day(83天前的时间)
  . . . :表示个数
  <>:必须要加的
  8.init初始化
  init 0关机
  init 1单用户
  init 2、3、4用户自定义
  init 5有图形
  gnome - terminal   创建新的shell
  9.在虚拟机中修改密码
  root:password-enter-输入自己的新密码
  password-student-输入新的密码(更改别人的密码)
  student:password-enter-输入原来的密码—输入新的密码
  注意:普通用户不能更改别人的密码,但超级用户可以更改自己和别人的密码
  10.file:file+文件名(检测文件类型)
  password -S root/student
  head/tail file +文件名
  wc -L file (最长有效字符)
  wc -m/-c/-l/-L/-w
  11.字符、字节
  tab建:首字母+tab 表示补齐后面的字符
  history -c
  !+数字
页: [1]
查看完整版本: linux环境下的命令