Linux基本介绍
##一、Linux简介##
Linux是内核,作为一个开源系统,他可以根据客户的需求DIY,这也是他被广泛应用的原因。Linux版本众多,而redhat公司的版本最为常见。我们平常使用的GUN软件+Linus内核。同时Linux并不直接与外界交流信息,在其外层有shell包裹,外界命令传递给shell,再由shell解释给Linux。当前系统默认使用shell类型:bash GUN Bourne again Shell
在正式使用之前的准备:
###1.输入法调整###
Application ----->System Tools -----> Settings ------> Rejion&language -----> Input source ---->+ ---->Chinese ---->Pinyin
shift 是切换语言的方式
###2.指令输入窗口
鼠标右键--------->点击Open Terminal
###3,虚拟机管理###
[[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
##二、在linux中如何运行命令##
命令 参数 目标
ls -s test
ls --size test
注意:
1.参数用来指定命令的某些功能,可以加也可以不加
2.命令和参数和目标之间要用空格分开
3.参数中“-” 表示单词的缩写,“–”表示单词的全拼
4.在执行命令时通常遵循这些规则,特殊情况除外
5.命令必须在行提示符之后输入,没有行提示符的输入时无效的。
##三、命令行提示符中[]字符的含义##
[[email protected] Desktop]$
[1] [2] [3] [4] [5]
[1]kiosk: 运行shell的用户是谁
[2]@: 分割符号
[3]foundation69: 主机短名称
[4]Desktop: 所在当前主机的位置
[5]$: 身份提示符号
$表示普通用户
#表示超级用户