作者 主題: 3/26 117-102 PASS  (閱讀 5283 次)

0 會員 與 1 訪客 正在閱讀本文。

qqmanko

  • 可愛的小學生
  • *
  • 文章數: 7
    • 檢視個人資料
3/26 117-102 PASS
« 於: 2008-03-27 19:00 »
102重點

繼上次2/18po的101重點3/26我終把102終結了~照例把心得跟重點打出來給大家可以參考以及複習
這次的102考題比我想像中的簡單,我花了20分鐘就寫完了,在檢查兩遍後40分按下了End Exam
超緊張的啦!還好670 PASS了,真的很謝謝大家的重點整理即心得分享,所以我也把我的心得分享
給有需要的人^^
填充題不會太難,只要基本的組態檔&重要的指令有背應該都足以應付的。在來就是NCLP了,等我
PASS在來po我的心得分享吧^^
我還另外自已在準備時後有準備了一個組態檔這邊放不下了,所以有需要可以到我的blog查看^^
http://www.wretch.cc/blog/qqmanko&article_id=5535295

administrativetasks

usermod–L=passwd-l...................................................................將帳號關閉可用-U恢復
atq=at–l..........................................................................................列出已排在佇列中的工作
cut–f3–d:/etc/passwd....................................................................要知道cut是用-d來定義分隔欄
awk–F:‘{print$3}’/etc/passwd.......................................................awk是用-F
/etc/passwd&/etc/group.................................................................-rw-r--r--(passwd&group)
/etc/shadow&/etc/gshadow............................................................-r-------(shadow&gshadow)
chage..............................................................................................是修改密碼的
usermod..........................................................................................是修改帳號的
userdel.............................................................................................-r移除該使用者的家目錄
/etc/skel...........................................................................................該資料夾內的所以東西會複制一份至給新增user’shomedirectory
syslogd............................................................................................./etc/syslog.conf
...facility.levellogfile
...kern.*/dev/console
logrotate.........................................................................................將累積的日誌備份
/var/log/messages.........................................................................儲存各種日誌檔有問題看這就對了
tail-f.................................................................................................可以讓檔案保持在開啟狀態不斷更新
/etc/crontab....................................................................................系統行事曆
...minutehourdaymonthweekusercommand
...*/11****cat/var/log/messages
...每隔11分鐘執行一次
/var/spool/cron/[username]............................................................個人cron目錄
...minutehourdaymonthweekcommand
/etc/anacrontab..............................................................................解決於錯過系統排程執行
ext2.................................................................................................可使用dump的檔案系統
/etc/cron.(allow,deny)
/etc/at.(allow,deny)........................................................................都不存在只有root可以用at其它不能使用,corn是每個人都可使用
tar...................................................................................................-t最出tarfile的內容
...-r可以加入新的檔案
hwclock..........................................................................................-s、--hctosys
...用硬體時間校正系統時間
...-w、--systohc
...用系統時間校正硬體時間
ntpdate..........................................................................................與遠端server校正時間
/etc/ntp.conf..................................................................................裡面的server變數是用來指定校定的serverip

networkingfundamentals

ClassA...........................................................................................開頭0~126
ClassB...........................................................................................開頭128~191
ClassC...........................................................................................開頭192~223
ClassD...........................................................................................開頭224~239(群播用)
CalssE...........................................................................................開頭240~254(保留實驗)
私用IP............................................................................................10.0.0.0~10.255.255.255
...172.16.0.0~172.31.255.255
...192.168.0.0~192.168.255.255
192.192.2.17/26..........................................................................可用主機=63-2(0,255)-1(自已用去)=61
ping...............................................................................................是利用ICMP來測試遠端的主機連結狀態
/etc/host.conf................................................................................控制名稱解析的順序。
...order     hosts,bind
...(先參考/etc/hosts在參考/etc/resolve.conf)
/etc/hosts.allow(deny)..................................................................系統「開放/拒絕」存取服務對象
...[daemon-list:client-list]
...in.tftpd:LOCAL
/etc/nsswitch.conf.........................................................................定義resolve的資料來源與查解順序
...hosts:  files
...passwd: files
/etc/resolv.conf..............................................................................列出DNSservers的IP位址
...nameserver168.95.1.1
/etc/services..................................................................................通訊埠與應用層協定的對應關係
...tptp69/udp
/etc/protocols................................................................................主機所支援的協定
...fc133FC#Fibrechannel
ifconfig...........................................................................................設定網路介面的作業
route add default gw192.168.100.1 eth0..................................設定gateway192.168.100.1給eth0
DHCP............................................................................................會自動分配ip給主機
/etc/ppp/options...........................................................................有關ppp的指令,不過通常是空的

networkingservices

