-
計算機組成及其功能
計算機其實是:接收用戶輸入指令與數據,經過中央處理器的數據與邏輯單元運算處理后,以產生或存儲成有用的信息。所以計算機組成可以分為輸入單元、輸出單元、CPU(控制單元、算術邏輯單元)、內存
輸入單元:包括鍵盤、鼠標、掃描儀、手寫板、觸摸屏等;實現數據的輸入功能
輸出單元:例如屏幕、打印機等;實現數據處理后結果的輸出功能
算術邏輯單元:主要負責程序運算與邏輯判斷
控制單元:主要協調各組件與各單元間的工作
內存:提取輸入單元數據,提供cpu數據的讀取
-
linux主流發行版
debian:ubuntu
slackware:s.u.s.e
redhat:redhat enterprise linux ; centos
-
linux哲學思想
一切皆文件:linux系統將所有的資源抽象為文件,硬件設備、通信接口也通過文件表示。這樣管理整個系統或修改配置系統其實就變成文件管理
一個程序只做一件事:linux系統由眾多功能單一的小程序組成,復雜任務通過程序組合完成(小程序不容易出錯、復雜任務排錯可以分解為小程序)
程序啟動盡力不與人交互:希望以編程的方式實現自動化
文本保存配置文件:用最基本的編輯工具就能完成;備份、閱讀比較方便;熟悉配置后能快速部署
-
linux命令
linux命令格式:COMMAND [OPTION]… [FILE]|[string]
COMMAND:linux命令本身
[OPTION]:linux命令運行可調整項,可以跟多個選項
[FILE]|[string]:linux命令后跟的參數,也有可能不需要參數;參數一般是文件或字符串
ifconfig命令
ifconfig – configure a network interface(可以用做查看ip地址)
echo命令
echo – display a line of text
-n do not output the trailing newline
-e enable interpretation of backslash escapes
tty命令
tty – print the file name of the terminal connected to standard input
startx命令
startx – initialize an X session
export命令
export – set the export attribute for variables
pwd命令
pwd – print name of current/working directory
history命令
history – display the command history list with line numbers
-c Clear the history list by deleting all the entries
-d offset Delete the history entry at position offset
shutdown命令
shutdown – bring the system down
-r Requests that the system be rebooted after it has been brought down
-h Requests that the system be either halted or powered off after it has been
brought down, with the choice as to which left up to the system
-c Cancels a running shutdown
poweroff命令
poweroff – reboot or stop the system
reboot命令
reboot – reboot or stop the system
hwclock命令
hwclock – query and set the hardware clock (RTC)
date命令
date – print or set the system date and time
-
linux獲取命令幫助
builtin命令:help COMMAND
外部命令:COMMAND –help
程序自帶的幫助文檔
官方文檔
搜索引擎
在線幫助文檔:info COMMAND
常用幫助:man COMMAND
man文檔:分為8個章節
MANUAL SECTIONS
The standard sections of the manual include:
1 User Commands
2 System Calls
3 C Library Functions
4 Devices and Special Files
5 File Formats and Conventions
6 Games et. Al.
7 Miscellanea
8 System Administration tools and Deamons
-
linux文件系統簡述
遵循Filesystem Hierarchy Standard(文件系統目錄標準)
fhs-3.0.pdf The current version is 3.0. It was announced on June 3, 2015.
原創文章,作者:goal,如若轉載,請注明出處:http://www.www58058.com/45843
可以自己畫圖來說明一下目錄結構