>

2014년 8월 26일 화요일

Some useful terminal commands

// find some files and do some action to it
$ find . -name '.txt' -print
$ find . -type f -name '.avi' -delete
$ find . -type f -not -name '.mov' -delete
$ find . -type f -not -name '.o' -exec rm -f {} \;

// secure remote copy
$ scp thisfile.txt  id@aaa.bbb.ccc.ddd:/home/folder/destination

// Mac Finder Problem: http://osxdaily.com/2013/11/13/fix-finder-slow-high-cpu-use-mac-os-x/
rm ~/Library/Preferences/com.apple.finder.plist&&killall Finder

댓글 없음:

댓글 쓰기