2014年6月4日 星期三

Linux 設定時區

Ubuntu: dpkg-reconfigure tzdata
Redhat: redhat-config-date
CentOS/Fedora: system-config-date
FreeBSD/Slackware: tzselect




References :
3 Ways to Change the Timezone in Linux - wikiHow

Grub2 config file

No /boot/grub/menu.lst. It has been replaced by /boot/grub/grub.cfg.




References :
Grub2 - Community Help Wiki

2014年6月3日 星期二

Linux list all hidden file

$ ls -ld .??*
?? -->  去掉 . 、..




References :
Bash Shell: Display All Hidden Dot Files In a Directory

nose.selector: INFO: test/test_foo.py is executable; skipped

搜尋測試檔案 
$ nosetests -vv --collect-only test/
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.selector: INFO: test/test_foo.py is executable; skipped


強制執行測試
$ nosetests --exe -v test

--exe Look for tests in python modules that are executable. Normal behavior is to exclude executable modules, since they may not be import-safe [NOSE_INCLUDE_EXE]




References :
python - Run all Tests in Directory Using Nose - Stack Overflow
Why Django nose test need --exe? - Stack Overflow

make: `test' is up to date.

To force rebuild on these kind of not-file-related targets, you should make them phony as follows:
$ vi Makefile
.PHONY: all test clean




References :
makefile - Why does make think the target is up to date? - Stack Overflow