unit1----linux基礎知識
######## 虛擬機器管理
rht-vmctl = redhat virt machine control ###紅帽虛擬機器控制器 [[email protected] Desktop]$ rht-vmctl start desktop ##開啟 Starting desktop. ##正在開啟
[[email protected] Desktop]$ rht-vmctl start desktop Error: desktop not started (is already running) ##虛擬已經開啟
[[email protected] Desktop]$ rht-vmctl view desktop ##顯示
[[email protected] Desktop]$ rht-vmctl view desktop Error: unable to view desktop - not currently running. ##虛擬機器未開啟不能顯示
[[email protected] Desktop]$ rht-vmctl poweroff desktop ##關閉
[[email protected] Desktop]$ rht-vmctl reset desktop ##重置, ##可以解決虛擬機器問題 Are you sure you want to reset desktop? (y/n) y
##########虛擬機器資訊####### desktop 使用者 密碼 普通使用者:student student 超級使用者:root redhat
not list —root—> redhat
server 使用者 密碼 普通使用者:student student 超級使用者:root redhat
not list —root—> redhat
調整中文輸入法
Application —>System Tools —> Settings ----> Rejion&language —> Input source —> + —>Chinese —>Pinyin
shell的開啟方式
方法一:Application—>Utilities—>Ternimal 方法二:在空白桌面處右鍵Open in Ternimal 方法三:在開啟的shell中輸入gnome-ternimal命令(只能在已經開啟的shell中新開啟一個shell) 方法四:ctrl+shift+n(只能在已經開啟的shell中新開啟一個shell)
#####1.linux是什麼?######
本身只是表示Linux核心(kernel),但實際上人們已經習慣使用Linux來形容整個Linux核心,並且使用GNU工程各種工具和資料庫的作業系統。
核心(kernel)
核心是作業系統最基本的部分。它是為眾多應用程式提供對計算機硬體的安全訪問的一部分軟體,這種訪問是有限的,並且核心決定一個程式在什麼時候對某部分硬體操作多長時間。
####2.什麼是shell####
shell也是作業系統中的一個軟體,它包含在linux核心的外面,為使用者和核心之間的互動提供了一個介面。系統中的命令用shell去解釋shell接收系統迴應的輸出並顯示其到螢幕中。
保護系統核心並對外提供操作介面的軟體
linux中預設的shell是bash
常見的shell型別:tesh、bash、sh
示意圖
####3.在shell如何執行命令####
#)命令列字元含義 [[email protected] Desktop]$ [1] [2] [3] [4] [5]
[1]kiosk ##當前使用者名稱稱 [2]@ ##分割符 [3]foundation0 ##主機名稱 [4]Desktop ##當前所在系統位置 [5]$ ##使用者身份提示符$表示普通使用者,#表示超級使用者
命令執行方式
1.命令必須要在shell行提示符之後輸入 2.當有程式佔用shell時可以用ctrl+c結束此程式 3.命令格式
命令 引數 目標 ls -s test
ls --size test
引數
####引數中“-” 表示單詞的縮寫,“–”表示單詞的全拼 -a -b -c === -abc ===-cab ==== -cba
獲得幫助
mandb ##更新幫助資訊 whatis 命令 ##檢視命令用途 命令 --help ##檢視命令的幫助 [ ] 選加 … 加的個數任意 <> 必須加入