lunx主機(jī)課程所有知識(shí)點(diǎn)
主機(jī)課程所有知識(shí)點(diǎn)ULE 15天課程基礎(chǔ)課程 1 (Linux 系統(tǒng)操作入門)將母語轉(zhuǎn)向LinuxUNIX/Linux歷史UNIX 誕生時(shí)間C 語言重寫UNIXUNIX 歷史版本(BSD SYSV)U
主機(jī)課程所有知識(shí)點(diǎn)
ULE 15天課程
基礎(chǔ)課程 1 (Linux 系統(tǒng)操作入門)
將母語轉(zhuǎn)向Linux
UNIX/Linux歷史
UNIX 誕生時(shí)間
C 語言重寫UNIX
UNIX 歷史版本(BSD SYSV)
UNIX 現(xiàn)狀以及為何要學(xué)習(xí)Linux
Linux 是什么?
Linux 發(fā)展歷史
Linux 內(nèi)核版本介紹(開發(fā)版 穩(wěn)定版)
UNIX/Linux文化介紹
GNU 介紹
CPL 以及FSF
Copyleft
Opensource 及其影響
常見Linux 發(fā)布版體系簡介(RedHat 系、Debian 系、Slackware 系) RedHat Linux
Oracle Enterprise Linux
Novell SuSE Linux
Debian Linux
Ubuntu Linux
各種Linux 發(fā)布版優(yōu)缺點(diǎn)比較
RedHat Enterprise Linux介紹
RedHat Linux 歷史版本介紹
Fedora 版本及其與RedHat 的關(guān)系
CentOS Linux版本及其與RedHat Enterprise Linux 的關(guān)系 Linux 相關(guān)認(rèn)證介紹
RHCSA ( RHCT )
RHCE
RHCA
LPI 1 2 3
,Linux 命令行及桌面操作簡介
Linux 基本命令介紹
如何察看幫助
基本文件管理命令
所有命令行對(duì)應(yīng)的圖形化操作
如果使用Gnome 完成日常工作
用戶管理機(jī)制分析以及常用命令
相關(guān)文件及目錄要求學(xué)生可以描述出其文件結(jié)構(gòu)和目錄作用 /etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
/etc/login.defs
/etc/skel
相關(guān)命令,要求學(xué)生查看其Manpage 并解決并獨(dú)立解決實(shí)驗(yàn)中的問題 useradd
passwd
usermod
userdel
id
su
groupadd
groupdel
gpasswd
groupmod
groups
newgrp
users
who
w
write
wall
last
lastlog
請(qǐng)講師演示以上文本命令的圖形化相關(guān)實(shí)現(xiàn)
,理解Linux 的權(quán)限機(jī)制
Windows 中常見的文件和目錄類型與Linux 相關(guān)概念的比較
Unix 中所見皆文件的設(shè)計(jì)目的及現(xiàn)實(shí)優(yōu)勢
UNIX 文件類型分析
d The entry is a directory.
l The entry is a symbolic link.
b The entry is a block special file.
c The entry is a character special file.
p The entry is a FIFO (or "named pipe") special file.
s The entry is an AF_UNIX address family socket.
- The entry is an ordinary file.
基本文件擁有者分類
u User permission bits.
g Group permission bits.
o Other permission bits.
a All permission bits. This is the default if none are specified.
基本文件及目錄權(quán)限
If r , the file is readable; if -, it is not readable.
If w , the file is writable; if -, it is not writable.
If x, the file is executable or the directory is searchable.
目錄上設(shè)置rwx 對(duì)用戶訪問目錄的影響
Umask 持續(xù)設(shè)置方法及對(duì)用戶默認(rèn)創(chuàng)建文件及目錄的權(quán)限影響
常用權(quán)限操作命令及圖形化操作方法
chmod
chown
chgrp
高級(jí)權(quán)限SUID SGID STICKY
S If in the owner permissions, the file is not exe cutable and set-user-ID mode is set. If in the group permissions, the file is not executable and set-group-ID mode is set。
s If in the owner permissions, the file is exe cutable and set-user-ID mode is set. If in the group permissions, the file is executable and set- group-ID mode is set。
T The sticky bit is set (mode 1000), but not execute or search permission.
t The sticky bit is set (mode 1000), and is search able or executable.
A directory whose `sticky bit' is set becomes an append-only directory, or, more accurately, a directory in which the deletion of files is restricted. A file in a sticky directory may only be removed or renamed by a user if the user has write permission for the directory and the user is the owner of the file, the owner of the directory, or the super-user. This feature is usefully applied to directories such as /tmp which must be publicly writable but should deny users the license to arbitrarily delete or rename each others' files
,文件結(jié)構(gòu)介紹
inode
block
硬鏈接
軟鏈接
Windows 中文件快捷方式概念和Linux 中文件鏈接概念比較
ln 命令使用
高級(jí)文件管理命令
cat
tac
tr
sort
uniq
cut
wc
diff
及上述命令組合使用的技巧
文件的查找與壓縮
文件查找
which
whereis
locate
find -name -type -links -user -group -size -mtime -exec -ok
何時(shí)使用何種查找命令,比如找尋命令程序的位置和找尋配置文件位置
文件壓縮
gzip
gunzip
bzip2
bunzip2
tar
在存儲(chǔ)設(shè)備日趨廉價(jià)的今天為什么要使用壓縮技術(shù),何時(shí)使用何種壓縮技術(shù),壓縮比越大越好嗎? Linux 系統(tǒng)進(jìn)程管理
/proc目錄簡單介紹
cpuinfo
meminfo
/proc/sys目錄文件對(duì)系統(tǒng)的影響
,日志文件介紹
/var/log目錄
進(jìn)程管理常用命令
free
ps 命令的使用,區(qū)分BSD 方式和SysV 方式
kill
nice renice
top
作業(yè)控制
jobs
bg
fg
^Z
的使用
BASH 的交互式使用
常用快捷鍵
常用特殊符號(hào)(初步介紹)
命令歷史機(jī)制
history
!number
!string
!!
!$
環(huán)境變量
PATH
一般變量
環(huán)境變量
env
set
export
unset
配置文件
/etc/profile
~/. bash_profile
~/.bashrc
/etc/bashrc
sed ,awk ,和shell 編程的章節(jié),全部放在后面shell 編程中具體講解 Linux 下的軟件安裝
為什么要選擇成熟的包管理機(jī)制來管理軟件安裝,包管理機(jī)制相比自定義編譯有何優(yōu)勢
,常見的包管理機(jī)制(RPM 、DEB 、PKG )
Yum 介紹和使用
本地RPM 命令介紹和使用
rpm -ivh - -force - -nodeps - -root -F -U
-q -qa -ql -qf
-V -Va -Vf 標(biāo)記意義。
源代碼編譯安裝程序
./configure
make
make install
make uninstall
make clean
第三方二進(jìn)制非包管理發(fā)布機(jī)制(BIN )
基礎(chǔ)課程2 (Linux 系統(tǒng)操作提高)
Linux 系統(tǒng)安裝精解
手動(dòng)安裝
Kickstart 安裝
安裝時(shí)分區(qū)劃分特點(diǎn)和服務(wù)器運(yùn)行服務(wù)預(yù)估
系統(tǒng)啟動(dòng)流程
Linux 系統(tǒng)SysV 啟動(dòng)過程詳解(bios ,mbr ,grub ,kernel initrd,cmdline ,nfsroot ) BIOS --> MBR
|
Bootloader GRUB /→ → boot/grub/grub.conf
|
kernel initrd (內(nèi)核參數(shù)分析,initrd 的作用)
|
/sbin/init → /etc/inittab
| 定義運(yùn)行級(jí)別
| /etc/rc.d/rc.sysinit
| /etc/rc.d/rc ? →
| /etc/rc.d/rc?.d/
| K* stop
| S* start
mingetty
|
login
,| /etc/profile
| ~/.bash_profile
| ~/.bashrc
| /etc/bashrc
bash
Linux 系統(tǒng)Upstart 啟動(dòng)過程詳解
BIOS --> MBR
|
Bootloader GRUB /→ → boot/grub/grub.conf
|
kernel initrd (內(nèi)核參數(shù)分析,initrd 的作用)
|
/sbin/init(upstart) → /etc/init目錄
|并行且基于事件的盡量的在upstart 進(jìn)程中初始化系統(tǒng),減少在啟動(dòng)過程中的進(jìn)程創(chuàng)建節(jié)省啟動(dòng)時(shí)間 |→/etc/init/rcS.conf (調(diào)用/etc/rc.d/rc.sysinit初始化系統(tǒng))
| | → /etc/inittab ( 僅用來設(shè)置啟動(dòng)級(jí)別)
|→/etc/init/rc.conf (調(diào)用/etc/rc.d/rc 實(shí)現(xiàn)SysV Runlevel 啟動(dòng)后臺(tái)服務(wù),向下兼容) | | → 進(jìn)入/etc/rc.d/rcX.d 目錄
| |→K* stop
| |→S* start
|→control-alt-delete.conf (設(shè)置三鍵組合的實(shí)際效果)
|→rcS-sulogin.conf( 如果是單用戶模式,將使用其來初始化單用戶終端模式)
|→serial.conf (初始化超級(jí)終端模式,并配置超級(jí)終端,在虛擬化或無本地顯示設(shè)備時(shí)十分有用) |→splash-manager.conf (產(chǎn)生絢麗的開關(guān)機(jī)圖形圖像)
|→start-ttys.conf (定義開啟的虛擬終端數(shù)量)
|→tty.conf (創(chuàng)建虛擬終端)
|
login
| /etc/profile
| ~/.bash_profile
| ~/.bashrc
| /etc/bashrc
bash
Linux 高級(jí)文件權(quán)限體系介紹
文件ACL 機(jī)制詳解
getfacl
setfacl
Ext2/3文件系統(tǒng)attr 權(quán)限詳解
chattr i a
lsattr
,Linux 高級(jí)磁盤操作
磁盤配額以及mount 命令詳解
/etc/fstab usrquota,grpquota
mount -o remount /dev/hda?
Mount 檢查參數(shù)是否加載成功
quotacheck -cvug
quotaon | quotaoff
edquota -u -g -t -p
setquota 使用
repquota 報(bào)告信息
Autofs
/etc/auto.master
/etc/auto.misc
配置可以自動(dòng)掛載光驅(qū)
Ext2/3文件系統(tǒng)詳解
dumpe2fs 或tune2fs -l
mke2fs -j -b 4096 -i 8192
block 對(duì)文件系統(tǒng)的影響
inode 和block 的比率對(duì)文件系統(tǒng)的影響
系統(tǒng)硬盤基本管理
fdisk
mke2fs
mount
e2fsck
RAID 以及LVM 機(jī)制詳解以及相關(guān)操作命令
高級(jí)計(jì)劃任務(wù)管理維護(hù)系統(tǒng)(at ,cron ,anacron ) at
時(shí)間定義方式
at -l -r -d
atrm
atq
atd 服務(wù)
/etc/at.deny
cron
crontab -e -u -l -d
/etc/cron.deny
/var/spool/cron目錄的作用
時(shí)間定義格式
系統(tǒng)計(jì)劃任務(wù)/etc/crontab
,/etc/cron.hourly
/etc/cron.daily
/etc/cron.weekly
/etc/cron.monthly
anacron
/etc/anacorntab解釋
Linux 錯(cuò)誤日志機(jī)制
日志syslog
/etc/syslog.conf
man 5 syslog.conf
日志對(duì)象
日志級(jí)別
日志記錄文件
日志集中管理(日志遠(yuǎn)程記錄) 高級(jí)日志管理(logrotate ) 日志輪轉(zhuǎn)管理的意義
/etc/logrotate.conf
Linux 網(wǎng)絡(luò)配置詳解
基于Linux 的tcp/ip機(jī)制實(shí)現(xiàn)體系分析 tcp/ip的分層
在Linux 下的實(shí)現(xiàn)
網(wǎng)絡(luò)常用配置命令
ifconfig *
route *
netstat *
arp
arping
ping
nmap
traceroute
mtr
lftp
ftp
elinks
nslookup
dig
host
wget
,Linux 內(nèi)核機(jī)制簡介
什么是內(nèi)核?
為什么要升級(jí)內(nèi)核?
內(nèi)核版本的簡單知識(shí)(雙樹結(jié)構(gòu))
內(nèi)核源代碼網(wǎng)站
Linux 內(nèi)核升級(jí)(rpm ,yum )
用rpm 和yum 方式升級(jí)內(nèi)核
設(shè)備驅(qū)動(dòng)機(jī)制分析
管理Linux 設(shè)備驅(qū)動(dòng)(modules.alias modules.dep)
lsmod
rmmod
insmod
modprobe → modules.dep文件 以及modules.alias 文件的功能 depmod
modinfo
/etc/modprobe.conf
設(shè)備文件創(chuàng)建
mknod
內(nèi)核文檔中的devices.txt 文件
高級(jí)Xwindow 體系簡介
Xwindow 管理命令以及常用技巧
startx 命令分析
/etc/X11 目錄作用
/etc/X11/xinit 目錄作用
/etc/X11/xinit/xinitrc.d 目錄作用
如何在X 啟動(dòng)的同時(shí)啟動(dòng)預(yù)期X 應(yīng)用程序,比如輸入法 ~/.xinitrc對(duì)x 啟動(dòng)的影響
~/.Xclients對(duì)x 啟動(dòng)的影響
system-config-display
/etc/sysconfig/desktop
Xwindow 的C/S結(jié)構(gòu)介紹
Selinux 的初步介紹
如何打開關(guān)閉selinux
在系統(tǒng)管理上Selinux 有何作用
如果設(shè)置Selinux 的安全上下文
chcon
restorecon
semanage