




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、Linux 入門課程(基礎(chǔ)篇)講者: Pank2006-02-21Install Linux選擇 Distro (Distribution)建議 Fedora Core Linux 或 Mandriva Linux光碟安裝 或 網(wǎng)路安裝分割硬碟 最精簡的分割法 /、swap進階分割 /、/var、/usr、/home、swap與Windows共存 先灌Windows選擇安裝套件 全部安裝約34G選擇 X Windows系統(tǒng): GNOME、KDE、IceWMBoot LoaderGrub/boot/grub/menu.lstLilo/etc/lilo.confGrub is betterRun
2、Level0 - halt (Do NOT set initdefault to this)1 - Single user mode2 - Multiuser, without NFS (The same as 3, if you do not have networking)3 - Full multiuser mode4 - unused5 - X116 - reboot (Do NOT set initdefault to this)Boot ProcedureBoot LoaderKernelinitrd (optional)init/etc/inittab/etc/rc.d/rc.s
3、ysinit/etc/rc.d/rc3.d/*(3 is run level)/etc/rc.localX WindowDisplay Manager or Desktop Manager(run level 5)Keyboard ControlCtrl+Alt+F1F6Switch consoleCtrl+Alt+F7X Window consoleTabCommand line auto-complete、Edit history commandShift+PgUp/PgDnScroll screenMouse ControlMark 即複製中鍵貼上、或是同時按左右鍵 (1)/binbin
4、ary,core utilities/bootkernel、initrd/devdevice file/etcconfig/libmain library、glibc/procprocess /sbinsystem binary/tmptemp directory/usrnon-system applications、library/varlog、spool、database (2)/homeuser home directory/home/pank/mntmounting directory/rootsuper user root directoryOthers/initrdinitrd m
5、ounting directory/optsome program install to /optEXT2EXT3EXT2+日誌式系統(tǒng)ReiserFSHans Reiser開發(fā) XFSSGI公司開發(fā) JFSIBM開發(fā) PermissionsEveryone、Group、OwnerRead、Write、eXecuter=4、w=2、x=1rwx=7, Everyone can read、write、executechmod 644 filechmod 755 filechmod 777 fileDevicesNo C: D: E: Primary Master: /dev/hdaPrimary
6、Master 1st Partition: /dev/hda1Mouse: /dev/psaux or /dev/mouseAudio: /dev/dsp or /dev/audioMixer: /dev/mixerConsole: /dev/tty? (tty0、tty1)RAM Disk: /dev/ram0Null: /dev/nullBasic Commands (1)cat顯示檔案內(nèi)容 =DOS/Windows的typecd轉(zhuǎn)移目錄 =DOS/Windows的cdclear清除螢?zāi)?=DOS/Windows的cp複製檔案 =DOS/Windows的copydate顯示日期、時間 =D
7、OS/Windows的dateecho印出字串 =DOS/Windows的echofdisk分割磁碟 =DOS的fdiskfind找尋檔案、目錄 =Windows的搜尋功能ftp檔案傳送 =Windows的ftpkill終止程式之執(zhí)行 =Windows的taskkillls列出檔案資訊 =DOS/Windows的dirmkdir建立子目錄 =DOS/Windows的md/mkdirrmdir刪除子目錄 =DOS/Windows的rd/rmdirmke2fs製作檔案系統(tǒng) =DOS/Windows的formatmv更改、移動目錄或檔案 =DOS/Windows的movenetstat查詢網(wǎng)路目前狀
8、況 =Windows的netstatping查詢網(wǎng)路上某主機是否開著 =Windows的pingps查看系統(tǒng)中正在執(zhí)行程序資料 =DOS/Windows的tasklist或工作管理員rm刪除檔案或目錄 =DOS/Windows的deltelnet連到別臺機器 =Windows的telnetBasic Commands (2)chmod改變檔案權(quán)限屬性chown更改檔案或目錄的擁有者df查詢硬碟使用量du查詢檔案的磁碟使用空間fsck檢查、修復(fù)Linux檔案系統(tǒng)grep用關(guān)鍵字找尋檔案ln建立符號連結(jié)(捷徑) -s (soft link) man查詢某個指令的說明more顯示檔案的內(nèi)容(暫停)m
9、ount掛上檔案系統(tǒng)passwd改變密碼pwd顯示目前工作目錄路徑su切換使用者或super user (root)sync把記憶體中的資料寫入硬碟top查看系統(tǒng)狀態(tài)umount卸下已掛上的檔案系統(tǒng)uname查詢Linux版本,uname -auptime顯示目前的使用者和平均負荷reboot重新開機shutdown關(guān)機Shell EnvironmentDefault shell: bash - GNU Bourne-Again Shellstdin、stdout、stderr、|Shell ScriptBasic Configuration/etc/fstab mounting table/
10、etc/groupuser group file/etc/crontab系統(tǒng)自動排程檔/etc/hostshost names static table/etc/resolv.confDNS設(shè)定檔/etc/sysconfig/network-scripts/ifcfg-eth0 IP/NETMASK/etc/sysconfig/network HOSTNAME、GATEWAY/etc/bashrcbash 設(shè)定檔/etc/inittabinit table/etc/sysctl.confkernel parametersServicesService管理工具(一般): chkconfig其他管
11、理工具: ntsysv、drakxservicesService scripts in /etc/init.d/*xinetd services configuration /etc/xinetd.d/*常用Services:apachecrondimapipop3keytablenetworksmbsshdsyslogxinetdInformationdmesgKernel開機過程/var/log/messages系統(tǒng)資訊/var/log/syslog系統(tǒng)記錄/proc/cpuinfoCPU資訊/proc/meminfo記憶體資訊/proc/modules載入的modules資訊/proc/
12、pciPCI資訊/proc/versionKernel版本資訊Archives壓縮 gzip file解壓縮 gunzip 包裝 tar cf file1 file2 fileN解包裝 tar xf 壓縮 tar czf file1 file2 fileN解壓縮 tar zxf 壓縮 tar cjf file1 file2 fileN解壓縮 tar jxf User and Group Managementuseradd新增使用者userdel 刪除使用者usermod異動使用者資料groupadd新增群組groupdel刪除群組groupmod異動群組資料passwd設(shè)定使用者密碼ApplicationsWeb browserFirefox、MozillaEmail clientThunderbird、EvolutionOfficeOpenOfficeEditorvi、joe、geditFiles downloading wget、ncftp、GftpIMGaimPDF ViewerAcrobat Reader、XpdfAudio PlayerXmmsMovie PlayerMplayerGraphicGimpPic
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 劇場服裝租賃合同范例
- 傳媒股東合同范例
- 借款項目合同范例
- 企業(yè)雇人合同范例
- 交工檢測合同范例
- 供暖 安裝 合同范例
- 冰柜維修合同范例
- 上班路上受傷合同范例
- 任意拆解合同范例
- 分期購車協(xié)議合同范例
- 智慧農(nóng)貿(mào)解決方案
- 2024年四川省公務(wù)員錄用考試《行測》真題及答案解析
- 人際交往與人際溝通
- “雙循環(huán)”視閾下我國稀土產(chǎn)業(yè)價值鏈的邏輯構(gòu)成與重構(gòu)路徑研究
- 2024年P(guān)E防靜電氣泡袋項目可行性研究報告
- 2024年四川省瀘州市中考物理試題含答案
- 【蘇寧易購建設(shè)財務(wù)共享服務(wù)中心的現(xiàn)存問題及優(yōu)化建議探析(論文)13000字】
- 《現(xiàn)代家政導(dǎo)論》電子教案 5.3模塊五項目三我國家政服務(wù)業(yè)發(fā)展認(rèn)知
- 化學(xué)實驗室安全培訓(xùn)課件
- 廣告制作項目應(yīng)急服務(wù)方案
- 二十屆三中全會精神知識競賽試題及答案
評論
0/150
提交評論