0、項(xiàng)目名:
Linux -- LINUs' uniX (開個(gè)玩笑不是這樣的,別當(dāng)真)
GNU -- Gnu is Not Unix
1、目錄名:
/boot:顧名思義
/root :同上
/run:同上
/home:同上
/etc:ETCetera
/bin:BINaries
/dev:DEVices
/lib:LIBraries
/mnt:MouNT
/proc:PROCesses
/tmp:TeMPorary
/var:VARiable
/srv:SeRVices
/opt:OPTional
/sbin:Super BINaries
or Superuser BINaries
/sys:SYStem
/usr:Unix System Resources
or Unix Software Resources
or Unix Shared Resources(這個(gè)很重要,很多人會(huì)認(rèn)為這個(gè)是user)
2、常用命令:
2.1、文件及文件夾管理:
ls -- LiSt
cd -- Change Directory
pwd -- Print Working Directory
cp -- CoPy
mv -- MoVe
rm -- ReMove
pushd -- PUSH to Directory
popd -- POP from Directory
mkdir -- MaKe DIRectory
rmdir -- ReMove DIRectory
cat -- CATenate
or conCATenate
sed -- Stream EDitor
diff -- DIFFerence
wc -- Word Count
chmod -- CHange MODe
chown -- CHange OWNer
chgrp -- CHange GRouP
awk -- Aho Weinberger and Kernighan
gawk -- Gnu AWK
mawk -- Minimal AWK
grep -- General Regular Expression Print
ln -- LiNk
tar -- TARball
2.2、硬件管理:
df -- Disk Free
du -- Disk Usage
dd -- Data Description(有說是Convert and Copy, 但是cc被用掉了,就用dd了)
parted -- PARTition EDitor
fdisk -- Format DISK
lspci -- LiSt Peripheral Component Interconnect
lscpu -- LiSt Central Process Unit
lsusb -- LiSt Universal Serial Bus
lsblk -- LiSt BLocK
mdadm -- Multiple Disk And Device Manager
2.2.1、lvm
lvm -- Logical Volume Manager
pvcreate -- Physical Volume CREATE
vgcreate -- Volume Group CREATE
lvcreate -- Logical Volume CREATE
pvdisplay -- Physical Volume DISPLAY
vgdisplay -- Volume Group DISPLAY
lvdisplay -- Logical Volume DISPLAY