Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linux 入門課程(基礎篇) 講者: Pank 2006-02-21 http://pank.org.

Similar presentations


Presentation on theme: "Linux 入門課程(基礎篇) 講者: Pank 2006-02-21 http://pank.org."— Presentation transcript:

1 Linux 入門課程(基礎篇) 講者: Pank

2 Install Linux 選擇 Distro (Distribution)
建議 Fedora Core Linux 或 Mandriva Linux 光碟安裝 或 網路安裝 分割硬碟 最精簡的分割法 /、swap 進階分割 /、/var、/usr、/home、swap 與Windows共存 先灌Windows 選擇安裝套件 全部安裝約3~4G 選擇 X Windows系統: GNOME、KDE、IceWM

3 Boot Loader Grub Lilo Grub is better /boot/grub/menu.lst
/etc/lilo.conf Grub is better

4 Run Level 0 - halt (Do NOT set initdefault to this)
1 - Single user mode 2 - Multiuser, without NFS (The same as 3, if you do not have networking) 3 - Full multiuser mode 4 - unused 5 - X11 6 - reboot (Do NOT set initdefault to this)

5 Boot Procedure Boot Loader Kernel initrd (optional) init /etc/inittab
/etc/rc.d/rc.sysinit /etc/rc.d/rc3.d/* (3 is run level) /etc/rc.local X Window Display Manager or Desktop Manager (run level 5)

6 Keyboard Control Ctrl+Alt+F1~F6 Switch console
Ctrl+Alt+F7 X Window console Tab Command line auto-complete ↑、↓ Edit history command Shift+PgUp/PgDn Scroll screen

7 Mouse Control Mark 即複製 中鍵貼上、或是同時按左右鍵

8 File Structure (1) /bin binary,core utilities /boot kernel、initrd
/dev device file /etc config /lib main library、glibc /proc process file system /sbin system binary /tmp temp directory /usr non-system applications、library /var log、spool、database

9 File Structure (2) /home user home directory /mnt mounting directory
/home/pank /mnt mounting directory /root super user root directory Others /initrd initrd mounting directory /opt some program install to /opt

10 File System EXT2 EXT3 EXT2+日誌式系統 ReiserFS Hans Reiser開發 XFS SGI公司開發
JFS IBM開發

11 File Access Permissions
Everyone、Group、Owner Read、Write、eXecute r=4、w=2、x=1 rwx=7 File Permission=777, Everyone can read、write、execute chmod 644 file chmod 755 file chmod 777 file

12 Devices No C: D: E: … Primary Master: /dev/hda
Primary Master 1st Partition: /dev/hda1 Mouse: /dev/psaux or /dev/mouse Audio: /dev/dsp or /dev/audio Mixer: /dev/mixer Console: /dev/tty? (tty0、tty1…) RAM Disk: /dev/ram0 Null: /dev/null

13 Basic Commands (1) cat 顯示檔案內容 =DOS/Windows的type
cd 轉移目錄 =DOS/Windows的cd clear 清除螢幕 =DOS/Windows的 cp 複製檔案 =DOS/Windows的copy date 顯示日期、時間 =DOS/Windows的date echo 印出字串 =DOS/Windows的echo fdisk 分割磁碟 =DOS的fdisk find 找尋檔案、目錄 =Windows的搜尋功能 ftp 檔案傳送 =Windows的ftp kill 終止程式之執行 =Windows的taskkill ls 列出檔案資訊 =DOS/Windows的dir mkdir 建立子目錄 =DOS/Windows的md/mkdir rmdir 刪除子目錄 =DOS/Windows的rd/rmdir mke2fs 製作檔案系統 =DOS/Windows的format mv 更改、移動目錄或檔案 =DOS/Windows的move netstat 查詢網路目前狀況 =Windows的netstat ping 查詢網路上某主機是否開著 =Windows的ping ps 查看系統中正在執行程序資料 =DOS/Windows的tasklist或工作管理員 rm 刪除檔案或目錄 =DOS/Windows的del telnet 連到別台機器 =Windows的telnet

14 Basic Commands (2) chmod 改變檔案權限屬性 chown 更改檔案或目錄的擁有者 df 查詢硬碟使用量
du 查詢檔案的磁碟使用空間 fsck 檢查、修復Linux檔案系統 grep 用關鍵字找尋檔案 ln 建立符號連結(捷徑) -s (soft link) man 查詢某個指令的說明 more 顯示檔案的內容(暫停) mount 掛上檔案系統 passwd 改變密碼 pwd 顯示目前工作目錄路徑 su 切換使用者或super user (root) sync 把記憶體中的資料寫入硬碟 top 查看系統狀態 umount 卸下已掛上的檔案系統 uname 查詢Linux版本,uname -a uptime 顯示目前的使用者和平均負荷 reboot 重新開機 shutdown 關機

15 Shell Environment Default shell: bash - GNU Bourne-Again Shell
stdin、stdout、stderr <、>、| Shell Script

16 Basic Configuration /etc/fstab file system mounting table
/etc/group user group file /etc/crontab 系統自動排程檔 /etc/hosts host names static table /etc/resolv.conf DNS設定檔 /etc/sysconfig/network-scripts/ifcfg-eth0 IP/NETMASK /etc/sysconfig/network HOSTNAME、GATEWAY /etc/bashrc bash 設定檔 /etc/inittab init table /etc/sysctl.conf kernel parameters

17 Services Service管理工具(一般): chkconfig 其他管理工具: ntsysv、drakxservices
Service scripts in /etc/init.d/* xinetd services configuration /etc/xinetd.d/* 常用Services: apache crond imap ipop3 keytable network smb sshd syslog xinetd

18 Information dmesg Kernel開機過程 /var/log/messages 系統資訊
/var/log/syslog 系統記錄 /proc/cpuinfo CPU資訊 /proc/meminfo 記憶體資訊 /proc/modules 載入的modules資訊 /proc/pci PCI資訊 /proc/version Kernel版本資訊

19 Archives 壓縮 gzip file 解壓縮 gunzip file.gz
包裝 tar cf files.tar file1 file2 fileN 解包裝 tar xf files.tar 壓縮 tar czf files.tar.gz file1 file2 fileN 解壓縮 tar zxf files.tar.gz 壓縮 tar cjf file.bz2 file1 file2 fileN 解壓縮 tar jxf file.bz2

20 User and Group Management
useradd 新增使用者 userdel 刪除使用者 usermod 異動使用者資料 groupadd 新增群組 groupdel 刪除群組 groupmod 異動群組資料 passwd 設定使用者密碼

21 Applications Web browser Firefox、Mozilla
client Thunderbird、Evolution Office OpenOffice Editor vi、joe、gedit Files downloading wget、ncftp、Gftp IM Gaim PDF Viewer Acrobat Reader、Xpdf Audio Player Xmms Movie Player Mplayer Graphic Gimp Picture Viewer xv、xnview、qiv CD/DVD burner k3b、cdrdao、LinuxNero Dictionary StarDict、pydict Terminal rxvt、Gnome Terminal The table of equivalents / replacements / analogs of Windows software in Linux.

22 THE END 謝謝大家


Download ppt "Linux 入門課程(基礎篇) 講者: Pank 2006-02-21 http://pank.org."

Similar presentations


Ads by Google