##每周學(xué)一點(diǎn)--Linux篇
##命令出處查找which
which ifconfig
##文件查找(passwd文件)
#利用數(shù)據(jù)庫
whereis passwd
locate passwd
#直接搜索
find /etc -name passwd
find /etc -mtime 3 (3~4天內(nèi)修改的文件)
find /etc -mtime +3 (3天前)
find /etc -mtime -3 (3天內(nèi))
-user #根據(jù)用戶名
##查看文件內(nèi)容命令
cat
tac #與cat讀取順序相反
nl #顯示行號
more/less #翻頁查看,less比more高級
od #讀取二進(jìn)制文件
tail
head
##尚不是十分清楚的部分SGID和SUID知識
#Linux硬盤組成與分區(qū)
Sector最小的物理存儲單位,512bytes(1byte = 8bit)
##硬盤分區(qū),文件系統(tǒng)特性
##Linux文件系統(tǒng):inode與block,采用索引式文件系統(tǒng)
##與之相對的是U盤的鏈?zhǔn)轿募到y(tǒng)
#Ext2文件系統(tǒng)支持1/2/4KB大小的block,每個block內(nèi)只能存儲一個文件內(nèi)容
#inode記錄文件屬性以及存放的block號
#dumpe2fs命令查看文件系統(tǒng)superblock信息
dumpe2fs /dev/hdc2