原创 How to Deleting a Storage Repository From the Command Line?

First list the SRs on a host. #xe sr-list uuid=9a9e7903-7c0f-4f7e-f0a3-e39c54478346 Using the uuid from the you got fr

原创 Squid添加賬戶密碼驗證

sudo touch /etc/squid3/squid_passwd sudo chmod -R 777 /etc/squid3/squid_passwd sudo htpasswd /etc/squid3/squid_passw

原创 CentOS使用EPEL源

個人非常喜歡用Ubuntu,因爲Debian強大的在線在線安裝包。但某些時候我不得不用CentOS,這就得用著名的EPEL源了。 下面是使用方法: 1. 首先我們需要安裝一個叫”epel-release”的軟件包,這個軟件包會自動配置

原创 awk切割文本中字符串

文件內容如下: 112233445 aabbccdde !!@@##__% 如要修改爲 1122 3344 5 aabb ccdd e !!@@ ##__ % awk ‘{printf(“%s %s %s\n”,substr