Skip to content

Latest commit

 

History

History
160 lines (87 loc) · 2.19 KB

File metadata and controls

160 lines (87 loc) · 2.19 KB

my video

http://media.happypeter.org/screencasts.html

vim

Command = operator + number + motion
            d(elete)  1,2
            y(ank)             gg+G

可视行(visual line)

启动和退出: V

整体缩进几行代码:

首先用可视行模式选中这几行,然后 >

multiple files

:ls #see buffers
:bn # go to next buffer
:bp # go to previous buffer
:bd # delete a buffer

~/.vimrc

markdown

http://happypeter.github.com/LGCB/book/toy_markdown.html

html study

http://www.w3schools.com/

git

安装

sudo apt-get install git-core 
sudo apt-get install tig

git pull

git basics

  1. first create a dir

     mkdir ggg
    
  2. now you MUST cd to this dir

     cd ggg
    
  3. initializing this git dir

     git init
    

    now you can see a .git in this dir

     ls -a
    
  4. now create a file

     vim hello.c
    
  5. let git knows about this file

     git add hello.c
    
  6. create the first version

     git commit -a -m "my first version"
    

github

http://www.happypeter.org/posts/21

ref

http://progit.org/

video: search "linus git" at youku.com

linux basics

Linux is OS(operating system) OS as linus see it:

OS is nothing but the kernel.

Linux is nothing but the kernel.

ubuntu is Linux + 1000 app.

OS as MS see it:

OS is kernel + desktop env.

tips

Clear screen : Ctrl-l

Copy and Paste: select -> middle button

language

https://github.com/happypeter/job-akae/wiki

translation

http://dict.youdao.com/

shell ( shell is a commandline interpreter)

bash is a kind of shell.

filesystem tree

ls

cd 
# ~ means your home dir
cd .. # go to the parent of current dir

pwd

man pwd # q to quit

mkdir dir

path

绝对路径: start with /
相对路径: start with .

shell prompt

peter@cow:~/tg-note$
user@machinename:currentWorkingDirectory(folder)$

software installation

sudo apt-get install tree

tar

http://www.happypeter.org/posts/10

ref

http://happypeter.github.com/LGCB/

http://billie66.github.com/TLCL/book/

some of my favorite sites

http://www.linfo.org/

http://www.wikipedia.org/

http://news.ycombinator.com/news