/etc/(x)inetd.conf..........................................................................(x)inet服務的控管
...#killall–SIGHUP(x)inetd(即可重新讀取)
sendmail......................................................................................./etc/sendmail.cf
/var/spool/mqueue.......................................................................信件的佇列,(暫存郵件)
/var/spool/mail..............................................................................系統使用者信箱集中處
/etc/mail/access...........................................................................限制存取sendmail的server
...localhost RELAY
/etc/aliases...................................................................................信箱別名定義;每次修改後須執行newaliases
...sysadmin:student,root
mailq..............................................................................................查看佇列中的信件
apache.........................................................................................../etc/httpd/conf/httpd.conf
...apachectl控制apache的指令
...apachectlconfig可以用來檢查apache組態檔的語法
nfs.................................................................................................../etc/exports
...$exportfs可讓exports立即生效
...[directorysystem(option)]
.../usrda.com(rw)
samba............................................................................................/etc/samba/smb.conf
...$testparm檢查設定smb.conf語法是否正確
portmap..........................................................................................動態分配給遠端RPCports
named(BINDv8)............................................................................./etc/named.conf
named(BINDv4)............................................................................./etc/named.boot(named-bootconf.pl可將v4轉換成v8/9)
CNAME..........................................................................................主機別名
MX...................................................................................................郵件server
PTR.................................................................................................反解的ip位址
sshd................................................................................................./etc/ssh/sshd_config
dhcp................................................................................................./etc/dhcpd.conf
ntp.../etc/ntp.conf(ntpdate)設定校時伺服器

kernel

lsmod...............................................................................................列出以載入的模組
rmmod..............................................................................................移除模組
modinfo............................................................................................顯示模組檔特定資訊
modprobe........................................................................................載入特定模組並自動載入所需模組-r移除模組
depmod-a........................................................................................重建modules.dep檔
patch.................................................................................................可利用修補檔來修補原始檔案
(2.4)
make(config,xconfig,menuconfig)
makedep
makeclean
makebzImage
makemodules
makemodules_install
(2.6)
make(config,xconfig,menuconfig)
makeclean
make
makemodules_install

security

ulimit................................................................................................限制使用者的資源用量
/etc/hosts.allow...............................................................................ALL代表全部
...LOCAL代表本機
...EXCEPT代表例外
iptables............................................................................................net:主要作用來源與目地之ip或port的轉換
...mangle:主要與特殊的寺包的路由旗標有關
last...................................................................................................查看上次登入的資料
...儲存於/var/log/wtmp
who,w..............................................................................................目前登入資料
...儲存於/var/log/utmp
/etc/nologin.....................................................................................所有人都不能登入,只有superuser才可登入

printing

lprm-=lprmall....................................................................................皆為刪除所有列印排程中的檔案
lpq...查看列印佇列中的檔案
catfoo.txt|lpr-#12.............................................................................是利用「|」來重導列印
lpadmin............................................................................................來組態CPUS
/etc/printcap.....................................................................................印表機的組態檔

documentation

/usr/share/doc/..................................................................................存放文件如FAQ,HOWTO
/usr/share/man/.................................................................................存放manpage
[http://www.tldp.org]............................................................................HOWTOS的網站
...The Linux Documentation Project
comp.os.linux.....................................................................................新聞群組
LWN.net..............................................................................................記起來就對了啦!
LinuxToday
NewsForge
/etc/issue............................................................................................登入前訊息
/etc/issue.net......................................................................................遠端登入前訊息
/etc/motd.............................................................................................登入後訊息
wall...寫訊息給線上所以有使用者
apropos=man–k.................................................................................搜尋關鍵字
whatis=man–f.....................................................................................搜尋有關的manpage

boot,initializationshutdown

/etc/bashrc...........................................................................................整體的函式與別名
/etc/profile............................................................................................定義變數跟環境設定
~/.bashrc..............................................................................................個人整體的函式與別名
~/.profile...............................................................................................個人定義變數跟環境設定
/etc/inittab............................................................................................定義開機runlevel
...id:5:initdefault
...定義ctrl+alt+del
...ca:ctrlaltdel:shutdown–rnow
dmesg...................................................................................................列出開機的所有訊息
N 3...上一次的level跟目前一樣為level3
shutdown-F...........................................................................................下次開始強制fsck
init1=telnet1..........................................................................................都為更變為單人模式
inits=telnets
initS=telnetS

shells,scripting,programmingandcompiling

#!/bin/bash............................................................................................宣告使用何種shell
set...列出「當前」shell可用變數
env...列出「所有」shell可用變數
export...把shell變數變成環境變數
echo$*...取得程式之後所有位置參數名稱列表
echo$$...取得當前shell的PID
echo$#...引數的總數
echo$@..................................................................................................列出所有的引數
echo$1...代表第一個引數,以此類推

figaro

  • 憂鬱的高中生
  • ***
  • 文章數: 185
  • 性別: 男
    • 檢視個人資料
    • http://www.neo-info.net
回覆: 3/26 117-102 PASS
« 回覆 #1 於: 2008-03-31 10:46 »
恕刪

恭喜 ~ 通過考試之後才是真正挑戰的開始 ~ 如何延伸學習到的Linux技術到你的週遭中將會是一個全新的挑戰  ;D
Figaro Yang
更多關於Figaro Yang