commandlinefu.cn - 中文版commandlinefu


Public Domain
Linux

软件简介

commandlinefu.cn

打造 中文版的 http://commandlinefu.com

贡献你的力量

  • 下载代码

    $ git clone https://github.com/tg123/commandlinefu.cn.git
    cd commandlinefu.cn

  • 寻找一个没有翻译的文件 (会调用你的 $EDITOR 来编辑这个文件)

    ./tools/translateone.sh

  • 翻译参考

    $ git diff _data/head_n_20_filename_tail.yaml
    diff –git a/_data/head_n_20_filename_tail.yaml b/_data/head_n_20_filename_tail.yaml
    index b5d0efe..970e1a8 100644
    — a/_data/head_n_20_filename_tail.yaml
    +++ b/_data/head_n_20_filename_tail.yaml
    @@ -1,8 +1,7 @@
    commandlinefu_id: 7044
    translator:
    - weibo: ‘’
    -hide: true
    + weibo: tgic
    command: |-
    head -n 20 | tail
    summary: |-
    - Print all the lines between 10 and 20 of a file
    + 输出文件的10到20行

  • 说明

    1. weibo: tgic 会在页面显示出 @tgic 翻译
    2. 删除 hide: true 自动构建程序会知道你已经翻译了这个文件
    3. 内容就是 summary 编译成汉语就好了 当然命令你也可以修改
  • 发送你的 pull request

实现原理

网站使用 jekyll 构建. 可以通过运行

jekyll build

在本地构建你的网站

依赖的插件

关于使用commandlinefu.com内容

commandlinefu.com 站长 David Winterbottom :

You’re welcome to re-publish the commandlinefu content.

[](https://github.com/tg123/commandlinefu.cn/#%E6%8E%88%E6%9D%83public-

domain)授权(public domain)