Linux 命令大全
Linux testparm命令用于測(cè)試Samba的設(shè)置是否正確無誤。
測(cè)試了下幾只看上去不像uu的pm,上po結(jié)果表示數(shù)據(jù)正確,又測(cè)試了下最不實(shí)用的幾只pmlinux命令,說明應(yīng)該沒有比nu更低的正常級(jí)別,至少顯示上并沒有neu這級(jí)判斷,其他有待測(cè)試。4條:位測(cè)試(bit test)指令bt(把測(cè)試結(jié)果送cf)、位測(cè)試并取反(bit test and complement)指令btc(先把測(cè)試結(jié)果送cf,再對(duì)測(cè)試位取反)、位測(cè)試并復(fù)位(bit test and rest)btr(先把測(cè)試結(jié)果送cf,再對(duì)測(cè)試位復(fù)位)、位測(cè)試并置位(bit test and set)指令bts(先把測(cè)試結(jié)果送cf,再對(duì)測(cè)試位置位)。 在單處理機(jī)環(huán)境中可以使用硬件提供的swap指令或 test_and_set指令實(shí)現(xiàn)進(jìn)程互斥,這些指令涉及對(duì)同一 存儲(chǔ)單元的兩次或兩次以上操作linux命令,這些操作將在幾個(gè) 指令周期內(nèi)完成,但由于中斷只能發(fā)生在兩條機(jī)器指 令之間,而同一指令內(nèi)的多個(gè)指令周期不可中斷,從 而保證swap指令或test_and_set指令的執(zhí)行不會(huì)交叉進(jìn) 行. 。
testparm [-s][配置文件][<主機(jī)名稱><IP地址>]
參數(shù)說明:
查看Ssmba配置
# testparm Load smb config files from /etc/samba/smb.conf Processing section '[homes]' Processing section '[printers]' Processing section '[uptech]' Processing section '[home]' Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions ///按下回車?yán)^續(xù) # Global parameters [global] workgroup = MYGROUP server string = Samba Server security = SHARE encrypt passwords = No password server = None log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap dns proxy = No idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [uptech] comment = * path = /home/uptech read only = No guest ok = Yes [home] comment = * path = /home read only = No guest ok = Yes
Linux 命令大全