Yu-Min Space

2013年1月30日 星期三

Shell Script 中捉取 MySQL 資料庫中的指定記錄值

›
使用 -N 及 -s 參數 範例 mysql -u network -pnetwork network -e "select * from ip" -N -s
2012年9月27日 星期四

bash 遞迴範例

›
#!/bin/bash a() { [ "$1" -eq 1 ] && return echo $1 $0 $[ $1 - 1 ] } a 5
2012年8月24日 星期五

RAMDisk Rootfs 工具 RDRTOOLS

›
類似embedded linux 作法,安裝好系統後,透過這個工具可將系統(rootfs)放到記憶體中 目前支援 CentOS 6版本 見 http://rdrtools.blogspot.tw/2012/08/ram-disk-root-tool-centos-ramdi...
2012年8月17日 星期五

尋找已安裝執行檔位於那個rpm套件中

›
find_rpm.sh內容如下 #!/bin/bash [ $# -lt 1 ] && exit p=$(which $1) && [ $? -ne 0 ] && exit rpms=`rpm -qa`  || exit ...
2012年6月22日 星期五

CentOS 6.2 設定 IP Over IB

›
modprobe ib_ipoib modprobe ib_umad /etc/init.d/opensm start ip link set ib0 up ip addr add 192.168.6.1/24 dev ib0
2012年5月30日 星期三

傳回 cut -d 最大分割筆數

›
bash shell function cut_dnum 傳回 cut -d 最大分割筆數,傳回值最大為 255 function cut_dnum () { local __I=0 local __D=`echo "$2" | cut -c 1...
2012年5月24日 星期四

手動mount LVM的Patition

›
列出所有 physical volumes lvm pvscan PV /dev/md5 VG vg1000 lvm2 [1.36 TB / 0 free] Total: 1 [1.36 TB] / in use: 1 [1.36 TB] / in no VG: 0 [...
‹
›
首頁
查看網路版

關於我自己

Yu-Min Space
廉價知識勞工
檢視我的完整簡介
技術提供:Blogger.