Leon's blog

关注: 开源&互联网, GTD with open source and Web

正在浏览 Linux 里的文章

如何在Linux下拷贝一个目录呢?这好像是再如意不过的问题了。 比如要把/home/usera拷贝到/mnt/temp,我首先想到的就是 cp -R /home/usera/* /mnt/temp 但是这样有一个问题,/home/usera下的隐藏文件都不会被拷贝,子目录下的隐藏文件倒是会的。 那如何才是正确的方法呢?有人说用-a选项,有人说用find加管道。 其实没这么复杂,Google了之后,学了一招。原来只有用“.”当前目录代替“*”就好了。 cp -R /home/usera/. /mnt/temp

cheat & ztd

抢沙发

cheat sheets 是个不错的网站,在通过gem在命令行下能显示常见工具的cheat sheet。下面是ZTD的sheet的输出结果。 $cheat ztd ztd:   Zen Things Done (ZTD)   aka "Minimal ZTD: The Simplest System Possible"   For more info see   http://zenhabits.net/2007/04/minimal-ztd-the-simplest-system-possible/      The Four Habits   ————-   1. Collect     * Write down any tasks, ideas, projects, or other information that pop into     your head.     * Get it out of your head and onto paper.      2. [...]