查看及安裝特定版本 (repo) 指令
查看 PHP 版本
# php -i | grep 'PHP Version'
# yum list installed | grep -i php
查看有哪些 repo
# yum repolist
# yum --enablerepo=epel info zabbix
# yum --disablerepo="*" --enablerepo="webtatic" list available
用特定的 repo 安裝特定的軟體
# yum --enablerepo=epel install zabbix
清除所有下載的套裝軟體和header的暫存檔 (cache)
# yum clean all
查看 disk allignment 4098
# cat /sys/block/sdX/queue/physical_block_size
(change x to the right disk number)
查看檔案的文字內容
# grep -R the content scripts *
(change the content scripts to what you want to check)
- 發表回應前,請先登入