嗯 練習用的練習用的...
很多還不懂
2011年9月17日 星期六
2011年9月13日 星期二
Linux-tar
tar是Linux上用來封裝(打包)檔案用的
tar [-j|-z] [-cv] -f tar_name target
打包target
tar [-j|-z] [-tv] -f tar_name
察看tar之檔
tar [-j|-z] [-xv] -f tar_name [-C director]
解開tar
-C可指定愈放置檔案之目錄
預設是在當前目錄
-j -z 不要亂加
-j為支援bzip2,tarname要是*.tar.bz2
-z為支援gzip,tarname要是*.tar.gz
-c 打包
-t 察看
-x 解開
-v 顯示詳細內容
-f 檔案
一般用此即可
tar -cvf xxx.tar file
tar -xvf xxx.tar [-C director]
tar [-j|-z] [-cv] -f tar_name target
打包target
tar [-j|-z] [-tv] -f tar_name
察看tar之檔
tar [-j|-z] [-xv] -f tar_name [-C director]
解開tar
-C可指定愈放置檔案之目錄
預設是在當前目錄
-j -z 不要亂加
-j為支援bzip2,tarname要是*.tar.bz2
-z為支援gzip,tarname要是*.tar.gz
-c 打包
-t 察看
-x 解開
-v 顯示詳細內容
-f 檔案
一般用此即可
tar -cvf xxx.tar file
tar -xvf xxx.tar [-C director]
2011年9月1日 星期四
Algorithms-simple binary search
first,you need sort
then you could search the 'numeber'
variable t show the recursive times
code:
then you could search the 'numeber'
variable t show the recursive times
code:
訂閱:
意見 (Atom)