顯示具有 apple command 標籤的文章。 顯示所有文章
顯示具有 apple command 標籤的文章。 顯示所有文章

2008年9月16日 星期二

mount iso

hdiutil mount  test.iso

2008年8月5日 星期二

show hidden file in finder

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

2008年7月25日 星期五

run the command in the background

put & after command:
ex:
ls &

/dev/null

/dev/null:
throwing output away,  redirect output to /dev/null
ex:
ls > /dev/null

2008年7月14日 星期一

zip command

zip -r data.zip .
This copies the current directory, including all subdirectories into data.zip 

2008年6月27日 星期五

find command

ex:
find  .   -name  "test.c"
first argument set the path to find
second argument set the file to find

2008年6月23日 星期一

2008年6月18日 星期三

diff

-w: ignore all whitespace

-q: Output only whether files differ

2008年6月11日 星期三

grep

find string in the file 
parameter:
-n:  show line number

ex:
grep -n  "rabbit"  test.rb

2008年5月30日 星期五

chown

sudo chown  -R  root:wheel test.kext

2008年5月13日 星期二

ln

ln -s Documents/project/test   Desktop/testLink

2008年5月8日 星期四

cvs

set cvsroot:
export CVSROOT=:pserver:andy@10.1.1.1:/home/cvs

login
cvs  login

import:
cvs  import  test andy ver1
test: project name on cvs server
andy:  Vendor-tag
ver1:  Version-tag

checkout:
get specific version:
cvs co -r  v1_2   projectName

get specific date:
cvs co -D "12/02/2008 13:00" projectName

get specific branch
cvs co -r branch_name  projectName

show status:
ex:
cvs st test.c

commit:
cvs commit  test.c

remove
1. rm test.c
2. cvs rmove teset.c
3. cvs commit test.c
when check out project next time, test.c is not checked out
but test.c is still on cvs server
Hence, we can roll back  the time test.c exists

2008年5月3日 星期六

svn

svn on windows: tortoiseSVN


一般分三種directories
trunk: 最新的程式
branch: 程式某個版本的branch,不會影響到最新的程式
tag: 每個release的程式,會有個tag對應,如此可以取回任何一版release的程式

將程式抓下來:
ex: svn checkout http://svn.techno-weenie.net/projects/plugins/acts_as_authenticated/