<   centos常用指令   >

免費免註冊,彰化一整天線上測驗:http://exam.bestdaylong.com/test1694.htm

( )1. 利用service查看目前防火牆的設定(1)service iptables status (2)yum install system-config-network-tui (3)/usr/local/mysql/share/mysql/mysql.server start (4)/usr/local/apache/bin/apachectl start
( )2. 查看目前目錄檔案(有顯示檔案大小)(1)vi /etc/ssh/sshd_config (2)ll (3)wq! (4)vi /etc/hosts.allow
( )3. vi尋找字串指令(1)ll (2)wq! (3)/ (4)n
( )4. vi儲存檔案並立即離開指令(1)vi /etc/init.d/mysqld (2)wq! (3)vi /etc/hosts.allow (4)vi /etc/ssh/sshd_config
( )5. 設定root可不可以遠端連線要用vi修改那個檔案(1)vi /etc/ssh/sshd_config (2)vi /etc/init.d/mysqld (3)vi /etc/httpd/conf.d/phpmyadmin.conf (4)service httpd restart
( )6. 使用完整路徑將mysql啟動(1)/usr/local/apache/bin/apachectl start (2)tar zxvf test.tgz (3)mkdir d1 (4)/usr/local/mysql/share/mysql/mysql.server start
( )7. 利用yum安裝phpmyadmin的指令(1)curl -u user:pwd -o ftp://10.0.0.1/a.txt (2)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (3)yum install system-config-firewall-tui (4)yum install phpmyadmin
( )8. 建立目錄d1的指令(1)mkdir d1 (2)yyp (3)/ (4)n
( )9. 利用yum安裝文字介面防火牆設定(1)yum install system-config-network-tui (2)/usr/local/mysql/share/mysql/mysql.server start (3)yum install system-config-firewall-tui (4)service iptables status
( )10. 用vi修改限制用戶端連線IP位址(1)vi /etc/ssh/sshd_config (2)vi /etc/init.d/mysqld (3)vi /etc/httpd/conf.d/phpmyadmin.conf (4)vi /etc/hosts.allow
( )11. 用vi修改phpmyadmin允許連線ip指令(1)vi /etc/httpd/conf.d/phpmyadmin.conf (2)service httpd restart (3)yum install phpmyadmin (4)curl -u user:pwd -o ftp://10.0.0.1/a.txt
( )12. 用vi指令查看那個檔案可以看到mysql的存放路徑(1)vi /etc/httpd/conf.d/phpmyadmin.conf (2)service httpd restart (3)yum install phpmyadmin (4)vi /etc/init.d/mysqld
( )13. vi複製同一行指令(1)ll (2)yyp (3)/ (4)n
( )14. 使用tar解壓縮test.tgz檔案指令(1)yyp (2)/ (3)tar zxvf test.tgz (4)mkdir d1
( )15. 將apache重新啟動的指令(1)curl -u user:pwd -o ftp://10.0.0.1/a.txt (2)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (3)service httpd restart (4)yum install phpmyadmin
( )16. vi尋找字串指令找到要換下一個指令(1)vi /etc/hosts.allow (2)n (3)ll (4)wq!
( )17. 用curl下載ftp://10.0.0.1/的a.txt使用者名稱user密碼為pwd同檔名下載指令(1)service iptables status (2)curl -u user:pwd -o ftp://10.0.0.1/a.txt (3)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (4)yum install system-config-firewall-tui
( )18. 使用完整路徑將apache啟動(1)tar zxvf test.tgz (2)mkdir d1 (3)yyp (4)/usr/local/apache/bin/apachectl start
( )19. 修改第一張網路(eth0)設定的指令(1)vi /etc/sysconfig/network-scripts/ifcfg-eth0 (2)yum install system-config-firewall-tui (3)service iptables status (4)yum install system-config-network-tui
( )20. 利用yum安裝文字介面網路設定(1)/usr/local/apache/bin/apachectl start (2)tar zxvf test.tgz (3)yum install system-config-network-tui (4)/usr/local/mysql/share/mysql/mysql.server start

解答:
001.【1】002.【2】003.【3】004.【2】005.【1】006.【4】007.【4】008.【1】009.【3】010.【4】
011.【1】012.【4】013.【2】014.【3】015.【3】016.【2】017.【2】018.【4】019.【1】020.【3】

詳解: