1、描述計算機的組成及其功能。
計算機由五大功能部分組成(馮諾依曼體系):運算器、控制器、儲存器、輸入設備、輸出設備,對應到具體的硬件設備如下:
CPU : 包含運算器、控制器、寄存器及緩存
功能:以時間流逝的方式來提供計算能力
內存 : 存儲器
功能:程序(指令+數據)運行時需加載到內存中,以便CPU尋址訪問
鍵盤鼠標 :輸入設備
功能:與計算機交互的入口,用來提供命令,數據等
顯示器 : 輸出設備
功能:反饋計算機運算處理的結果
2、按系統羅列Linux的發行版,并描述不同發行版之間的聯系與區別。
Linux發行版三大分支:
1、Debian (以社區方式運作)
子分支:ubuntu
子分支:mint
knopix
2、Slackware (以商業公司運作)
子分支:S.u.S.E
子分支:SLES
OpenSUSE
2、RedHat (以商業公司運作)
RedHat Enterprise Linux(RHEL)
子分支:CentOS (Community Enterprise OS)
Fedora
其他有代表性的發行版:Gentoo、ArchLinux等。
3、描述Linux的哲學思想,并按照自己的理解對其進行解釋性描述。
Linux的重要哲學思想之一:一切皆文件,Linux上的一切都可以抽象為文件,包括設備,驅動等;
4、說明Linux系統上命令的使用格式;詳細介紹ifconfig、echo、tty、startx、export、pwd、history、shutdown、poweroff、reboot、hwclock、date命令的使用,并配合相應的示例來闡述。
Linux命令的使用格式:命令 選項 參數
命令:將某個二進制文件運行起來(進程)
選項:指定命令的運行特性
參數:命令的作用對象
ifconfig:顯示系統網絡設備的配置信息
echo:將內容回顯到標準輸出上
[root@T01-7-2-1511 ~]# echo "Test" Test [root@T01-7-2-1511 ~]#
tty:顯示連接到標準輸入的終端名
[root@T01-7-2-1511 ~]# tty /dev/pts/0 [root@T01-7-2-1511 ~]#
startx:在CLI中啟動GUI界面的命令
export:unknow
pwd:顯示用戶的工作目錄(當前目錄)
[root@T01-7-2-1511 test]# pwd /tmp/test [root@T01-7-2-1511 test]#
history:顯示命令的歷史紀錄
[root@T01-7-2-1511 test]# history 1 ls 2 pwd 3 exit 4 date ...... 307 tree /tmp/magedu.com 308 ls -d /etc/[^[:alpha:]][a-z]* 309 ls -d /etc/[0-9]*[^0-9] 310 ls -d /var/l?[[:lower:]] 311 logout 312 ifconfig 313 man ifconfig 314 man echo 315 echo "Test" 316 man tty 317 tty 318 cd /tmp/test/ 319 pwd 320 history [root@T01-7-2-1511 test]#
shutdown、poweroff、reboot:系統關機重啟的命令(管理類命令,需管理員權限)
hwclock:顯示、設定系統的硬件時間
[root@T01-7-2-1511 test]# hwclock Mon 15 Aug 2016 10:08:33 AM CST -0.145705 seconds [root@T01-7-2-1511 test]#
date:顯示、設定系統時間及日期
[root@T01-7-2-1511 test]# date Mon Aug 15 10:02:15 CST 2016 [root@T01-7-2-1511 test]#
5、如何在Linux系統上獲取命令的幫助信息,請詳細列出,并描述man文檔的章節是如何劃分的。
對于BASH內建的命令:help 命令
[root@T01-7-2-1511 test]# help cd cd: cd [-L|[-P [-e]]] [dir] Change the shell working directory. Change the current directory to DIR. The default DIR is the value of the HOME shell variable. The variable CDPATH defines the search path for the directory containing DIR. Alternative directory names in CDPATH are separated by a colon (:). A null directory name is the same as the current directory. If DIR begins with a slash (/), then CDPATH is not used. If the directory is not found, and the shell option `cdable_vars' is set, the word is assumed to be a variable name. If that variable has a value, its value is used for DIR. Options: -L force symbolic links to be followed -P use the physical directory structure without following symbolic links ... [root@T01-7-2-1511 test]#
對于外部命令:1、命令 –help
[root@T01-7-2-1511 test]# ls --help Usage: ls [OPTION]... [FILE]... List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified. Mandatory arguments to long options are mandatory for short options too. -a, --all do not ignore entries starting with . -A, --almost-all do not list implied . and .. --author with -l, print the author of each file -b, --escape print C-style escapes for nongraphic characters --block-size=SIZE scale sizes by SIZE before printing them; e.g., '--block-size=M' prints sizes in units of 1,048,576 bytes; see SIZE format below -B, --ignore-backups do not list implied entries ending with ~ -c with -lt: sort by, and show, ctime (time of last modification of file status information); with -l: show ctime and sort by name; otherwise: sort by ctime, newest first ... [root@T01-7-2-1511 test]#
2、man 命令
[root@T01-7-2-1511 test]# man echo ECHO(1) User Commands ECHO(1) NAME echo - display a line of text SYNOPSIS echo [SHORT-OPTION]... [STRING]... echo LONG-OPTION DESCRIPTION Echo the STRING(s) to standard output. -n do not output the trailing newline -e enable interpretation of backslash escapes -E disable interpretation of backslash escapes (default) --help display this help and exit --version output version information and exit If -e is in effect, the following sequences are recognized: \\ backslash \a alert (BEL) \b backspace \c produce no further output \e escape \f form feed \n new line \r carriage return \t horizontal tab \v vertical tab \0NNN byte with octal value NNN (1 to 3 digits) \xHH byte with hexadecimal value HH (1 to 2 digits) NOTE: your shell may have its own version of echo, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports. GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report echo translation bugs to <http://translationproject.org/team/> AUTHOR Written by Brian Fox and Chet Ramey. COPYRIGHT Copyright ?? 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO The full documentation for echo is maintained as a Texinfo manual. If the info and echo programs are properly installed at your site, the command info coreutils 'echo invocation' should give you access to the complete manual. GNU coreutils 8.22 November 2015 ECHO(1) [root@T01-7-2-1511 test]#
man手冊章節劃分:
1:用戶命令
2:系統調用
3:庫用戶
4:特殊文件(如設備文件)
5:文件格式(如etc/下的配置文件的語法)
6:游戲
7:雜項
8: 管理命令
6、請羅列Linux發行版的基礎目錄名稱法則及公用規定
參照FHS的規定如下:
/boot: 系統啟動相關的文件
/dev: 設備文件
設備文件:
塊設備:隨機訪問,數據塊
字符設備:線性訪問,按字符為單位
設備號:主設備號(major)和次設備號(minor)
/etc:配置文件
/home:用戶的家目錄,每一個用戶的家目錄通常默認為/home下,目錄與用戶名相同
/root:管理員的家目錄;
/lib:庫文件
靜態庫, .a
動態庫, .dll, .so (shared object)
/lib/modules:內核模塊文件
/media:掛載點目錄,移動設備
/mnt:掛載點目錄,額外的臨時文件系統
/opt:可選目錄,第三方程序的安裝目錄
/proc:偽文件系統,內核映射文件
/sys:偽文件系統,跟硬件設備相關的屬性映射文件
/tmp:臨時文件, /var/tmp
/var:可變化的文件
/bin: 可執行文件, 用戶命令
/sbin:管理命令
/usr:shared, read-only
/usr/bin
/usr/sbin
/usr/lib
/usr/local:
/usr/local/bin
/usr/local/sbin
/usr/local/lib
原創文章,作者:N22-無錫-秋林箭,如若轉載,請注明出處:http://www.www58058.com/34601
寫的很好,排版還可以在漂亮一點,加油,都超了!