:set hlsearch
*command
ctrl+N: match the function name
shift+v => visual mode
zf create a fold
zd delete a fold
za expand/collapse a fold
zf7j : create a fold with the consecutive 7 lines
ddp
ddkkp
:%s/pattern/new/gc
:t.
:jp
$ git config --global user.name "Weiwei Chen"
$ git config --global user.email weiwei.chen@uci.edu
$ git config --global core.editor vim
$ git config --global merge.tool vimdiff
$ git config --list
$ git config user.name
$sudo yum install package name
$make all &;> make.log
$tail -f make.log
$find . -name a*
In bash, the return value of a program is stored in a special variable called $?.
#!/bin/bash
cd /dada &;> /dev/null
echo rv: $?
cd $(pwd) &;> /dev/null
echo rv: $?
du -sh *
ctrl+z, bg
tar -tzvf ...
chmod -R u+rwX,g+rX,o-rwx /opt/pkg/llvm
$killall -9 procname
Command line - input
cvs -d :ext:weiweic@mu.eecs.uci.edu/home/lecs/cvs import -m “Imported original source code WC, 04/28/12.” project/H.264/jm12.3 weiweic start
cvs -d :ext:weiweic@mu.eecs.uci.edu/home/lecs/cvs checkout -P -d jm12.3 -r tag project/H.264/jm12.3
cvs update -dP
cvs update -j start_tag -j end_tag
cvs status -v
cvs status filename
07/12/13 Weiwei Chen (weiwei.chen@uci.edu)
This page was created using GitHub Pages —
Theme by orderedlist and
with modifications by Weiwei Chen